I followed http://www.gentoo.org/doc/en/power-management-guide.xml and have acpid and laptop-mode-tools emerged.
My ultimate goal right now is to lock my screen on laptop lid close and maybe sleep/hibernate. I edited my acpid default.sh to have a button event for lid. Right now I just want to test that this event is even happening but I get nothing.
lm_lid.sh
Code: Select all
#!/bin/bash
echo "test" > /home/iopi/powereeee
test -x /usr/sbin/laptop_mode || exit 0
# lid button pressed/released event handler
/usr/sbin/laptop_mode auto
I've done a tail on state and it stays at open
Code: Select all
tailf /proc/acpi/button/lid/LID0/state
state: open
Guidance would be much appreciated
Thanks!

