bluetooth connections are unstable with linux-image-6.5.0-6-generic and above (MANTIC)

Bug #2038539 reported by Derk Willem te Bokkel
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Seems some random network activity regularly breaks bluetooth connections.. headphones connect and reconnect or suffer breaks in sound etc.
Started with this kernel version linux-image-6.5.0-7 .. previous kernel linux-image-6.5.0-5 works perfectly
Booting into the older kernel restores bluetooth stability.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: linux-image-6.5.0-7-generic 6.5.0-7.7
ProcVersionSignature: Ubuntu 6.5.0-5.5-generic 6.5.0
Uname: Linux 6.5.0-5-generic x86_64
ApportVersion: 2.27.0-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: derk 1690 F.... wireplumber
 /dev/snd/controlC0: derk 1690 F.... wireplumber
 /dev/snd/seq: derk 1687 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
Date: Thu Oct 5 08:33:01 2023
InstallationDate: Installed on 2023-10-04 (1 days ago)
InstallationMedia: Xubuntu 23.10 "Mantic Minotaur" - Daily amd64 (20231004)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-5-generic root=UUID=1d40ce67-0e56-4531-a16f-817634fd450a ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-5-generic N/A
 linux-backports-modules-6.5.0-5-generic N/A
 linux-firmware 20230919.git3672ccab-0ubuntu2
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/13/2023
dmi.bios.release: 1.21
dmi.bios.vendor: LENOVO
dmi.bios.version: L9CN21WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76463 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: IdeaPad Slim 5 16ABR8
dmi.ec.firmware.release: 1.21
dmi.modalias: dmi:bvnLENOVO:bvrL9CN21WW:bd06/13/2023:br1.21:efr1.21:svnLENOVO:pn82XG:pvrIdeaPadSlim516ABR8:rvnLENOVO:rnLNVNB161216:rvrSDK0T76463WIN:cvnLENOVO:ct10:cvrIdeaPadSlim516ABR8:skuLENOVO_MT_82XG_BU_idea_FM_IdeaPadSlim516ABR8:
dmi.product.family: IdeaPad Slim 5 16ABR8
dmi.product.name: 82XG
dmi.product.sku: LENOVO_MT_82XG_BU_idea_FM_IdeaPad Slim 5 16ABR8
dmi.product.version: IdeaPad Slim 5 16ABR8
dmi.sys.vendor: LENOVO
---
ProblemType: Bug
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: derk 1691 F.... wireplumber
 /dev/snd/controlC0: derk 1691 F.... wireplumber
 /dev/snd/seq: derk 1688 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: XFCE
DistroRelease: Ubuntu 23.10
InstallationDate: Installed on 2023-10-04 (12 days ago)
InstallationMedia: Xubuntu 23.10 "Mantic Minotaur" - Daily amd64 (20231004)
MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
Package: linux (not installed)
ProcEnviron:
 LANG=en_CA.UTF-8
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.5.0-9-generic root=UUID=1d40ce67-0e56-4531-a16f-817634fd450a ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.5.0-9-generic N/A
 linux-backports-modules-6.5.0-9-generic N/A
 linux-firmware 20230919.git3672ccab-0ubuntu2.1
Tags: mantic
Uname: Linux 6.5.0-9-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 06/13/2023
dmi.bios.release: 1.21
dmi.bios.vendor: LENOVO
dmi.bios.version: L9CN21WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76463 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: IdeaPad Slim 5 16ABR8
dmi.ec.firmware.release: 1.21
dmi.modalias: dmi:bvnLENOVO:bvrL9CN21WW:bd06/13/2023:br1.21:efr1.21:svnLENOVO:pn82XG:pvrIdeaPadSlim516ABR8:rvnLENOVO:rnLNVNB161216:rvrSDK0T76463WIN:cvnLENOVO:ct10:cvrIdeaPadSlim516ABR8:skuLENOVO_MT_82XG_BU_idea_FM_IdeaPadSlim516ABR8:
dmi.product.family: IdeaPad Slim 5 16ABR8
dmi.product.name: 82XG
dmi.product.sku: LENOVO_MT_82XG_BU_idea_FM_IdeaPad Slim 5 16ABR8
dmi.product.version: IdeaPad Slim 5 16ABR8
dmi.sys.vendor: LENOVO

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :
summary: - bluetooth connections are unstable with linux-image-6.5.0-7-gneric
+ bluetooth connections are unstable with linux-image-6.5.0-7-generic
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Re: bluetooth connections are unstable with linux-image-6.5.0-7-generic

did a whole fresh install to verify this .. initial kernel installed was 6.5.0-5 everything worked as expected .. upon upgrade to 6.5.0-7 the bluetooth connections became unstable ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

this is for the development version .. Mantic daily iso xubuntu 10-05-2023

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Re: bluetooth connections are unstable with linux-image-6.5.0-7-generic

