ubuntu-touch icon indicating copy to clipboard operation
ubuntu-touch copied to clipboard

Connecting to bluetooth restarts headphones

Open olgabaranov opened this issue 2 years ago • 4 comments

  • Device: Nexus 5
  • Channel: rc
  • Build: Ubuntu 16.04 -armhf (20210727), Build Number 2021-W30

Steps to reproduce

Switch on Bluetooth, try to connect to BT headphones (MOMENTUM True Wireless 2)

Expected behavior

It connects, sound is played through the headphones

Actual behavior

Upon the first try I hear 'connected' through my headphones, but sound is played through the phone speakers (tested via system settings -> ringtones). The Bluetooth indicator turns white, registering that something is connected, the signal strength in the device menu is 'none'. After switching the headphones on and off again, the connection is established briefly. Then the funny part happens: the headphones restart (I hear the power on message), the connection with the phone is established again, followed by the headphones powering down again. This cycle repeats itself.

It might be related to #1390

Logfiles and additional information

Bluetooth log file:

Published using Logviewer for Ubuntu Touch
From file /home/phablet/.cache/upstart/bluez-mpris-proxy.log:
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 found
Player org.mpris.MediaPlayer2.MOMENTUM_TW_2 created
Bluetooth Player /org/bluez/hci0/dev_00_1B_66_E2_72_B8/player0 removed

Pulseaudio log file:

Published using Logviewer for Ubuntu Touch
From file /home/phablet/.cache/upstart/pulseaudio-trust-stored.log:
reattempt connection to mir...
reattempt connection to mir...
reattempt connection to mir...
reattempt connection to mir...
Error during initialization and startup: Dynamic exception type: core::trust::mir::InvalidMirConnection
std::exception::what: Cannot create instance for invalid connection to Mir.

Error registering agent for user.
Error registering agent for user.

olgabaranov avatar Jul 29 '21 10:07 olgabaranov

Can you retry if this problem is fixed with tomorrows devel update? Thanks!

Flohack74 avatar Jul 31 '22 21:07 Flohack74

Sorry for the delay, wedding season here.

The issue did not resolve but it became differen. When I try to connect the earplugs now, the phone tries to connect but does not. The headphones are shown as disconnected. They don't randomly turn off, too. There is no bluetooth log, pulseaudio log remains the same

olgabaranov avatar Aug 09 '22 20:08 olgabaranov

Can you run a btmon trace during pairing to see whats happening?

Flohack74 avatar Aug 09 '22 21:08 Flohack74

There it is. What I did for it is open the BT settings to see all detectable devices, then I've connected to the earphones. They are shown as connected for less than a minute, then they disconnect on their own. I reconnected them two times after that with the same result. (I.e. there should be 3 connection events and 3 disconnects). Thanks for looking into it! hcitrace2.txt

olgabaranov avatar Aug 13 '22 14:08 olgabaranov