RPi-Distro / pi-bluetooth

Loads BCM43430A1 firmware on boot
42 stars 34 forks source link

BLE connection fail - bluetoothd[575]: Failed to set mode: Rejected (0x0b) #35

Open sliterok opened 1 year ago

sliterok commented 1 year ago

Moving from #8 since it was closed. 09-06 RPI OS Lite x64 image with apt-update just after install:

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-09-23 21:21:56 CEST; 5s ago
       Docs: man:bluetoothd(8)
   Main PID: 1137 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4164)
        CPU: 56ms
     CGroup: /system.slice/bluetooth.service
             └─1137 /usr/libexec/bluetooth/bluetoothd --noplugin=sap,wiimote,battery,deviceinfo,hostname,scanparam,autopair

Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) wiimote
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) autopair
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) sap
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) scanparam
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) deviceinfo
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Excluding (cli) battery
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Bluetooth management interface 1.21 initialized
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Failed to set mode: Rejected (0x0b)
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Failed to set mode: Rejected (0x0b)
Sep 23 21:21:56 raspberrypi bluetoothd[1137]: Failed to set privacy: Rejected (0x0b)

This persists on service restart (i.e. different than previous issue) After installing bluez 5.63 as mentioned here https://github.com/RPi-Distro/pi-bluetooth/issues/8#issuecomment-1051308292

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-09-23 21:41:42 CEST; 1s ago
       Docs: man:bluetoothd(8)
   Main PID: 769 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4164)
        CPU: 32ms
     CGroup: /system.slice/bluetooth.service
             └─769 /usr/libexec/bluetooth/bluetoothd

Sep 23 21:41:42 raspberrypi systemd[1]: Starting Bluetooth service...
Sep 23 21:41:42 raspberrypi bluetoothd[769]: Bluetooth daemon 5.63
Sep 23 21:41:42 raspberrypi bluetoothd[769]: src/main.c:check_config() Unknown group Controller in /etc/bluetooth/main.conf
Sep 23 21:41:42 raspberrypi systemd[1]: Started Bluetooth service.
Sep 23 21:41:42 raspberrypi bluetoothd[769]: Bluetooth management interface 1.21 initialized
Sep 23 21:41:42 raspberrypi bluetoothd[769]: Failed to set mode: Rejected (0x0b)
Sep 23 21:41:42 raspberrypi bluetoothd[769]: Failed to set mode: Rejected (0x0b)
Sep 23 21:41:42 raspberrypi bluetoothd[769]: Failed to set privacy: Rejected (0x0b)
sliterok commented 1 year ago

And after updating to the latest version atm (5.65) getting even more errors in the log

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-09-23 22:23:26 CEST; 876ms ago
       Docs: man:bluetoothd(8)
   Main PID: 765 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4164)
        CPU: 56ms
     CGroup: /system.slice/bluetooth.service
             └─765 /usr/libexec/bluetooth/bluetoothd

Sep 23 22:23:26 raspberrypi bluetoothd[765]: Bluetooth daemon 5.65
Sep 23 22:23:26 raspberrypi systemd[1]: Started Bluetooth service.
Sep 23 22:23:26 raspberrypi bluetoothd[765]: Bluetooth management interface 1.21 initialized
Sep 23 22:23:26 raspberrypi bluetoothd[765]: profiles/audio/avrcp.c:avrcp_controller_server_probe() Unable to register AVRCP service record
Sep 23 22:23:26 raspberrypi bluetoothd[765]: avrcp-controller: Operation not permitted (1)
Sep 23 22:23:26 raspberrypi bluetoothd[765]: profiles/audio/avrcp.c:avrcp_target_server_probe() Unable to register AVRCP target service record
Sep 23 22:23:26 raspberrypi bluetoothd[765]: audio-avrcp-target: Operation not permitted (1)
Sep 23 22:23:26 raspberrypi bluetoothd[765]: Failed to set mode: Rejected (0x0b)
Sep 23 22:23:26 raspberrypi bluetoothd[765]: Failed to set mode: Rejected (0x0b)
Sep 23 22:23:26 raspberrypi bluetoothd[765]: Failed to set privacy: Rejected (0x0b)
redrockltd commented 1 year ago

Same issue on RPI 2Z

`● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2022-09-28 19:20:56 UTC; 13s ago Docs: man:bluetoothd(8) Main PID: 826 (bluetoothd) Status: "Running" Tasks: 1 (limit: 366) Memory: 1.8M CPU: 141ms CGroup: /system.slice/bluetooth.service └─826 /usr/libexec/bluetooth/bluetoothd

Sep 28 19:20:56 relock systemd[1]: Starting Bluetooth service... Sep 28 19:20:56 relock bluetoothd[826]: Bluetooth daemon 5.63 Sep 28 19:20:56 relock systemd[1]: Started Bluetooth service. Sep 28 19:20:56 relock bluetoothd[826]: Starting SDP server Sep 28 19:20:56 relock bluetoothd[826]: Bluetooth management interface 1.21 initialized Sep 28 19:20:57 relock bluetoothd[826]: Failed to set privacy: Rejected (0x0b) Sep 28 19:21:01 relock bluetoothd[826]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_mana`