You are not logged in.

#1 2016-05-22 08:30:58

whoops
Member
Registered: 2009-03-19
Posts: 891

Bluetooth headphones fail to work with multiple users

Hi!


My bluetooth headphones (Jabra REVO a4.0.0, over A2DP / pulseaudio) work (mostly) fine as long as I have only one user active. If I startX with a second user, at first that users pulseaudio does not show the audio sink at all.  Played around with bluetoothctl a bit: The headset shows up for the second user too there, says it is paired + connected, there's just no PA sink.

After disconnecting and reconnecting manually while the second users pavucontrol was active, it seemed to have wrestled the "ownership" of the sink away from the first user. Sound was working, but there were VERY loud beeps sometimes (most of the time directly before / after dis / reconnect) that kind of sounded like encoded signals for the hardware (reminded me a LOT of those remote-wakeup-pings some old radio transceivers used to sent) and crackling / high frequency scratching that seems to correlate in intensity and rhythm with the movement of my bluetooth mouse.

Tried adding both users to the LP group. Also white-listed the "users" group in bluetooth.conf (because why not) and restarted the bluetooth service, but nothing changed and I was unable to get the PA sink back to the first user by any means until after I killall -u -9'd the second user. 

I get some errors while the headset is working perfectly fine (with only one user).

Mai 22 09:52:16 arch kernel: Bluetooth: hci0 SCO packet for unknown connection handle 61
Mai 22 09:52:21 arch bluetoothd[419]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Mai 22 09:52:21 arch bluetoothd[419]: Unable to connect Headset Voice gateway: connect: Device or resource busy (16)
Mai 22 09:57:30 arch bluetoothd[419]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for Message Notification: rfcomm_bind: Address already in use (98)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for Message Access: rfcomm_bind: Address already in use (98)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for Phone Book Access: rfcomm_bind: Address already in use (98)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for Synchronization: rfcomm_bind: Address already in use (98)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for File Transfer: rfcomm_bind: Address already in use (98)
Mai 22 09:57:31 arch bluetoothd[28935]: RFCOMM server failed for Object Push: rfcomm_bind: Address already in use (98)

As far as I can tell, I don't get ANY related errors while it actually FAILS to work (with 2 users). At least no additional / different errors, but the errors I normally get while it is working fine seem to stop too.


Any ideas?

Last edited by whoops (2016-05-22 08:32:10)

Offline

#2 2016-05-30 12:55:19

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: Bluetooth headphones fail to work with multiple users

Have not been able to figure this out.

Only workaround I found (when sink "stuck" with wrong / inactive user):

sudo killall pavucontrol
sudo killall pulseuadio
pavucontrol&
[ disconnect bluetooth ]
[ connect bluetooth ]
[ turn off headset ]
[ turn on headset ]
restart applications where sound doesn't work any more *sigh*

Offline

Board footer

Powered by FluxBB