FYI the linux-image-6.5.0-6-genric version also has the bluetooth random disconnect/reconnect issue..
(using kubuntu or xubuntu instances .. all on the same physical hardware .. all Mantic

summary: bluetooth connections are unstable with linux-image-6.5.0-7-generic
+ (MANTIC)
Revision history for this message
Juerg Haefliger (juergh) wrote : Re: bluetooth connections are unstable with linux-image-6.5.0-7-generic (MANTIC)

Can you please provide logs from when running the 'bad' kernel?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

logs from "bad kernel"

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

next oldest

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

kern.log today

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

kern.log.1 yesterday

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

auth.log

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

boot.log

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

boot.log.1

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

I've been trying out new installs with bluetooth for the release candidate of xubuntu 23.10 and the latest linux-image-generic-6.5.0-9 .. the initial clean install with no browser used .. gave good bluetooth performance .. but while playing music through my bluetooth headphone I started firefox(snap based) and bluetooth performance deteriorated rapidly.. and disconnect/reconnects started occuring.. as firefox activity on the network progressed .. even firefox snap running in the background caused the interference ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

okay .. it does not matter which snap or binary forefire browser or even thunderbird network activity for all 6.5.0-6 and greater kernels cause dropouts bluetooth audio noise and disconnect/reconnect behaviour..
kernels less than or equal to 6.5.0-5 do not exhibit this behaviour..

sometimes even window moves or selection of these apps causes issues..

It is as if there is an bluetooth audio/network bus bandwith/or interfereance issue created in the newer kernels

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

added bug report with ubuntu-bug with data from 6.5.0-9 kernel version bug#2039358

Revision history for this message
Juerg Haefliger (juergh) wrote :

Is bug 2039358 a different issue or why did you open a new bug?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

I wanted to make sure I had all the info needed pulled in .. it is the same issue .. is there a way to use ubuntu-bug to add info to an existing bug?

have I missed any logs you need for analysis?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

oh I just saw that apport-collect is used for that.. sorry for the noise

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : IwConfig.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Lspci.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Lspci-vt.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Lsusb.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Lsusb-t.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Lsusb-v.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : PaInfo.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : ProcModules.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : RfKill.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : UdevDb.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : WifiSyslog.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : acpidump.txt

apport information

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote : Re: bluetooth connections are unstable with linux-image-6.5.0-7-generic (MANTIC)

Okay the above represents apport-collection fron a linux-image-6.5.0-9-generic kernel instance .. after bluetooth headphone connection and at least two connection and disconnect insidents.. two firefox browser start and stops at least

any thing else needed..?

summary: - bluetooth connections are unstable with linux-image-6.5.0-7-generic
- (MANTIC)
+ bluetooth connections are unstable with linux-image-6.5.0-6-generic and
+ above (MANTIC)
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

intermittent behaviour still present in 6.5.0-10 .. just installed .. but disconnects are less frequent.
audio drop-outs are frequent.. tracks play normally with linux-image-6.5.0-5 .. manually marked .. to prevent removal..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

FYI a test install of fedora 39beta upgraded to latest vmlinuz-6.5.9-300.fc39.x86_64 kernel has no bluetooth audio issues .. on the same hardware .. different partions only..

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2038539

tags: added: iso-testing
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

note: disconnecting from the network stops dropouts considerably to a much more tolerable level.

I tried using flight mode but that kills bluetooth as well and turning it on again resulted in a struggle to reconnect the headphones. ..

as a side note .. latest audio updates had just been installed .. so no change in the underlying problem ..

 definite interaction with regular network causes the problem .. a traffic direction/priority issue?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

comment #41 was with the 6.5.0-12 kernel version .. switching to the older 6.5.0-5 kernel there are no issues (same software/hardware/just a reboot to a different kernel)

.. so a definite kernel internal interaction appears indicated between regular network and bluetooth network .. regular networking priority higher than bluetooth? or a device driver change? I don't know enough to check this out ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

just did another fresh noble xubuntu daily install .. 11/14/2023 bluetooth sound is jittery .. even without a browser started..vmlinux-6.5.0-9-generic .. is on the install media..

Revision history for this message
Juerg Haefliger (juergh) wrote :

There are a lot of stable and apparmor updates that went into 6.5.0-7. Can you identify any kernel or system log events at the (exact) time when the disconnects/dropouts happen?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

tried tail -f /var/log/syslog -f /var/log/kern.log ..

nothing syncronizes with the sound glitchers although a regular event is

==> /var/log/syslog <==
2023-11-15T13:17:48.973884-05:00 zlite1c kernel: [ 938.056939] audit: type=1400 audit(1700072268.965:142): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cups-browsed" name="/etc/gnutls/config" pid=3446 comm="ippfind" requested_mask="r" denied_mask="r" fsuid=118 ouid=0

==> /var/log/kern.log <==
2023-11-15T13:17:48.973884-05:00 zlite1c kernel: [ 938.056939] audit: type=1400 audit(1700072268.965:142): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cups-browsed" name="/etc/gnutls/config" pid=3446 comm="ippfind" requested_mask="r" denied_mask="r" fsuid=118 ouid=0

This appeared once:

==> /var/log/syslog <==
2023-11-15T13:12:29.271897-05:00 zlite1c systemd[1737]: blueman-manager.service: Consumed 8.608s CPU time.
2023-11-15T13:12:33.253214-05:00 zlite1c kernel: [ 622.336703] audit: type=1400 audit(1700071953.246:134): apparmor="DENIED" operation="open" class="file" profile="/usr/sbin/cups-browsed" name="/etc/gnutls/config" pid=3338 comm="ippfind" requested_mask="r" denied_mask="r" fsuid=118 ouid=0

But did not correspond to a sound drop/glitch..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

the apparmor lines above are also present using the 6.5.0-5 kernel which does NOT have glitches .. so that's a red herring ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

upgrade to kernel 6.6.0-13 slightly lessens the problem but does not eliminate the drop outs again starting browsing seems to trigger drop out to begin.. scheduler issue?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

no change with kernel 6.6.0-14

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

All on the same hardware .. just different install paritions..

a manjaro install with kernel 6.6.7 has no bluetooth issues even though the latest Ubuntu 6.6.0-14-generic kernel still has bluetooth dropouts .. up to date nobel install .. same install parition running 6.5.0-5-generic kernel no bluetooth drop out issues .. something in the recent ubuntu customized kernel is amiss!

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

okay installed kernel 6.8.0-7 from noble-proposed and bluetooth issue is gone with this version.. no drops
so this appears fixed

Changed in linux (Ubuntu):
status: New → Incomplete
status: Incomplete → Fix Released
To post a comment you must log in.