[Bug 1950061] Re: Failed to start Raspberry Pi bluetooth helper
Launchpad Bug Tracker
1950061 at bugs.launchpad.net
Thu Nov 11 17:24:57 UTC 2021
This bug was fixed in the package pi-bluetooth - 0.1.18ubuntu1
---------------
pi-bluetooth (0.1.18ubuntu1) jammy; urgency=medium
* New upstream release, 0.1.18
* The new release moves hcitool before the bluetoothctl reset which
addresses bthelper failing to start (LP: #1950061)
* Fix journal warnings for incorrect substitutions (LP: #1944027)
* Add man-pages for all included scripts
* Depend on linux-firmware-raspi or linux-firmware-raspi2 to support rename
(LP: #1950632)
-- Dave Jones <dave.jones at canonical.com> Fri, 05 Nov 2021 15:43:41
+0000
** Changed in: pi-bluetooth (Ubuntu Jammy)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pi-bluetooth in Ubuntu.
https://bugs.launchpad.net/bugs/1950061
Title:
Failed to start Raspberry Pi bluetooth helper
Status in pi-bluetooth package in Ubuntu:
Fix Released
Status in pi-bluetooth source package in Impish:
Confirmed
Status in pi-bluetooth source package in Jammy:
Fix Released
Bug description:
OS: Ubuntu 21.10
Package: pi-bluetooth 0.1.15ubuntu2 arm64
Affected HW: Raspberry Pi 4B
Here's my problem:
bthelper unit fails to start
# systemctl status bthelper at hci0.service
× bthelper at hci0.service - Raspberry Pi bluetooth helper
Loaded: loaded (/lib/systemd/system/bthelper at .service; static)
Active: failed (Result: exit-code) since Sat 2021-11-06 23:44:32 EET; 1min 23s ago
Process: 570 ExecStart=/usr/bin/bthelper hci0 (code=exited, status=1/FAILURE)
Main PID: 570 (code=exited, status=1/FAILURE)
CPU: 103ms
ноя 06 23:44:32 raspberrypi bthelper[578]: [82B blob data]
ноя 06 23:44:32 raspberrypi bthelper[578]: [82B blob data]
ноя 06 23:44:32 raspberrypi bthelper[578]: [82B blob data]
ноя 06 23:44:32 raspberrypi bthelper[578]: [82B blob data]
ноя 06 23:44:32 raspberrypi bthelper[578]: AdvertisementMonitor path registered
ноя 06 23:44:32 raspberrypi bthelper[599]: AdvertisementMonitor path registered
ноя 06 23:44:32 raspberrypi bthelper[609]: Invalid device: Network is down
ноя 06 23:44:32 raspberrypi systemd[1]: bthelper at hci0.service: Main process exited, code=exited, status=1/FAILURE
ноя 06 23:44:32 raspberrypi systemd[1]: bthelper at hci0.service: Failed with result 'exit-code'.
ноя 06 23:44:32 raspberrypi systemd[1]: Failed to start Raspberry Pi bluetooth helper.
----
But script works fine if hcitool command is placed before
reinitialisation:
--- /usr/bin/bthelper ---
# Route SCO packets to the HCI interface (enables HFP/HSP)
/usr/bin/hcitool -i $dev cmd 0x3f 0x1c 0x01 0x02 0x00 0x01 0x01 > /dev/null
# Force reinitialisation to allow extra features such as Secure Simple Pairing
# to be enabled
/usr/bin/bluetoothctl power off
/usr/bin/bluetoothctl power on
---
# systemctl status bthelper at hci0.service
● bthelper at hci0.service - Raspberry Pi bluetooth helper
Loaded: loaded (/lib/systemd/system/bthelper at .service; static)
Active: active (exited) since Sat 2021-11-06 23:50:17 EET; 1min 17s ago
Process: 1099 ExecStart=/usr/bin/bthelper hci0 (code=exited, status=0/SUCCESS)
Main PID: 1099 (code=exited, status=0/SUCCESS)
CPU: 98ms
After this change it works as expected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pi-bluetooth/+bug/1950061/+subscriptions
More information about the foundations-bugs
mailing list