View Single Post
Posts: 239 | Thanked: 194 times | Joined on Jul 2010 @ Amsterdam
#15
Originally Posted by nicolai View Post
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
Thanks! That's good to know. It would've been great if the dbus event would've carried that information with it, but I suppose I can't have it all.