![]() |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Awesome work, might I ask how you managed to figure it out? I was searching high and low for what the phone app did, but didn't manage to find anything... Actually, I think I even recall taking a snapshot using alsa-ctl, then restoring it after hanging up, but I still didn't notice a change.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Well, I figured it was time to come good on my promise so I grabbed the kernel source and started reading Nokia's Kernel Guide.
Anyway, after making unsuccessful modifications to drivers/misc/nokia-av.c and sound/soc/rx51.c to try and force it to enable the button even if "a normal pair of headphones" are plugged in (my understanding of electronics is even worse than my coding skills), I realised that having the mic enabled along with the button are mutually exclusive (this "bias" stuff). Since my attempts at hackihg the driver failed, I looked at what was actually doing the disabling on the users' side: the Policy system. Did a grep in /usr/share/policy for "bias" and found a text file that could be exited. Made disabling the bias the same thing as enabling it and rebooted it in hope. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Cheers |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
I have a Maemo 5/PR1.1 : Code:
Nokia-N900-51-1:~# uname -aI have just add to /usr/share/policy/etc/current/alsaped.conf this line : Code:
jackbias-off = jack-bias: onAny idea ? Thanks in advance. tym. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
You sure? I have it here and the only thing that differs is that I'm using LPR 1.2. Anyway, just pushed Headset Control 0.2 to Extras-devel. [Insert standard, usual Extras-devel warning] By default - when pressing the button - it tells MAFW to pause/play the track. If you set the GConf key /apps/headset-control/next-mode to true, a press will result in it skipping to the next track in whatever state the Media Player is currently in (Paused/Stopped/Playing etc.) Implementing a "if button held" functionality would've been nice, but the only time a signal gets emitted is when the button is depressed. A "delay between presses" functionality would've also been nice, but it seems the nokia-av module enforces a mandatory delay before you can press the button again. It's too long, IMO, for any sort of delay in the program for sending different commands. Also, because the ability for a signal to be emitted when pressing the signal was intermittent, Headset Control will force the button to be enabled (if a Nokia headset is plugged in, of course) on startup and 5 seconds after a call is ended. (Code snippet here: http://slexy.org/view/s21Wl6YqxI) Best regards. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Code:
[ 3669.544677] wlan0: no IPv6 routers present |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Also, what does "cat /sys/devices/platform/nokia-av/type" return? With the HS-48's I have, it returns 4. Is it actually running (sorry, I'm not used to writing Upstart scripts)? If you have ltrace installed, you can check what it's doing - a press of the headset button should lead it into the function that gets called when the button gets pressed; you should see it calling "mafw_renderer_*". If you have syslog running, messages emited by the object will be sent there. Also, you may need to start playing from the desktop widget initially to populate the playlist (I don't know enough about MAFW to attempt it myself, alas). Finally, if it still doesn't work, maybe Nokia added the jackbias stuff in PR 1.2 :confused: |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
not expecting anything btw! |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
On OS2008, it's only possible to pause/play tracks unless you work for Nokia... |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
http://pastebin.com/DDwUjEQT
Headset type is also 4 here. Code:
MohammadAG-N900:~# ps x | grep headset |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Nothing, and it works very well, although my headset is bolxed, and all of the replacements I can lay my hands on are AD-54s on which the button doesn't do anything.. I kinda gathered that this patch worked with them. apologies if I misunderstood.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Thanks!! Works great. Would it be possible to support HS-45 in the future? That would really make this sweet.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I've installed headset-control 0.2, but it doesn't work. File /usr/share/policy/etc/current/alsaped.conf doesn't have the jackbias-off line.
At what point should I insert this line? There are a lot of sections. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
It doesn't work.
/sys/devices/platform/nokia-av/type is 4, dbus-monitor --system doesn't show anything on button press. /usr/bin/headset-control is running. grep jack /usr/share/policy/etc/current/alsaped.conf gives nothing, uname -a Linux Nokia-N900-42-11 |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hmm, it might be related to 1.2 then (I'm not running the leaked release but I'm using 1.2 packages ['twas a painful install])
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Possibly, running the leaked fw here.
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Quote:
Though, while you're at it, could you try this:
If that works, then I can work around it by making Headset Control automatically enable the microphone when the headset is plugged in. (Yes, you'd have thought it would be common sense for me to have done this already...) If not, then I guess this is really PR 1.2-only (unless someone running PR 1.1 figures out a way :)). There's a logic fail in Headset Control; it only enables the microphone upon startup if it's already plugged in. With PR 1.2, this was done for me by the modification in alsaped.conf, but I made the assumption that PR 1.1 also had it. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
So, well, Iooking forward to official fw update. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quick query ... do you think this functionality would work in reverse ?
i.e. could you send a dbus command to close the switch on the phone side, thereby triggering something in the outside world ? I'm thinking that it could be used to code a timelapse trigger app for my DSLR ? Thanks |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hello
Quote:
Quote:
Quote:
So, I don't work in a normal way, I have do the following step : Quote:
Thanks, tym. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hello,
Quote:
Quote:
Though, if that works, install this deb and you shouldn't have to do it manually anymore: https://garage.maemo.org/builder/fre..._0.3_armel.deb (It should've been in Extras-devel, but the Autobuilder ****ed up :rolleyes:) Best regards. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
A script that makes BH-903 full functional, would be cool.
If someone got the time. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
the app wont install on my n900
lpr1.2, in app manager it d/l's but while installing I get error: unable to install |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hello,
Quote:
So, I have not understand how to configure the headset button : Quote:
Best regards. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
I guess,
gconftool-2 --set /apps/headset-control/next-mode --type bool true Maybe it would be better to make this default behavior? |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
wouldnt install thru app manager, but got it installed thru xterm, had to apt-get upgrade.... anyway, works great! thanks
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
Quote:
Quote:
Anyway, Headset Control will only install in PR 1.2. It's probably possible to install it under PR 1.1 as Headset Control will do the enabling by itself but you will have to force an install of the 0.3 version of headset-button-enabler as the latest version checks to see if jackbias is actually in alsaped.conf. |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
sorry but I have to say this for 2 reasons,
GET IN MY BELLY! because: of your avatar and Im starving!! dinner time! |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hello,
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Dear developer,
It may be possible to add sort of "double click" functionality. Just check /sys/devices/platform/nokia-av/detect state in a second after receiving "button release" event. The only problem is that the second click should be long enough, so it should be "short press + long press" combination. What do you think? |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Hi to all
Is there any posibility to make N900 volume buttons, works as SE's walkmans? I mean when you keep pressed one of those buttons skip tracks... if some1 can do that would be really nice! thanks in advance |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Bump! some linux guru! help plz! =)
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
|
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
yes yes, skip tracks with long pressing volume buttons... same as Sony ericsson's walkmans... no mattering if phone is locked or not....
lets hope some Linux guru read this post and helps =) |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
does anyone know if anything is arround to get the ad54 media keys working? Nokia really let themselves down with the quality of the headphones included with the n900, I had the n86 previously and the ability to plug my seinheiser headphones into the ad54 and control the media player will be sorely missed.
I've read through this thread and realise headphone control 0.2 wont do what I want, I've endlessly googled and come up with nothing but a few rather pissed off individuals in the same boat as me. cheers |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
yes pleeeease someone that can do it do it pleasseeeee!!!!
support for remote control headset !!! i still have the one from my N95 8Gb and i would really like to use it!!! |
Re: [ANNOUNCE] headset-control : Make the headset button actually manipulate tracks.
Quote:
A bit disappointed that it doesnt work out of the box with the N900 since I thought it works on them all (worked on the N97!!).. |
| All times are GMT. The time now is 00:47. |
vBulletin® Version 3.8.8