[Bug 1950061] [NEW] Failed to start Raspberry Pi bluetooth helper
Alex Kurichenko
1950061 at bugs.launchpad.net
Sat Nov 6 22:07:17 UTC 2021
Public bug reported:
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
** Affects: pi-bluetooth (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "bthelper_modified"
https://bugs.launchpad.net/bugs/1950061/+attachment/5538572/+files/bthelper_modified
** Description changed:
- OS: Ubuntu 12.01
+ 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
+ # 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
+ 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 this command is placed before 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
+ # 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
+ 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 everything works as expected
** Description changed:
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 this command is placed before before
+ 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 everything works as expected
+ After this change it works as expected
** Package changed: linux-meta-raspi (Ubuntu) => pi-bluetooth (Ubuntu)
--
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:
New
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