View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#451
Originally Posted by mase View Post
I mean the shipped wired headphones with the call button
to play / pause.
BT arready works via AVRCP. I mean the same functionality
like the package headset-control provides. At the moment,
it interacts with MB only, when the original mediaplayer was
started once before.
I've looked around how to read that button on the N900 and got very disappointed. Nokia actually thinks that nobody would ever want to use that button for other things than to answer the phone. So they hardcoded it into the OS (into that f****** policy daemon) that the button does only generate events while in phone mode. Nokia has some really bright people.

qwerty12, before he abandoned Maemo, found a way to hack ALSA to circumvent this stupid restriction. Maybe I can make use of his code.

The other way would be to constantly poll the sysfs interface (IO watching doesn't work on sysfs). But this would drain battery. So it's not an option.

Sorry, thanks to Nokia, no short-term solution available!
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock