Repository: pop-os/pop

Issue #1623: Bluetooth not working after upgrading to kernel 5.11.0-7612-generic in Lenovo Ideapad 330 15ARR
Created: 2021-04-07T09:43:11Z
Distribution (run cat /etc/os-release):
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os
Related Application and/or Package Version (run apt policy $PACKAGE NAME):
HCI Version: 4.2 (0x8)  Revision: 0x829a
LMP Version: 4.2 (0x8)  Subversion: 0x7644
Manufacturer: Realtek Semiconductor Corporation (93)
Issue/Bug Description:
Cannot use bluetooth functionality until the steps defined below are done :
TO CHECK THE CURRENT BLUETOOTH STATUS
After executing command : systemctl status bluetooth
Output is :
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
Active: active (running) since Wed 2021-04-07 14:34:17 IST; 1min 11s ago
Docs: man:bluetoothd(8)
Main PID: 737 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 8878)
Memory: 1.7M
CGroup: /system.slice/bluetooth.service
└─737 /usr/lib/bluetooth/bluetoothd
Apr 07 14:34:17 ldevs-workstation systemd[1]: Starting Bluetooth service...
Apr 07 14:34:17 ldevs-workstation bluetoothd[737]: Bluetooth daemon 5.53
Apr 07 14:34:17 ldevs-workstation systemd[1]: Started Bluetooth service.
Apr 07 14:34:17 ldevs-workstation bluetoothd[737]: Starting SDP server
Apr 07 14:34:17 ldevs-workstation bluetoothd[737]: Bluetooth management  interface 1.19 initialized
Apr 07 14:34:17 ldevs-workstation bluetoothd[737]: Failed to set mode: Blocked through rfkill (0x12)
Apr 07 14:34:22 ldevs-workstation bluetoothd[737]: Failed to set mode: Blocked through rfkill (0x12)
Apr 07 14:34:26 ldevs-workstation bluetoothd[737]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSink/sbc
Apr 07 14:34:26 ldevs-workstation bluetoothd[737]: Endpoint registered: sender=:1.71 path=/MediaEndpoint/A2DPSource/sbc
As can be seen above rfkill failed to set mode because of which bluetooth couldn't turn on for which I did the following workaround:
After executing : rfkill unblock all ; sudo systemctl restart bluetooth
Result is : Bluetooth is unblocked by rfkill and systemctl restarts the bluetooth service which makes it turn on successfully ! if we navigate to bluetooth settings we can see visible devices. Close the bluetooth settings window and read below continued..
Now, here we go for another round of issues
Remember initially after above workaround bluetooth is on and is working.
After going into bluetooth settings from panel like below -

Now if you turn bluetooth toggle off and then try to turn it back on it won't turn on again also the status won't change in the panel as it should and no devices will be displayed in bluetooth settings window either.
BUT, if you close the window and then do the following -

Close the bluetooth settings window
Try to turn on bluetooth from the panel it'll turn on but status won't change still in the panel option it'll show off but you can see that sub option changed to Turn off. Now, click on bluetooth settings option again and unexpectedly the devices will show up this time.

So, mainly if you try to turn bluetooth on/off from bluetooth settings it won't work but if you try to do so from panel it will work. Although, the main panel bluetooth option will keep showing off until we navigate to bluetooth settings once in case when we're trying to turn bluetooth on/off from panel option.
Importantly, downgrading or just simply booting to old kernel-conf using systemd boot manager issue isn't there anymore which proves somehow that issue came up with new kernel upgrade recently.
This bug persists across rebooting the system multiple times.
Steps to reproduce (if you know):
To reproduce upgrade pop os v20.04 (maybe v20.10 also) to recent kernel update - 5.11.0-7612-generic. That's all.
Expected behavior:
Bluetooth should turn on and off normally from both system settings as well as gnome-panel shortcut. Also, the active/inactive (ON/OFF) status of bluetooth must also reflect normally in both system settings as well as in gnome-panel.

Duplicate issue #1626: Problem with bluetooth
Created: 2021-04-08T07:08:16Z
My Pop os Bluetooth button is not working.
I have tried "rfkill" to unblock Bluetooth. Everything is unblocked when checked using "rfkill list".
Every time I have to use Bluetooth I have to use the command "sudo systemctl restart bluetooth".
Please help me with this problem.
Thank You

Closing comment (2021-04-08T15:18:27Z): Isn't this a duplicate of #1623?