View Single Post
Posts: 82 | Thanked: 214 times | Joined on Jan 2010 @ Cape town
#64
Cancel that above post, it seems I've found a way to do it
cat /sys/devices/platform/nokia-av/detect will give 4 when the button is not pressed, and 2 when it is pressed!

EDIT: Unfortunately, this seems to be useless, unless you feel like polling a file repeatedly for changes.

Last edited by cb22; 2010-04-03 at 05:32.
 

The Following 8 Users Say Thank You to cb22 For This Useful Post: