ubuntu-touch
ubuntu-touch copied to clipboard
Connecting to bluetooth restarts headphones
- 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.
Can you retry if this problem is fixed with tomorrows devel update? Thanks!
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
Can you run a btmon trace during pairing to see whats happening?
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