← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2125137] [NEW] BlueZ 5.79 on Ubuntu 24.04 ignores "Disable=Handsfree, Headset" in main.conf

 

Public bug reported:

[Summary]

  On Ubuntu 24.04, the BlueZ daemon (bluetoothd) is ignoring the Disable= directive in /etc/bluetooth/main.conf.
  This prevents the user from disabling the HSP/HFP profiles, which in turn causes a conflict with the A2DP profile
  when connecting certain headsets (in this case, a Soundcore Liberty 4 NC). This conflict often results in the A2DP
   profile failing to load, leaving the user with only low-quality mono audio.

  [Problem Details]

  When connecting the headset, the a2dp-sink profile frequently fails to connect with a "Device or resource busy"
  error in the bluetooth.service journal. The system then defaults to the HSP/HFP profile.

  To solve this, the standard procedure of adding Disable=Handsfree,Headset to /etc/bluetooth/main.conf was
  followed. However, after restarting the bluetooth service, the HSP/HFP profiles (headset-head-unit) are still
  registered by PipeWire and remain functional and selectable in the sound settings. This confirms the Disable=
  directive is not working as expected.

  [System Information]

   * Kernel: 6.14.0-28-generic
   * BlueZ Version: 5.79
   * PipeWire Version: 1.2.7
   * Ubuntu Release: 25.04

  [Steps to Reproduce]

   1. Edit /etc/bluetooth/main.conf as root.
   2. Under the [General] section, add the line: Disable=Handsfree,Headset
   3. Restart the bluetooth service: sudo systemctl restart bluetooth.service
   4. Connect a Bluetooth headset.
   5. Run pactl list cards.

  [Expected Result]

  The output for the Bluetooth card should NOT list any headset-head-
unit (HSP/HFP) profiles.

  [Actual Result]

  The headset-head-unit profiles are still listed as available and are functional, proving the Disable= directive
  was ignored.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: bluez 5.79-2ubuntu1.1
