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.