Menu
Main Menu
Talk
Get Daily
Search
Member's Online
User Name
Password
Keyboard status - is this possible?
Reply
Stal
| #
1
| 2008-02-21, 16:38 |
Report
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?
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
wnd
| #
2
| 2008-03-25, 22:18 |
Report
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.
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
Last edited by wnd; 2008-03-25 at
23:50
. Reason: more info
The Following User Says Thank You to wnd For This Useful Post:
thp
lpotter
| #
3
| 2008-03-27, 00:24 |
Report
Originally Posted by
wnd
View Post
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.
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
jgallen23
| #
4
| 2008-03-27, 05:27 |
Report
anybody have an example of how to connect to this dbus signal in python?
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
wnd
| #
5
| 2008-03-27, 09:22 |
Report
Originally Posted by
lpotter
View Post
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.
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
jgallen23
| #
6
| 2008-03-27, 14:24 |
Report
I am interested in status changes, can't quite figure it out though
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
jgallen23
| #
7
| 2008-03-27, 15:11 |
Report
I got it working, if anybody wants me to post the code, let me know
Edit
|
Forward
|
Quote
|
Quick Reply
|
Thanks
vBulletin® Version 3.8.8
Normal
Logout