r/UbuntuTouch • u/StanislawTlolka • 1d ago
Discussion Found potential fix for bluetooth connecting issue
Hi, I am on latest stable OS version. I found a issue which cannot let me connect with my headunit or pc. I tried apply fix from this text
Root Cause Summary
==================
HCI / eSCO Command Mismatch:
The Qualcomm Bluetooth controller (SoC 40140110 Moselle) advertises support for
"HCI Enhanced Setup Synchronous Connection" (Wideband Speech / eSCO), which is
unsupported by the underlying Halium firmware ("HCI Enhanced Setup Synchronous
Connection command is advertised, but not supported"). When pairing with car
head units (HFP), BlueZ attempts to negotiate this feature, causing immediate
pairing/connection rejection.
SLIMbus Audio Codec Initialization Failure (-6 / ENXIO):
The btfmslim-driver fails to acquire a logical address ("ASoC: can't open
codec btfm_bt_sco_a2dp_slim_rx: -6"), leading to audio profile
desynchronization during repeated pairings.
Stale Link Keys & Dual-Mode Conflict:
Corrupted pairing keys in /var/lib/bluetooth and default dual-mode
(BLE + BR/EDR) negotiation prevent re-pairing with desktop PCs and
legacy/automotive Bluetooth stacks.
Fix & Deployment Steps (Ubuntu Touch Read-Only Root Safe)
=========================================================
Create a patched main.conf in the writable user directory (~/.config/bt-patch/main.conf):
- ControllerMode = bredr (forces Classic Bluetooth, disabling dual-mode BLE interference)
- JustWorksRepairing = always (allows seamless re-pairing when link keys desync)
- Class = 0x5A020C (explicitly advertises Audio/Telephony smartphone capabilities to car head units)
Example file content:
[General]
Name = Ubuntu-Touch
Class = 0x5A020C
DiscoverableTimeout = 0
PairableTimeout = 0
ControllerMode = bredr
FastConnectable = true
JustWorksRepairing = always
Privacy = off
[Policy]
AutoEnable = true
ReconnectAttempts = 7
ReconnectIntervals = 1, 2, 4, 8, 16, 32, 64
Bind-mount the patched configuration over /etc/bluetooth/main.conf:
sudo mount --bind /home/phablet/.config/bt-patch/main.conf /etc/bluetooth/main.conf
Clear corrupted pairing cache and restart BlueZ:
sudo systemctl stop bluetooth
sudo rm -rf /var/lib/bluetooth/*
sudo systemctl start bluetooth
(Note: Remove existing pairings from both the PC and the car head unit before re-pairing.)
Persist across reboots via a systemd oneshot unit:
- Remount root as read-write:
sudo mount -o remount,rw /
- Create /etc/systemd/system/bt-config-bind.service with Before=bluetooth.service
executing the mount --bind command.
- Enable the service and remount root back to read-only:
sudo systemctl daemon-reload
sudo systemctl enable bt-config-bind.service
sudo mount -o remount,ro /
Now pc connection working perfect, I will try connect my phone to headunit later.
1
u/StanislawTlolka 1d ago
My headunit work perfect too