Bug 210141 - Bluetooth device driven by rtw_8822ce is lost after suspend to RAM
Summary: Bluetooth device driven by rtw_8822ce is lost after suspend to RAM
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Bluetooth (show other bugs)
Hardware: All Linux
: P1 blocking
Assignee: linux-bluetooth@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-11 00:47 UTC by devsk
Modified: 2021-12-07 18:21 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.9.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description devsk 2020-11-11 00:47:39 UTC
This is on an HP 14" laptop model: HP 14-dq1xxx with rtw_8822ce driver drives the wifi and bluetooth.

So, everything works fine until I suspend to RAM. After waking from suspend, the bluetooth adapter just disappears. I can see in the 'dmesg' the USB device gets disconnected but no reason is mentioned.

Before suspend:

[    6.937836] usb 1-10: new full-speed USB device number 5 using xhci_hcd
[    7.065627] usb 1-10: New USB device found, idVendor=0bda, idProduct=b00c, bcdDevice= 0.00
[    7.065630] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.065632] usb 1-10: Product: Bluetooth Radio 
[    7.065633] usb 1-10: Manufacturer: Realtek

After resume, it is gone:

[  329.512699] Restarting tasks ... done.
[  329.515898] usb 1-10: USB disconnect, device number 5
[  329.585469] PM: suspend exit
[  329.585559] elogind-daemon[7406]: System resumed.

# lspci
00:00.0 Host bridge: Intel Corporation Device 8a02 (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G1 (Ice Lake) (rev 07)
00:04.0 Signal processing controller: Intel Corporation Device 8a03 (rev 03)
00:14.0 USB controller: Intel Corporation Ice Lake-LP USB 3.1 xHCI Host Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Device 34ef (rev 30)
00:15.0 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Management Engine Interface (rev 30)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 30)
00:1c.0 PCI bridge: Intel Corporation Device 34bf (rev 30)
00:1f.0 ISA bridge: Intel Corporation Ice Lake-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Smart Sound Technology Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Ice Lake-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP SPI Controller (rev 30)
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter

# lsusb
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:56c9 IMC Networks HP TrueVision HD Camera
Bus 001 Device 008: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 413c:2011 Dell Computer Corp. Multimedia Pro Keyboard
Bus 001 Device 006: ID 413c:1005 Dell Computer Corp. Multimedia Pro Keyboard Hub
Bus 001 Device 004: ID 0c45:64ab Microdia Integrated Camera
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Device 5 is gone from lsusb.
Comment 1 devsk 2020-11-11 00:49:43 UTC
This breaks my headphones after resume from sleep.
Comment 2 ericlevy 2020-12-09 17:18:53 UTC
Confirmed. Same problem using RTL8821CE under Mint 2.0 kernel 5.8.0-31.


Would be nice if a workaround might be identified, in advance of a fix. Currently I am rebooting whenever I need to regain use of bluetooth.
Comment 3 Marcos Sánchez Provencio 2021-02-03 15:31:57 UTC
I have the same problem on an HP Laptop 15s-fq1xxx (10B51EA#ABE) with ubuntu 20.04 hwe (5.8.0-41-generic)

Bluetooth does not survive suspend; it does survive hibernate, in case it is any hint.
Comment 4 stimucou12 2021-12-07 18:21:45 UTC
The problem vanished away for me on HP Laptop 17-by0xxx running ubuntu 20.04 with kernel 5.4.0-91-generic and RTL8821CE using rtl8821ce-dkms 5.5.2.1-0ubuntu4~20.04.4

Note You need to log in before you can comment on or make changes to this bug.