![]() |
2010-05-15
, 13:38
|
Posts: 82 |
Thanked: 214 times |
Joined on Jan 2010
@ Cape town
|
#81
|
The Following User Says Thank You to cb22 For This Useful Post: | ||
![]() |
2010-05-15
, 13:52
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#82
|
The Following 10 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-16
, 10:22
|
Posts: 306 |
Thanked: 106 times |
Joined on Feb 2010
|
#83
|
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...
The Following User Says Thank You to rajil.s For This Useful Post: | ||
![]() |
2010-05-16
, 10:29
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#84
|
The Following 4 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-16
, 18:06
|
Posts: 5 |
Thanked: 1 time |
Joined on May 2010
@ Ile-De-France, France
|
#85
|
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...
Nokia-N900-51-1:~# uname -a Linux Nokia-N900-51-1 2.6.28.10power-omap1 #1 PREEMPT Thu Apr 15 00:30:53 EEST 2010 armv7l unknown
jackbias-off = jack-bias: on
The Following User Says Thank You to tym81 For This Useful Post: | ||
![]() |
2010-05-17
, 17:46
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#86
|
The Following 5 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-17
, 18:04
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#87
|
Hello,
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.
[ 3669.544677] wlan0: no IPv6 routers present [ 4989.052886] headphone (GPIO 177) is now connected [ 4990.585937] input: headset button as /class/input/input4 [ 4990.896972] kb_lock (GPIO 113) is now closed [ 4991.083923] kb_lock (GPIO 113) is now open [ 4992.263610] slide (GPIO 71) is now open [ 5003.388519] slide (GPIO 71) is now closed [ 5076.966796] headphone (GPIO 177) is now disconnected [ 5084.677673] headphone (GPIO 177) is now connected [ 5085.795196] input: headset button as /class/input/input5 MohammadAG-N900:~#
![]() |
2010-05-17
, 18:26
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#88
|
Not working here, dmesg doesn't show anything about a button press.
Code:[ 3669.544677] wlan0: no IPv6 routers present [ 4989.052886] headphone (GPIO 177) is now connected [ 4990.585937] input: headset button as /class/input/input4 [ 4990.896972] kb_lock (GPIO 113) is now closed [ 4991.083923] kb_lock (GPIO 113) is now open [ 4992.263610] slide (GPIO 71) is now open [ 5003.388519] slide (GPIO 71) is now closed [ 5076.966796] headphone (GPIO 177) is now disconnected [ 5084.677673] headphone (GPIO 177) is now connected [ 5085.795196] input: headset button as /class/input/input5 MohammadAG-N900:~#
The Following 2 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2010-05-17
, 18:35
|
Posts: 961 |
Thanked: 565 times |
Joined on Jul 2007
@ Tyneside, North East England
|
#89
|
It's in -devel. It's rather useless without anything utilizing it, however, so I'm still in the process of porting of Headset Control to C (MAFW-only ATM)
The Following User Says Thank You to gazza_d For This Useful Post: | ||
![]() |
2010-05-17
, 18:37
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#90
|
MAFW-only? I don't suppose that means OS2008 at some point does it? Or have I got more chance of a date with Paris??
not expecting anything btw!
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
![]() |
Tags |
ad-54/hs-45, headset button |
|