[Bug 1950061] [NEW] Failed to start Raspberry Pi bluetooth helper

Launchpad Bug Tracker 1950061 at bugs.launchpad.net
Sat Nov 6 22:09:01 UTC 2021


You have been subscribed to a public bug:

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.servicebthelper 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

** Affects: pi-bluetooth (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Failed to start Raspberry Pi bluetooth helper
https://bugs.launchpad.net/bugs/1950061
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to pi-bluetooth in Ubuntu.



More information about the foundations-bugs mailing list