Laptop lid state is given by,
cat /proc/acpi/button/lid/state
To test if it works try,
sleep 2 ; cat /proc/acpi/button/lid/state
Now, close the lid and open after 2 secs.
It will tell that the lid was closed.
cat /proc/acpi/button/lid/state
To test if it works try,
sleep 2 ; cat /proc/acpi/button/lid/state
Now, close the lid and open after 2 secs.
It will tell that the lid was closed.
Comments