Power buttons are input devices. You can find them at /sys/class/input/inputx.

Since they're exposed as sys fs device, I guess power  button event could be 
triggered via udev. Google "udev + power button" can give you some initial 
hints.

From: [email protected] [mailto:[email protected]] On 
Behalf Of Zheng, Huan
Sent: Monday, January 24, 2011 4:44 PM
To: [email protected]; [email protected] community
Subject: [MeeGo-dev] How can i detect power button press

Hi, dear developers
How can I detect power button press?
And further more, how can I detect the button press that I'm interested in?
Thanks!
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to