ProcVersionSignature: Ubuntu 6.14.0-28.28-generic 6.14.8
Uname: Linux 6.14.0-28-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 18 12:36:18 2025
InstallationDate: Installed on 2025-01-29 (232 days ago)
InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
InterestingModules: rfcomm bnep btusb bluetooth
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
 Bus 001 Device 004: ID 5986:0706 Bison Electronics Inc. ThinkPad P50 Integrated Camera
 Bus 001 Device 009: ID 138a:0017 Validity Sensors, Inc. VFS 5011 fingerprint sensor
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: LENOVO 20FMA00CAR
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-28-generic root=UUID=6a84e060-caa9-4c6d-b70c-e05376743fc0 ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7
SourcePackage: bluez
UpgradeStatus: Upgraded to plucky on 2025-08-09 (40 days ago)
dmi.bios.date: 02/21/2022
dmi.bios.release: 1.45
dmi.bios.vendor: LENOVO
dmi.bios.version: R06ET71W (1.45 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20FMA00CAR
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.8
dmi.modalias: dmi:bvnLENOVO:bvrR06ET71W(1.45):bd02/21/2022:br1.45:efr1.8:svnLENOVO:pn20FMA00CAR:pvrThinkPadT460:rvnLENOVO:rn20FMA00CAR:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20FM_BU_Think_FM_ThinkPadT460:
dmi.product.family: ThinkPad T460
dmi.product.name: 20FMA00CAR
dmi.product.sku: LENOVO_MT_20FM_BU_Think_FM_ThinkPad T460
dmi.product.version: ThinkPad T460
dmi.sys.vendor: LENOVO
hciconfig:
 hci0:	Type: Primary  Bus: USB
 	BD Address: 44:85:00:83:CD:9E  ACL MTU: 1021:4  SCO MTU: 96:6
 	UP RUNNING PSCAN 
 	RX bytes:8908179 acl:45632 sco:294680 events:17923 errors:112
 	TX bytes:17647020 acl:15198 sco:294534 commands:2626 errors:0
mtime.conffile..etc.bluetooth.main.conf: 2025-09-18T12:21:29.531178

** Affects: bluez (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug plucky

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to bluez in Ubuntu.
https://bugs.launchpad.net/bugs/2125137

Title:
  BlueZ 5.79 on Ubuntu 24.04 ignores "Disable=Handsfree,Headset" in
  main.conf

Status in bluez package in Ubuntu:
  New

Bug description:
  [Summary]

    On Ubuntu 24.04, the BlueZ daemon (bluetoothd) is ignoring the Disable= directive in /etc/bluetooth/main.conf.
    This prevents the user from disabling the HSP/HFP profiles, which in turn causes a conflict with the A2DP profile
    when connecting certain headsets (in this case, a Soundcore Liberty 4 NC). This conflict often results in the A2DP
     profile failing to load, leaving the user with only low-quality mono audio.

    [Problem Details]

    When connecting the headset, the a2dp-sink profile frequently fails to connect with a "Device or resource busy"
    error in the bluetooth.service journal. The system then defaults to the HSP/HFP profile.

    To solve this, the standard procedure of adding Disable=Handsfree,Headset to /etc/bluetooth/main.conf was
    followed. However, after restarting the bluetooth service, the HSP/HFP profiles (headset-head-unit) are still
    registered by PipeWire and remain functional and selectable in the sound settings. This confirms the Disable=
    directive is not working as expected.

    [System Information]

     * Kernel: 6.14.0-28-generic
     * BlueZ Version: 5.79
     * PipeWire Version: 1.2.7
     * Ubuntu Release: 25.04

    [Steps to Reproduce]

     1. Edit /etc/bluetooth/main.conf as root.
     2. Under the [General] section, add the line: Disable=Handsfree,Headset
     3. Restart the bluetooth service: sudo systemctl restart bluetooth.service
     4. Connect a Bluetooth headset.
     5. Run pactl list cards.

    [Expected Result]

    The output for the Bluetooth card should NOT list any headset-head-
  unit (HSP/HFP) profiles.

    [Actual Result]

    The headset-head-unit profiles are still listed as available and are functional, proving the Disable= directive
    was ignored.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: bluez 5.79-2ubuntu1.1
  ProcVersionSignature: Ubuntu 6.14.0-28.28-generic 6.14.8
  Uname: Linux 6.14.0-28-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5.3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Sep 18 12:36:18 2025
  InstallationDate: Installed on 2025-01-29 (232 days ago)
  InstallationMedia: Ubuntu 24.04.1 LTS "Noble Numbat" - Release amd64 (20240827.1)
  InterestingModules: rfcomm bnep btusb bluetooth
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 001 Device 002: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
   Bus 001 Device 004: ID 5986:0706 Bison Electronics Inc. ThinkPad P50 Integrated Camera
   Bus 001 Device 009: ID 138a:0017 Validity Sensors, Inc. VFS 5011 fingerprint sensor
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  MachineType: LENOVO 20FMA00CAR
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-28-generic root=UUID=6a84e060-caa9-4c6d-b70c-e05376743fc0 ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M vt.handoff=7
  SourcePackage: bluez
  UpgradeStatus: Upgraded to plucky on 2025-08-09 (40 days ago)
  dmi.bios.date: 02/21/2022
  dmi.bios.release: 1.45
  dmi.bios.vendor: LENOVO
  dmi.bios.version: R06ET71W (1.45 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 20FMA00CAR
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Defined
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: None
  dmi.ec.firmware.release: 1.8
  dmi.modalias: dmi:bvnLENOVO:bvrR06ET71W(1.45):bd02/21/2022:br1.45:efr1.8:svnLENOVO:pn20FMA00CAR:pvrThinkPadT460:rvnLENOVO:rn20FMA00CAR:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20FM_BU_Think_FM_ThinkPadT460:
  dmi.product.family: ThinkPad T460
  dmi.product.name: 20FMA00CAR
  dmi.product.sku: LENOVO_MT_20FM_BU_Think_FM_ThinkPad T460
  dmi.product.version: ThinkPad T460
  dmi.sys.vendor: LENOVO
  hciconfig:
   hci0:	Type: Primary  Bus: USB
   	BD Address: 44:85:00:83:CD:9E  ACL MTU: 1021:4  SCO MTU: 96:6
   	UP RUNNING PSCAN 
   	RX bytes:8908179 acl:45632 sco:294680 events:17923 errors:112
   	TX bytes:17647020 acl:15198 sco:294534 commands:2626 errors:0
  mtime.conffile..etc.bluetooth.main.conf: 2025-09-18T12:21:29.531178

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/2125137/+subscriptions