![]() |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
thp uses a GIOChannel to monitor /sys/devices/platform/gpio-switch/headphone/state and headphoned sleeps for most of the time so I guess using one to monitor the file cb42 told us about wouldn't do any harm... @jaeezzy, that's a good idea. Will come up with logical ways to handle that one |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Code:
-support input gestures such as double tap and long press |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Then I've tried with inotifywait for both files /sys/devices/platform/nokia-av/detect and /sys/devices/platform/gpio-switch/headphone/state I've been surprised to see that a change is detected only for the latter. So I think there's no other way than polling the file. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
-- I've figured out what happens: When inserting a headset, /usr/lib/ohm/libohm_accessories.so will register it to the system as plain headphones. Plain headphones do not have a button, so why would pressing it do anything? When the policy changes to "phone", this file will re-register the headset as a - *gasp* - headset; this is why (if you monitor HAL) you "see" the headphones being "removed and reinserted". Making a replacement /usr/lib/ohm/libohm_accessories.so that would register the headset in the first place as a headset wouldn't be hard work (riiiight...) thanks to IDA Pro and the examples of plugins found in the OHM package but there's no point when you can just modify nokia-av.ko to not disable the button, which is what I will be doing soon. **** you, Nokia, and your stupid decisions. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hi:
I am completely new at this, but I would like that when I press the button of the headset, the song changes (instead of pause it)... how can I do this? Any help would be appreciated... Thanks! |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
It does not work with the AD-43 & HS-45 Stereo Headset, then it returns 0 :confused: I'd do anything to help with this issue. Unfortunately i have no experience in linux kernel programming. :( |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Oh, yes, baby; you bet your *** there's progress!
Here's how to enable it: Open the file /usr/share/policy/etc/current/alsaped.conf and replace "jackbias-off = jack-bias: off" with "jackbias-off = jack-bias: on"; reboot and watch the System bus. I will be uploading an "enabler" package to extras-devel later on today along with a quick daemon that pauses/plays a track in the Media Player. Ultimately, if thp allows it, I'd like to get it into headphoned but thp uses libdbus and I like dbus-glib... |
| All times are GMT. The time now is 00:47. |
vBulletin® Version 3.8.8