View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#14
Originally Posted by Willem Liu View Post
MohammadAG, hmm yes that's quite a drawback. I'll have to study lockdaemons source code to see if there is any dbus calls used there which receives the signal from the keyboard.
You should listen for the dbus event, which only tells you the
state has changed. Than you read the value from
/sys/devices/platform/gpio-switch/slide/state
to see, if the slide is open or closed.

regards
Nicolai
 

The Following User Says Thank You to nicolai For This Useful Post: