View Single Post
Posts: 3 | Thanked: 1 time | Joined on Apr 2010
#78
Originally Posted by cb22 View Post
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.
This only works on the standard black inear headset (with the white plugs)

It does not work with the AD-43 & HS-45 Stereo Headset, then it returns 0 I'd do anything to help with this issue. Unfortunately i have no experience in linux kernel programming.
 

The Following User Says Thank You to NLChris For This Useful Post: