maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Bluetooth headset takes over audio (https://talk.maemo.org/showthread.php?t=35338)

fishy5 2009-11-28 18:15

Bluetooth headset takes over audio
 
I received my n900 yesterday and it's the best phone I've ever owned. However, I paired my bluetooth headset (not headphones) with it so if I happened to get a call I could take it. I noticed throughout the day that I wasn't hearing any notifications and thought it was something wrong with the profiles. Then it came to my attention that all audio was being routed to my headset that should only be used for calls. I don't see a way to specify that the headset in for hands-free calls like other phones do. Is this a bug or am I missing a method for getting it to work?

benny1967 2009-11-28 19:02

Re: Bluetooth headset takes over audio
 
mhmh... intersting thought to split the audio output. i would have considered it a bug if any audio went through the speakers as long as the BT headset is connected. but then it's never wrong to have choices, is it?

would it be possible to have something like a "mixer application" direct different sounds to different outputs? like phone calls to BT, normal signals to the speakers and music from the media player to the wired headsets that for whatever weird reason you have inserted in spite of the BT headset?

Andre Klapper 2009-11-28 21:03

Re: Bluetooth headset takes over audio
 
As long as the alarm in the morning does not get routed... :-P

goodfellabk718 2009-11-29 07:42

Re: Bluetooth headset takes over audio
 
this is highly annoying, im not even using a stereo bluetooth headset and the music comes right through, with my G1 i'd have the music playing through the car stereo and any calls would route through to my bluetoooth. definitely something that needs to be fixed. it even overides the fm transmitter.

les_garten 2009-11-30 20:35

Re: Bluetooth headset takes over audio
 
I just discovered this bug today as well. The wake up alarm would be BAD, VERY BAD! I use my phone as my alarm clock. I also don't put my Bluetooth in till the phone rings. What were they thinking here? Anybody elses phone work like this?

JonFowler 2009-11-30 20:41

Re: Bluetooth headset takes over audio
 
My view is that this is definitely a bug. On a phone, ring tone is set by the profile, and goes over the speaker and the headset.

Possibly setting vibrate might help announce a call, but should definitely use the speaker for alarm and notification tones including the ringer.

ewan 2009-11-30 20:43

Re: Bluetooth headset takes over audio
 
In principle this should be a pretty straightforward job with pulseaudio, but I've no idea yet how easy it is to get at the pulse config on the N900.

Revampion Rv+' 2009-11-30 20:57

Re: Bluetooth headset takes over audio
 
With pulseaudio, would it be possible to have output through bluetooth headphones and the normal 3.5mm jack simultaneously?

I am able to do this with my Samsung P2. Would be a shame to have to step down from such a feature.

benny1967 2009-11-30 21:11

Re: Bluetooth headset takes over audio
 
I have to repeat that I do not see it as a bug (as in "it must never be this way"); it is something I would like to have at times and sometimes not.

So I prefer not to have it changed (hard-wired the other way round), but to have a way to select what goes where. If ewan is right about pulseaudio in this context, it would be an ideal thing for a sexy application that enhances the phone without Nokia doing anything.

fishy5 2009-12-04 21:58

Re: Bluetooth headset takes over audio
 
I agree that if this was a pair of headphones I would sometimes want it to route audio and other times not. However, this is a single ear headset/microphone that is specifically meant for phone calls and should do nothing but phone calls. I was under the impression that bluetooth had different protocols for headsets and A2DP was always used for headphones (I'm not trying to be a professional about bluetooth I just thought that's how it is). So if it is that way, shouldn't audio only go over A2DP and phone calls to the headset/microphone?

mikec 2009-12-04 22:19

Re: Bluetooth headset takes over audio
 
There are too many use cases here. A2DP headphones can also be headsets and typically are. If you were listening to music loud on your A2DP, you would want the ringing to come through the headset, especially if you are 25 feet away from your device.

You might also not want ringing on phone cause you don't want to disturb others, hence why you put on headset to start with. Probably need to check speck of bluetooth profiles to see what is the standard behavior (which I suspect is not specified).

danramos 2009-12-04 22:23

Re: Bluetooth headset takes over audio
 
This is the problem with 'computer first, then phone'. This is why I prefer my phone isn't also my computer. heh

les_garten 2009-12-04 22:30

Re: Bluetooth headset takes over audio
 
I don't know what ya call it, but I want Ringtones and Alarms to always go to the spkr unless on "Silent". The problem is if Bluetooth Headset is ON, and my earpiece is sitting on the desk, I don't hear the phone ring and don't hear alerts. That's screwed up, and I have never seen Bluetooth headsets do this.

les_garten 2009-12-04 22:31

Re: Bluetooth headset takes over audio
 
Quote:

Originally Posted by mikec (Post 410749)
There are too many use cases here. A2DP headphones can also be headsets and typically are. If you were listening to music loud on your A2DP, you would want the ringing to come through the headset, especially if you are 25 feet away from your device.

You might also not want ringing on phone cause you don't want to disturb others, hence why you put on headset to start with. Probably need to check speck of bluetooth profiles to see what is the standard behavior (which I suspect is not specified).

You have the option of handling that with the silent profile.

Andre Klapper 2009-12-04 23:58

Re: Bluetooth headset takes over audio
 
Actually there ARE audio routing policies in place for the N900. If some of them do not work as specified, it's probably a bug, but this one is not a bug. :-)

nux 2009-12-05 08:19

Re: Bluetooth headset takes over audio
 
With my car bluetooth only regular calls come through car speakers.
Skype calls was neither in car speakers or handset speaker.

And one more thing, if phone was connected to car via bluetooth FM transmitter did not work at all. I needed to disconnect the bluetooth to get it working. Very annoying :P

iKneaDough 2009-12-06 15:52

Re: Bluetooth headset takes over audio
 
Quote:

Originally Posted by Andre Klapper (Post 410882)
Actually there ARE audio routing policies in place for the N900.

Where can I view/edit the audio routing policies?

It would also be nice if there was a GUI to manipulate this, as sometimes I would want to quickly route all audio to the phone earpiece instead of the regular speakers (for example to listen to my Google voicemail from the webpage, without the whole world hearing it.)

fabolousv 2009-12-06 16:31

Re: Bluetooth headset takes over audio
 
I have a simalair bluetooth problem and i found some files that might have something to do with routing. in x-terminal typ
find -name '*parameter*' then you find the files i am talking about.
the content of these files look like this:

the content of these files are:

Code:

a2dp.parameters

x-maemo.aep = "true"
x-maemo.aep.parameters = hex:c4f050fbd4fe50fbd4fe19000100040090e8b0040400a0f65802a8fd90010400a0f6b00400009001a07d0e00b47d0e006aff6aff010030f8b004e0fc00000000
x-maemo.nrec = "true"
x-maemo.nb_eeq = "true"
x-maemo.nb_eeq.parameters = hex:00000500f9ff0100bfccd57107004639758d4639
x-maemo.nb_meq = "true"
x-maemo.nb_meq.parameters = hex:00000500f9ff0100bfccd57107004639758d4639
x-maemo.wb_eeq = "false"
x-maemo.wb_eeq.parameters = hex:000000000000000037374ff950038effeaff1bff09fe1a01e102f40077fe01ff7a00c8ff4dfed5fedd008b010c0040fe5ffe6d000b022c0112ffb5fe22007
x-maemo.wb_meq = "false"
x-maemo.wb_meq.parameters = hex:01000900ffff000019ef644cf9ff0100dfc74f7708009727e5b83356333758890040
x-maemo.mumdrc.dl = "false"
x-maemo.stereo-widening = "false"
x-maemo.xprot.displacement = "false"
x-maemo.xprot.temperature = "false"
x-maemo.cmt.ul_timing_advance = "500"
x-maemo.aep.switches = hex:d502400800000000
x-maemo.alsa_sink.mixer_control = "HP DAC:off,Headphone:off,Earphone:off"
x-maemo.alsa_sink.mixer_tuning = "Headphone=0:-12000,1:-7057,2:-5250,3:-4194,4:-3444,5:-2863,6:-2388,7:-1986,8:-1638,9:-1331,10:-1057,11:-808,12:-581,13:-373
x-maemo.alsa_sink.alt_mixer_tuning = "Headphone=0:-12000,1:-7057,2:-5250,3:-4194,4:-3444,5:-2863,6:-2388,7:-1986,8:-1638,9:-1331,10:-1057,11:-808,12:-581,13:
x-maemo.sidetone.enable = "false"
x-maemo.sidetone.lgain = "4000"
x-maemo.sidetone.rgain = "4000"
x-maemo.mumdrc.ul = "true"
x-maemo.mumdrc.ul.parameters = hex:00400000e9500000e9500000e95000000000000000000000880200003e0600003e06000000000000000000005d0a0000c5200000183703000000800099
x-maemo.limiter.ul.parameters = hex:f79d5a0030e30500a613440072632e64

hs.parameters
x-maemo.aep = "true"
x-maemo.aep.parameters = hex:c4f050fbd4fee0fcd4fe0f000a00040090e800000400a0f65802a8fd90010400a0f6b00400009001a00d0e00b40d0e006aff6aff010030f8b004e0fc00000000
x-maemo.nrec = "true"
x-maemo.nb_eeq = "true"
x-maemo.nb_eeq.parameters = hex:00000500f9ff0100bfccd57107004639758d4639
x-maemo.nb_meq = "true"
x-maemo.nb_meq.parameters = hex:01000900feff0000a3ca3d86fbff0100f0ca89730700b1f9e974387b4e3b49850040
x-maemo.wb_eeq = "false"
x-maemo.wb_eeq.parameters = hex:000000000000000037374ff950038effeaff1bff09fe1a01e102f40077fe01ff7a00c8ff4dfed5fedd008b010c0040fe5ffe6d000b022c0112ffb5fe22007
x-maemo.wb_meq = "false"
x-maemo.wb_meq.parameters = hex:01000900ffff000019ef644cf9ff0100dfc74f7708009727e5b83356333758890040
x-maemo.mumdrc.dl = "false"
x-maemo.stereo-widening = "false"
x-maemo.xprot.displacement = "false"
x-maemo.xprot.temperature = "false"
x-maemo.cmt.ul_timing_advance = "500"
x-maemo.aep.switches = hex:d502400800000000
x-maemo.alsa_sink.mixer_control = "HP DAC:off,Headphone:control,Earphone:off"
x-maemo.alsa_sink.mixer_tuning = "Headphone=0:-5170,1:-4570,2:-4220,3:-3970,4:-3770,5:-3610,6:-3360,7:-3170,8:-2870,9:-2750,10:-2550,11:-2390,12:-2260,13:-20
x-maemo.alsa_sink.alt_mixer_tuning = "Headphone=0:-9999,11:-2660,13:-2350,15:-2120,17:-1860,20:-1540,23:-1270,26:-1010,31:-650,36:-340,42:0"
x-maemo.alt_mixer_compensation = "0"
x-maemo.audio_aep_mb_steps = "-9999,-2660,-2350,-2120,-1860,-1540,-1270,-1010,-650,-340,0"
x-maemo.sidetone.enable = "true"
x-maemo.sidetone.lgain = "5500"
x-maemo.sidetone.rgain = "5500"
x-maemo.ear_ref_padding = "-3333"
x-maemo.mumdrc.ul = "true"
x-maemo.mumdrc.ul.parameters = hex:00400000e9500000e9500000e95000000000000000000000880200003e0600003e06000000000000000000005d0a0000c5200000183703000000800099
x-maemo.limiter.ul.parameters = hex:f79d5a0030e30500a613440072632e64


phedders 2009-12-07 15:37

Re: Bluetooth headset takes over audio
 
Please have a look at this brainstorm: http://maemo.org/community/brainstor...dio_priorities and giv it a thumbs up!!!

yellow man 2009-12-09 01:34

Re: Bluetooth headset takes over audio
 
fabolousv, any luck messing with the parameters?

fabolousv 2009-12-10 20:48

Re: Bluetooth headset takes over audio
 
haven't had time yet and my car is being fixxed right now so i cant test anything.

but i think its possible to fix this problem by reviewing the files that contain alsa .

find -name '*alsa*'

check what these files contain maybe theres something with priorities will check it out this weekend

craftyguy 2010-01-27 19:12

Re: Bluetooth headset takes over audio
 
Any update on this? I would love to be able to route music through the 3.5mm headphones, and have calls routed through bluetooth headset. Instead, everything seems to route to bluetooth even if 3.5mm is plugged in.
I regularly connect my phone to my car stereo over 3.5mm to listen to music, and my (stupid) state just passed a 'hands-free phone' law, so it's currently impossible to have my bluetooth headset on and ready in case I get a phone call AND listen to music through 3.5mm on my car stereo..

EDIT: I drive a convertible, so using a bluetooth car stereo for music + phone calls is not feasible, as there would be a lot of interference from wind on a dash-mounted microphone

gamof 2010-01-28 00:03

Re: Bluetooth headset takes over audio
 
I'd also be very interested in an update on this issue. I have a handsfree bluetooth kit built into my car, and it pauses the music playing to receive calls and such. However, with my N900, any sound whatsoever (SMS, email, OS) will pause my audio and switch to the phone. I'd rather not have it do that. Can we switch the Audio Out to BT to only do calls? I don't deal with A2DP or even the 3.5mm jack in the car; I'd just like to be able to make and receive calls with little disturbance.

fishy5 2010-02-01 00:31

Re: Bluetooth headset takes over audio
 
Ever since the new firmware this issue I reported has been fixed. I can now leave my headset on all day and still hear my ring tones and text tones. I haven't heard of any app or way to configure the audio manually to the desired output which would be nice but for now I'm just glad the bug is fixed.

craftyguy 2010-02-01 00:44

Re: Bluetooth headset takes over audio
 
I'm still experiencing this issue on the latest firmware. ALL audio (music, application sounds, etc) is ALWAYS routed over bluetooth handsfree device, even when wired headphones are connected. This results in the handsfree device battery running down much faster than usual, since the N900 routes any sound to it.

fishy5 2010-02-01 00:53

Re: Bluetooth headset takes over audio
 
Oh, sorry, I guess I should clarify. My main complaint was only related to ring tones, text tones, alarm tones, and other system sounds going through bluetooth. Music will still go through my headset so I have to shut off my headset in my car but I'm still just glad the system sounds are fixed.

Chrisboff 2011-08-28 17:06

Re: Bluetooth headset takes over audio
 
Sorry for resurrecting an old thread but I have this exact problem and I can't believe it hasn't yet been fixed. The bluetooth headset profile should never be used to pass through multimedia audio only calls.

It seems that this can be fixed through changing pulse audio routing policies. If someone who is knowledgable about pulse audio could at least point me to some documentation on changing audio routing policies I would be grateful.

Also this has been discussed here and filed as a bug here though for some reason it has been marked invalid even though every other phone I've owned has obeyed the spec and only routed call audio to a Headset Profile device and not system wide audio.

Chrisboff 2011-08-28 18:05

Re: Bluetooth headset takes over audio
 
I have found that editing /etc/pulse/xpolicy.conf lines 179 to 187
from:

Code:

[device]                                                   
type  = bthsp                                             
sink  = equals:sink.hw1                                   
flags = disable_notify                                     
                                                           
[device]                                                   
type  = bthsp                                             
source = equals:source.hw1                                 
flags  = disable_notify

to:

Code:

[device]                                                   
type  = bthsp                                             
sink  = equals:sink.hw0                                   
flags = disable_notify                                     
                                                           
[device]                                                   
type  = bthsp                                             
source = equals:source.hw0                                 
flags  = disable_notify

Results in ALL audio being rerouted to the speakers (including calls) which is not so useful and further the volume cannot be adjusted on the phone while the headset is connected. There must be a more fine grained way of changing this so that multimedia audio is routed to the speakers because already the ringtone is played through the speaker even when the headset is plugged in.

Temporal 2011-08-28 18:50

Re: Bluetooth headset takes over audio
 
Is there a way to do the opposite?

This "bug" has already been adressed by nokia, so all rings and etc would go outside BT, even with BT connected.

I asked about this before http://talk.maemo.org/showthread.php?t=75124 , but noone answered. Would you mind to teach me how to force all sounds to go through and only through BT?

Anyway, thank you for pointing me to the correct direction!

Chrisboff 2011-08-28 18:58

Re: Bluetooth headset takes over audio
 
I don't know how your bluetooth headset works but with mine when I receive an incoming call my bluetooth headset plays a tone (not the phone's ringtone) even when my phone is on the silent profile.

