Kubuntu 22.04, Bluetooth Headphones connect automatically, then immediately disconnect; pulseautio crashes every time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
* Impact
On a fresh install of Kubuntu 22.04, when I turn my properly paired bluetooth headphones on they automatically connect to the system, then immediately disconnect again. The headphones thus have to be manually 're-connected' every time.
* Test case
Connect a bluetooth headset to the computer, try to change the active profile. The selection should be reflected and the quality match, the pairing and service should be stable
* Regression potential
The changes are in the bluetooth a2dp/sbc functions so any potential regression would impact the connectivity with bluetooth devices using an a2dp profile (aptX, SBC, AAC). Check with different devices using the previously listed profiles.
-------
Best as I understand it from the logs (appended below), pulseaudio showing up killed just after the headphones turn up as an unregistered sender ...
4/30/22 7:33 PM systemd pulseaudio.service: Main process exited, code=killed, status=8/FPE
... is responsible for the observed problem, i.e. the disconnect, probably triggered when pulseaudio restarts ...
4/30/22 7:33 PM systemd pulseaudio.service: Scheduled restart job, restart counter is at 2.
So it seems either an internal pulseaudio problem, or a problem triggered by the division by 0 in the bluetooth module ...
4/30/22 7:33 PM kernel traps: bluetooth[8884] trap divide error ip:7f862dc68490 sp:7f862498cc30 error:0 in module-
or some combination of the two ... but again, I'm only guessing here.
_______
System Logs after switching headphones on:
4/30/22 7:33 PM kernel input: Nat's Flex (AVRCP) as /devices/
4/30/22 7:33 PM systemd-logind Watching system buttons on /dev/input/event19 (Nat's Flex (AVRCP))
4/30/22 7:33 PM bluetoothd /org/bluez/
4/30/22 7:33 PM rtkit-daemon Supervising 0 threads of 0 processes of 0 users.
4/30/22 7:33 PM rtkit-daemon Successfully made thread 8884 of process 3426 owned by '1000' RT at priority 5.
4/30/22 7:33 PM rtkit-daemon Supervising 1 threads of 1 processes of 1 users.
4/30/22 7:33 PM kernel traps: bluetooth[8884] trap divide error ip:7f862dc68490 sp:7f862498cc30 error:0 in module-
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM systemd pulseaudio.service: Main process exited, code=killed, status=8/FPE
4/30/22 7:33 PM bluetoothd Endpoint unregistered: sender=:1.126 path=/MediaEndp
4/30/22 7:33 PM systemd pulseaudio.service: Failed with result 'signal'.
4/30/22 7:33 PM systemd pulseaudio.service: Consumed 2min 20.027s CPU time.
4/30/22 7:33 PM acpid input device has been disconnected, fd 20
4/30/22 7:33 PM systemd pulseaudio.service: Scheduled restart job, restart counter is at 2.
4/30/22 7:33 PM systemd Stopped Sound Service.
4/30/22 7:33 PM systemd pulseaudio.service: Consumed 2min 20.027s CPU time.
4/30/22 7:33 PM systemd Starting Sound Service...
4/30/22 7:33 PM rtkit-daemon Successfully made thread 8889 of process 8889 owned by '1000' high priority at nice level -11.
4/30/22 7:33 PM rtkit-daemon Supervising 1 threads of 1 processes of 1 users.
4/30/22 7:33 PM pulseaudio Stale PID file, overwriting.
4/30/22 7:33 PM rtkit-daemon Supervising 1 threads of 1 processes of 1 users.
4/30/22 7:33 PM rtkit-daemon Successfully made thread 8890 of process 8889 owned by '1000' RT at priority 5.
4/30/22 7:33 PM rtkit-daemon Supervising 2 threads of 1 processes of 1 users.
4/30/22 7:33 PM rtkit-daemon Supervising 2 threads of 1 processes of 1 users.
4/30/22 7:33 PM rtkit-daemon Successfully made thread 8891 of process 8889 owned by '1000' RT at priority 5.
4/30/22 7:33 PM rtkit-daemon Supervising 3 threads of 1 processes of 1 users.
4/30/22 7:33 PM systemd Started Sound Service.
4/30/22 7:33 PM pulseaudio Could not find org.bluez.
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
4/30/22 7:33 PM bluetoothd Endpoint registered: sender=:1.246 path=/MediaEndp
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: pulseaudio 1:15.99.
ProcVersionSign
Uname: Linux 5.15.0-27-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CasperMD5CheckR
CurrentDesktop: KDE
Date: Wed May 4 17:46:37 2022
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
SourcePackage: pulseaudio
Symptom: audio
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/25/2022
dmi.bios.release: 1.14
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.14.0
dmi.board.name: 05XYW7
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.family: XPS
dmi.product.name: XPS 15 9500
dmi.product.sku: 097D
dmi.sys.vendor: Dell Inc.
modified.
mtime.conffile.
tags: |
added: verification-done verification-done-jammy removed: verification-needed verification-needed-jammy |
Igor Kovalenko managed to identify the problem, and and fixed it. See https:/ /gitlab. freedesktop. org/pulseaudio/ pulseaudio/ -/issues/ 1354 for details.