Friday, June 25, 2010

Laptop lid state

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.

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...