If you realy would like to hear systemwide audio then you should get a2dp bluetooth headphones which have much better sound quality than a standard headset.

Chrisboff 2011-08-30 20:26

Re: Bluetooth headset takes over audio
 
So I have found that when connected to my bluetooth headset, if I plug in wired headphones multimedia audio is rerouted from the headset to my headphones which saves power since system audio is not constantly being transmitted to the headset. I could always keep wired headphones plugged in all the time but this shows that it is possible for the multimedia and system audio to go through the phone speakers when the headset is connected. I just need to figure out how pulse audio routing is configured in terms of activities ie: multimedia vs system sounds vs calls when a bluetooth headset profile device is plugged in.

woody14619 2011-08-30 21:09

Re: Bluetooth headset takes over audio
 
Quote:

Originally Posted by Chrisboff (Post 1078082)
it has been marked invalid even though every other phone I've owned has obeyed the spec and only routed call audio to a Headset Profile device and not system wide audio.

Good for you? But just because you never bought a phone that routed audio over a headset doesn't mean they never existed. I haven't been to the moon. That doesn't mean the NASA footage was filmed in Nevada and was an elaborate conspiracy to fool the Russians.

Nokia has had several phones that allowed media audio to go over bluetooth headsets. I used to do this all the time with my N6230, in which the media player and J2ME apps would all have sound routed through a headset if enabled. Likewise, an Ericson I owned and the FreeRunner I had both did this as well. (In fact, call audio was about the only thing that didn't route properly over a bluetooth headset in the FreeRunner.)

I understand the desire for a setting to change this behavior. But it's not like this is a set-in-stone standard, as you seem to be portraying it to be.

Chrisboff 2011-08-30 21:16

Re: Bluetooth headset takes over audio
 
I wouldn't mind this so much except for the fact that since every system sound (including opening and closing programs) is piped to the headset which runs the battery down extremely quickly making using a bluetooth headset with the n900 impractical. Which is a shame because it seems I will have to ditch the n900 just because of this.

Also there is already the a2dp profile which was designed to transmit mp3 quality multimedia audio from the phone whereas the headset profile is heavily compressed with a 8khz sampling rate that was only designed to be as good as the gsm call not to mention being mono.


All times are GMT. The time now is 22:17.

vBulletin® Version 3.8.8