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@hci0.service
× bthelper@hci0.service - Raspberry Pi bluetooth helper
     Loaded: loaded (/lib/systemd/system/bthelper@.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@hci0.service: Main process 
exited, code=exited, status=1/FAILURE
ноя 06 23:44:32 raspberrypi systemd[1]: bthelper@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@hci0.service
● bthelper@hci0.service - Raspberry Pi bluetooth helper
     Loaded: loaded (/lib/systemd/system/bthelper@.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@hci0.service 
+ # systemctl status bthelper@hci0.service
  × bthelper@hci0.service - Raspberry Pi bluetooth helper
-      Loaded: loaded (/lib/systemd/system/bthelper@.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@.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@hci0.service: Main process 
exited, code=exited, status=1/FAILURE
  ноя 06 23:44:32 raspberrypi systemd[1]: bthelper@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@hci0.service 
+ # systemctl status bthelper@hci0.service
  ● bthelper@hci0.service - Raspberry Pi bluetooth helper
-      Loaded: loaded (/lib/systemd/system/bthelper@.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@.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@hci0.service
  × bthelper@hci0.service - Raspberry Pi bluetooth helper
       Loaded: loaded (/lib/systemd/system/bthelper@.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@hci0.service: Main process 
exited, code=exited, status=1/FAILURE
  ноя 06 23:44:32 raspberrypi systemd[1]: bthelper@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@hci0.service
  ● bthelper@hci0.service - Raspberry Pi bluetooth helper
       Loaded: loaded (/lib/systemd/system/bthelper@.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 Kernel
Packages, which is subscribed to linux-meta-raspi 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@hci0.service
  × bthelper@hci0.service - Raspberry Pi bluetooth helper
       Loaded: loaded (/lib/systemd/system/bthelper@.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@hci0.service: Main process 
exited, code=exited, status=1/FAILURE
  ноя 06 23:44:32 raspberrypi systemd[1]: bthelper@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@hci0.service
  ● bthelper@hci0.service - Raspberry Pi bluetooth helper
       Loaded: loaded (/lib/systemd/system/bthelper@.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


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to