View Full Version : Keyboard status - is this possible?
Hi guys, i think i may have a problem on my N810 :(
Is it possible to run a command or script which returns whether it thinks the keyboard is open or not?
You can read the keyboard slider status from /sys/devices/platform/gpio-switch/slide/state
It also seems that there's a DBus message at /org/freedesktop/Hal/devices/platform_slide, org.freedesktop.Hal.Device.
lpotter
03-26-2008, 08:24 PM
You can read the keyboard slider status from /sys/devices/platform/gpio-switch/slide/state
It also seems that there's a DBus message at /org/freedesktop/Hal/devices/platform_slide, org.freedesktop.Hal.Device.
The dbus message only seems to tell you the keyboard cover state changed, it doesn't tell you if it is open or not. You need the /sys/... for that.
jgallen23
03-27-2008, 01:27 AM
anybody have an example of how to connect to this dbus signal in python?
The dbus message only seems to tell you the keyboard cover state changed, it doesn't tell you if it is open or not. You need the /sys/... for that.
Ah, of course. DBus way would be to listen for changes or ask DBus to signal the status. In any case my bad.
In other words, jgallen23, you'll have to read the status from sysfs and forget DBus unless you're only interested in status changes.
jgallen23
03-27-2008, 10:24 AM
I am interested in status changes, can't quite figure it out though
jgallen23
03-27-2008, 11:11 AM
I got it working, if anybody wants me to post the code, let me know
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.