![]() |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
If I am correct the phone app is listening (or the incoming/outgoing call awakes something that is listening) to the signals from the AV connector (it has to be, otherwise the call ending button would not work). I think it should be possible to make also other apps to sense the button presses. I thought that headphoned would have been a logical place to start the investigations/additions. I asked thp, the author of the headphoned, in other thread if I have understood his app correctly. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
OK, I thought this a bit more and I think that I probably should clarify my thinking so that there is no misunderstandings.
As I see this, there are two things that are needed: 1. Button presses need to sensed by N900 2. Presses need to be translated to commands for Mediaplayer For the requirement number 1: As we now from dbus-monitor, in the normal state N900 does not sense the button presses from the headset. However, the call can be ended by the button press of the default headset. Now: what is awake and listening to the AV plug in this state? What awakes it (phone app or just incoming/outgoing call) How do we awake it without turning on the Phone app? For the requirement number 2: The headphoned also sends commands to Mediaplayer. I think that it would be relatively easy to expand the functionality to also send other commands. First we just need to find out what kind of signals different headsets send to N900. If I am correct, this could be probably found out with dbus-monitor when we first find out how to make the N900 aware of the button presses. Does this make any sense to you more experienced users? Is there something that simply just cannot be done for some reason (technical limitation, I am suggesting wrong methods...). :confused: After all, I am not a programmer, just a typical end user. :o |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
At least on Maemo 5 the headset button was exposed as a hal input device at /org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input
Check out the Panucci source for how it's used there (search for headset_button): http://nikosapi.org/git/panucci/tree...usinterface.py http://nikosapi.org/git/panucci/tree...cci/panucci.py Edit: After reading the whole thread, it seems like this is not working anymore on the N900.. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I haven't read the whole thread....but is it possible to write a driver for the remote included with the N95 ? :p
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
We would like to address any headset model. Unfortunately receiving the signal from the headset is quite complicated.
Vote for this (see the link in my signature) to give this request more priority for developing. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Judging by Bec's dumps and having a quick look at the original code, it looks like the HID device for the headset changed from platform_retu_headset_logicaldev_input on pre N900 to computer_logicaldev_input_1 , which would stop the original code working.
Running something like this python script hacked from the code in kagu[1] would confirm this change, and what to listen for in an updated version of headset-control, or some new app: http://gist.github.com/289070 I also don't see any button messages in the dbus-monitor dump, however I'm not sure how dbus works - maybe items like this which are 'watched' won't show there? Note this is just a theory, and untested - I don't have access to a N900 or know anything about dbus, just interested in buying one and concerned about getting the button to work with the media player! ([1] http://kagumedia.com/projects/kagu/b.../kagu/maemo.py) |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Also, can anyone confirm if the button works to end skype and gtalk calls as well? Trying to work out which part of the comm stack this is all happening.. Oh and lastly, what package does the phone ui app belong to? I've poked around in the repository an managed to find the translations, but not the binary itself. Maybe I should just go down and buy one, will make this much easier. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I've just tried with a Skype call, the signal is emitted.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
All that I know about it is, policy changes are broadcast over D-Bus; some of the plugins have configuration settings in /usr/share/policy and the plugins themselves are closed source so if they can't be configured to allow broadcasting of the ButtonPressed signal all the time, we're SOL. Personally, I'd like to know if there is a sysfs entry that is changed when the button is pressed so that we can do what thp did: monitor the file. This way, we avoid ****ing with the undocumented and closed-source components of the Policy system. OK, /usr/lib/ohm/libohm_buttons.so is the library responsible, AFAIK. Perhaps not: "stop ohmd" doesn't result in anything... Still, I'd like to know if it has a sysfs entry :) |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Does this mean that THIS is fake advertising ? :confused:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Most probably.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I have AD-54 as in the above ebay ad. The headphone passthrough works, and it gets recognized as headset instead of headphones. None of the buttons work. I'd assume the mic in ad-54 works but I have not tested.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Don't suppose anyone has managed to get any information on or if the buttons on an AD-54 generate any useable signals on Maemo especially OS2008.
I've managed to trash my original headset which the button did work on, and am now going to use a spare AD-54. I can pause using headphoned, but unplugging is a bit clunky. If anyone has any ideas, I am happy to test and have a play about. dbus-monitor, dbus-monitor --system, and dmesg all do not seem to register anything except plug/unplug events |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
i contacted the maker of headphoned directly via message. but dont have any respons yet about if its possible to make it fix.
I dont understand it really... How is it possible with this amount of wizkids surfing around here that no one took this oppertunity to make it work. Whats wrong with all these guys... do they ever listen to the none programmers? This is a feature many people want. i know there must be something possible. because the call button works when being in a call! Instead people make garbage like n900fly.... im getting anoyed! i know its possible someone please make it! |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Just because people want it doesn't mean the developers on the forum is going work on it. For one thing the developers have a variety of skill, different code backgrounds, knowledge of the internal maemo OS, etc. Secondly, what they work on is from their own interest and often using their own time. Nokia isn't paying them. And I doubt they get alot of donations from people for the existing work they do. God knows I should probably get around to donating to the people I have on the Maepad list. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I don't have anything against paying - as far as I'm concerned make it a paid app...
But the thing seems to be... we don't know what has to be activated so that the phone can recive commands from the headset via d-bus... things seem to have come to a halt... |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
I do wish the N900 had more documentation of its more closed features though. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
As you can see there are lots of replies :( Perhaps filing a bug would be the correct thing to do? |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
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. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Considering how much CPU usage is generated by mediaplayer, indeed I feel like constantly polling a file rather than pulling out my n900 everytime I'd like to change the song (especially on the bike).
Besides: there is a program that does exactly the same for the proximity sensor (proximityd). I guess it would be quite easy to change the file and the dbus interface it generates. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I'm sure there have to be more ingenious ways but if nothing else is at hand polling is excellent for me :D
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
If no one else wishes to have a go, I can give thp a patch for headphoned. No point in running two daemons... |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
that would be great!
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
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