RTL8821CE 802.11ac PCIe [10ec:c821] subsystem [17aa:c024] Bluetooth not working

Bug #1921829 reported by maxroby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Low
Unassigned
rtl8821ce (Ubuntu)
New
Undecided
Unassigned

Bug Description

It's impossible to activate the Bluetooth, putting the switch to ON does nothing, when re-entering the Bluetooth settings it's still OFF.

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: gnome-control-center 1:3.38.5-1ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-11.12-generic 5.11.0
Uname: Linux 5.11.0-11-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu61
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 30 08:11:43 2021
ExecutablePath: /usr/bin/gnome-control-center
InstallationDate: Installed on 2020-09-15 (195 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: gnome-control-center
UpgradeStatus: Upgraded to hirsute on 2021-03-19 (10 days ago)

Revision history for this message
maxroby (maxroby) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. That's probably a lower stack issue, could do

$ journalctl -f

then try to change the status and copy the log generated?

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
maxroby (maxroby) wrote :

Hi, I tried, no logs when switching on and off the Bluetooth switch.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you add the 'journalctl -b 0' log from the session?

Revision history for this message
maxroby (maxroby) wrote :

Here it is, thanks!

Revision history for this message
Sebastien Bacher (seb128) wrote :

The log indicates

bluetoothd[884]: Failed to set mode: Blocked through rfkill (0x12)

Do you have an hardware switch to force airplane or disable bluetooth which could be activated?

Revision history for this message
maxroby (maxroby) wrote :

Yes, I have a function button for the airplane mode, already considered in the test:
- if the airplane mode is enabled, I can't turn on the Bluetooth, the switch is disabled
- airplane mode off, the behavior described above

Revision history for this message
Sebastien Bacher (seb128) wrote :

what's the output of

$ rfkill

Revision history for this message
maxroby (maxroby) wrote :

$ rfkill --- WITH ARIPLANE MODE ON ---
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan blocked unblocked
 1 bluetooth ideapad_bluetooth blocked unblocked
 2 bluetooth hci0 blocked unblocked
 3 wlan phy0 blocked unblocked

$ rfkill --- WITH ARIPLANE MODE OFF ---
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan unblocked unblocked
 1 bluetooth ideapad_bluetooth unblocked unblocked
 2 bluetooth hci0 unblocked unblocked
 3 wlan phy0 unblocked unblocked

Revision history for this message
Sebastien Bacher (seb128) wrote :

Ok, and can you use bluetoothctl to list devices and pair or connect to those?

Revision history for this message
maxroby (maxroby) wrote :

Hi, here some output from the test:

Revision history for this message
maxroby (maxroby) wrote :

$ bluetoothctl
Agent registered

# list
Controller 28:39:26:88:F8:0C IdeaPad-L340 [default]

# power on
Changing power on succeeded

# scan on
Failed to start discovery: org.bluez.Error.NotReady

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is not due to the settings if the command line is failing, reassigning but it could be a kernel or driver problem, it could be worth trying to boot an older or newer kernel to try

affects: gnome-control-center (Ubuntu) → bluez (Ubuntu)
Changed in bluez (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [rtl8821ce] Bluetooth not working

I can't seem to reproduce the problem in Ubuntu 21.04 here so it seems to be machine-specific. And indeed the log in comment #5 is showing some kernel crashes in rtl8821ce that might be relevant.

summary: - Bluetooth not working
+ [rtl8821ce] Bluetooth not working
affects: bluez (Ubuntu) → linux (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Possibly related to bug 1853665.

You-Sheng Yang (vicamo)
summary: - [rtl8821ce] Bluetooth not working
+ [rtl8821ce] [10ec:c821] Bluetooth not working
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1921829

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
You-Sheng Yang (vicamo) wrote : Re: [rtl8821ce] [10ec:c821] Bluetooth not working
Download full text (9.7 KiB)

From comment #5, you're running rtl8821ce-dkms dkms driver, not in-kernel modules. And this is rooted in driver init failure:

mar 30 10:23:56 IdeaPad-L340 kernel: ------------[ cut here ]------------
mar 30 10:23:56 IdeaPad-L340 kernel: proc_dir_entry 'net/rtl8821ce' already registered
mar 30 10:23:56 IdeaPad-L340 kernel: WARNING: CPU: 4 PID: 444 at fs/proc/generic.c:381 proc_register+0x86/0x100
mar 30 10:23:56 IdeaPad-L340 kernel: Modules linked in: kvm_intel(+) rtl8821ce(OE+) snd_pcm kvm snd_seq_midi snd_seq_midi_event i915 crct10dif_pclmul snd_rawmidi ghash_clmulni_intel aesni_intel uvcvideo btusb crypto_simd cryptd glue_helper snd_seq btrtl snd_seq_device rapl videobuf2_vmalloc btbcm 8821ce(OE) intel_cstate intel_wmi_thunderbolt serio_raw wmi_bmof efi_pstore snd_timer videobuf2_memops drm_kms_helper btintel videobuf2_v4l2 processor_thermal_device videobuf2_common processor_thermal_rfim cec bluetooth snd videodev processor_thermal_mbox i2c_algo_bit rc_core input_leds joydev processor_thermal_rapl fb_sys_fops mei_me ecdh_generic cfg80211 syscopyarea 8250_dw intel_rapl_common mc soundcore ecc sysfillrect intel_soc_dts_iosf mei intel_pch_thermal elan_i2c sysimgblt mac_hid ideapad_laptop sparse_keymap int3403_thermal int340x_thermal_zone int3400_thermal acpi_tad acpi_pad acpi_thermal_rel sch_fq_codel msr parport_pc ppdev lp parport drm sunrpc ip_tables x_tables autofs4 hid_generic usbhid crc32_pclmul
mar 30 10:23:56 IdeaPad-L340 kernel: r8169 realtek ahci nvme intel_lpss_pci intel_lpss libahci i2c_hid i2c_i801 xhci_pci idma64 i2c_smbus nvme_core virt_dma xhci_pci_renesas hid wmi video pinctrl_cannonlake
mar 30 10:23:56 IdeaPad-L340 kernel: CPU: 4 PID: 444 Comm: systemd-udevd Tainted: P OE 5.11.0-11-generic #12-Ubuntu
mar 30 10:23:56 IdeaPad-L340 kernel: Hardware name: LENOVO 81LK/LNVNB161216, BIOS BGCN33WW 11/24/2020
mar 30 10:23:56 IdeaPad-L340 kernel: RIP: 0010:proc_register+0x86/0x100
mar 30 10:23:56 IdeaPad-L340 kernel: Code: c6 05 65 87 09 02 00 4c 89 e0 5b 41 5c 5d c3 49 8b 94 24 a0 00 00 00 48 8b b3 a0 00 00 00 48 c7 c7 30 78 5e 93 e8 43 60 80 00 <0f> 0b c6 05 39 87 09 02 00 41 8b 44 24 5c 48 c7 c7 10 df e0 93 8d
mar 30 10:23:56 IdeaPad-L340 kernel: RSP: 0018:ffffb174414dfcf0 EFLAGS: 00010286
mar 30 10:23:56 IdeaPad-L340 kernel: RAX: 0000000000000000 RBX: ffff919b41239a80 RCX: ffff919ca6318ac8
mar 30 10:23:56 IdeaPad-L340 kernel: RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff919ca6318ac0
mar 30 10:23:56 IdeaPad-L340 kernel: RBP: ffffb174414dfd00 R08: 0000000000000000 R09: ffffb174414dfad0
mar 30 10:23:56 IdeaPad-L340 kernel: R10: ffffb174414dfac8 R11: ffffffff93d53508 R12: ffff919b44bd8c00
mar 30 10:23:56 IdeaPad-L340 kernel: R13: ffff919b463f22e0 R14: 0000000000000000 R15: ffffffffc183fe40
mar 30 10:23:56 IdeaPad-L340 kernel: FS: 00007fb0bf69c8c0(0000) GS:ffff919ca6300000(0000) knlGS:0000000000000000
mar 30 10:23:56 IdeaPad-L340 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
mar 30 10:23:56 IdeaPad-L340 kernel: CR2: 0000555a7bc00000 CR3: 000000010cc90004 CR4: 00000000003706e0
mar 30 10:23:56 IdeaPad-L340 kernel: Call Trace:
mar 30 10:23:56 IdeaPad-L340 kernel: ? 0xffffffffc1885000
mar 30 10:23:56 Ide...

Read more...

tags: added: hwe-bluetooth
Revision history for this message
You-Sheng Yang (vicamo) wrote : Re: RTL8821CE 802.11ac PCIe [10ec:c821] Bluetooth not working

Could you try uninstall rtl8821ce-dkms and reboot to use in-tree driver?

  $ sudo apt purge rtl8821ce-dkms

You'll need a reboot to load in-tree driver. You can always install that back if necessary:

  $ sudo apt install rtl8821ce-dkms

summary: - [rtl8821ce] [10ec:c821] Bluetooth not working
+ RTL8821CE 802.11ac PCIe [10ec:c821] Bluetooth not working
Revision history for this message
maxroby (maxroby) wrote :

Hi, same issue when purging the rtl8821ce-dkms and enabling the in-tree driver.

Same issue also booting 21.04 from a live USB, in this case also wifi is not working because the additional drivers tool cannot find any wifi driver.

Revision history for this message
maxroby (maxroby) wrote :

Hi, I can add that the Airplane mode switch is not working for unblocking (both on installed and live system).

$ rfkill
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan unblocked unblocked
 1 bluetooth ideapad_bluetooth unblocked unblocked
 2 wlan phy0 unblocked unblocked

PRESS THE AIRPLANE BUTTON

$ rfkill
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan blocked unblocked
 1 bluetooth ideapad_bluetooth blocked unblocked
 2 wlan phy0 blocked unblocked

PRESS THE AIRPLANE BUTTON

$ rfkill
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan blocked unblocked
 1 bluetooth ideapad_bluetooth blocked unblocked
 2 wlan phy0 blocked unblocked

$ rfkill unblock all

$ rfkill
ID TYPE DEVICE SOFT HARD
 0 wlan ideapad_wlan unblocked unblocked
 1 bluetooth ideapad_bluetooth unblocked unblocked
 2 wlan phy0 unblocked unblocked

Revision history for this message
maxroby (maxroby) wrote :

Last addition: also wifi is not working with the rtl8821ce-dkms package from the repository.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

please attach the dmesg log when booting from your 5.11.0-11.12-generic kernel with rtl8821ce-dkms purged. I'm expecting:

  $ sudo dmesg | tee dmesg.$(uname -r)
  $ sudo dkms status | tee dkms.$(uname -r)
  $ sudo lspci -vvnn | tee lspci-vvnn.$(uname -r)

Please help attach the three output files. Thank you.

Revision history for this message
maxroby (maxroby) wrote :

Files attached, thank you!

Revision history for this message
You-Sheng Yang (vicamo) wrote :

@maxroby, from the line in dkms.5.11.0-11-generic:

  rtl8821ce, v5.5.2_34066.20200325, 5.11.0-11-generic, x86_64: installed

It means you're still running your 5.11 kernel with rtl8821ce-dkms compiled and installed. The same thing can also be found in the dmesg log. Is there anything wrong with the purge?

rtl8821ce has already in-tree kernel support, and it's named rtw88_foooo, e.g. rtw88_8821ce. So you need to uninstall that DKMS to try that in mainline kernel. I think your card, PCIID [10ec:c821] subsystem [17aa:c024], should have been supported.

summary: - RTL8821CE 802.11ac PCIe [10ec:c821] Bluetooth not working
+ RTL8821CE 802.11ac PCIe [10ec:c821] subsystem [17aa:c024] Bluetooth not
+ working
Revision history for this message
maxroby (maxroby) wrote :

Hi, I've removed the dmks module, you can find the updated logs in the attachment.
Thanks,
Roberto

Revision history for this message
maxroby (maxroby) wrote :

Bug still present, I can enable Bluetooth but it's not connecting to devices.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like this has been superseded by bug 1950979 now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.