Bluetooth will never turn on if turned off
Hi!
I use the Bluetooth feature a lot, and I am somewhat new to Linux, however I have discovered what I believe is a bug in the Gnome Control Center (gnome-control-center
)
I couldn't find any information that fixed my specific issue.
Bluetooth is turned on when the system starts. This is normal and expected behavior. However, when it is turned off using the control center, it won't turn on again. I use the Budgie Desktop Environment (which uses budgie-control-center
, a fork of gnome-control-center
) but this issue was observed in Gnome too. Looking through the logs was futile, however when doing sudo journalctl -f
and pressing the button (to turn it on), the following error is shown
Apr 03 10:27:30 lenovox1carb gsd-rfkill[1275]: GTask cc_rfkill_glib_send_change_all_event (source object: 0x5e46c8ec1b40, source tag: 0x5e46c8751ef0) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program.
This error triggers erratically but it seems that pressing the faulty button is the cause. Moreover, Bluetooth can be triggered on/off normally when using an applet (Budgie), which means that the Bluetooth drivers/daemon/chip are working correctly as shown in the video (with budgie-control-center
however this should be observable in Gnome too, as both of them suffer from the same issue)
2024-04-03_14-25-34 (not possible to show but I am pressing the button in the window. In the Gnome window it would have turned on and quickly flashed off too)
Looking through previous logs and also doing some experimentation, I am still unable to figure out whether this is a bug in the control center, or a bug in the system, however the video makes me want to say the former.
When BT starts on startup, and I start logging, then turn off BT via control center, the following is noted.
[soham@lenovox1carb ~]$ sudo journalctl -f | grep blue
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Failed to set mode: Invalid Index (0x11)
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/ldac
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/aptx_hd
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx_hd
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/aptx
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/aac
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aac
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/sbc
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/sbc
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/sbc_xq
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/sbc_xq
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/faststream
Apr 03 12:43:47 lenovox1carb dbus-broker[415]: A security policy denied :1.4 to send method call /midi/profile:org.bluez.GattProfile1.Release to :1.81.
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/faststream_duplex
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/opus_05
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/opus_05
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Endpoint unregistered: sender=:1.80 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Apr 03 12:43:47 lenovox1carb bluetoothd[417]: Battery Provider Manager destroyed
Bluetooth works like normal on start up
bluetoothctl
hci0 new_settings: powered bondable ssp br/edr le secure-conn s Pro
[AirPods Pro]# Agent registered
[AirPods Pro]# [CHG] Controller B8:08:CF:B1:2C:A3 Pairable: yes
However it won't work after BT is turned off in the control center
bluetoothctl
Waiting to connect to bluetoothd...[bluetooth]# Agent registered
[bluetooth]#
Running power on
in bluetoothctl in this state makes it complain No default controller available
Also, rebooting in this state causes my laptop to hang and not shut down or reboot. The only way to get it out of this state is to hold the power button until it shuts off
Relevant information
-
GNOME Settings version Local options gnome-control-center 46.0.1
-
Arch Linux Linux version 6.6.23-1-lts (linux-lts@archlinux)
-
Lenovo X1 Carbon (laptop) Intel BT and WIFI.
-
Error message 19:50:25.3518 cc-bluetooth-panel[ 5516]: DEBUG: Updating airplane mode: BluetoothHasAirplaneMode 1, BluetoothHardwareAirplaneMode 0, BluetoothAirplaneMode 1, AirplaneMode 0 19:50:25.3519 cc-bluetooth-panel[ 5516]: DEBUG: Default adapter is unpowered 19:50:25.3520 Bluetooth[ 5516]: DEBUG: Error setting property 'Powered' on /org/bluez/hci0: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Method "Set" with signature "ssv" on interface "org.freedesktop.DBus.Properties" doesn't exist
Steps to reproduce:
- Open GNome settings
- TUrn off bluetooth
- Turn on bluetooth and see it does not work. (There appears to be some underlying factors for my system.)