[Bug 1950061] Re: Failed to start Raspberry Pi bluetooth helper

Dave Jones 1950061 at bugs.launchpad.net
Thu Nov 11 15:28:15 UTC 2021


** Changed in: pi-bluetooth (Ubuntu)
       Status: New => Confirmed

** Also affects: pi-bluetooth (Ubuntu Jammy)
   Importance: Undecided
       Status: Confirmed

** Also affects: pi-bluetooth (Ubuntu Impish)
   Importance: Undecided
       Status: New

** Changed in: pi-bluetooth (Ubuntu Impish)
       Status: New => Confirmed

** Changed in: pi-bluetooth (Ubuntu Jammy)
     Assignee: (unassigned) => Dave Jones (waveform)

-- 
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:
  Confirmed
Status in pi-bluetooth source package in Impish:
  Confirmed
Status in pi-bluetooth source package in Jammy:
  Confirmed

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

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