Comment 0 for bug 1856872

Revision history for this message
bishoptf (bishoptf) wrote : bluez regression: Bluetooth fails after resume

New laptop that is running Ubuntu Mate 19.10, most everything works out of the box even bluetooth but bluetooth does not resume after suspend. In fact I am unable to restart it and get it to work after a suspend. Wireless resumes and continues to work, just bluetooth fails. After suspend the controller and adapter are not found, restarting bluetooth.service nor restarting network manger solve the issue. After a resume the adapter is not found at all, I have tried to remove the module before a suspend and add it back to no avail, the only way to get it working is to reboot which is a pain.

Please let me know what additional data you may need, posting information below:

Chipset is Realtek RTL8822CE, combined wireless and Bluetooth module

Working on intial Boot:

lsusb -tv
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 3: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
        ID 0408:5365 Quanta Computer, Inc.
    |__ Port 3: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
        ID 0408:5365 Quanta Computer, Inc.
    |__ Port 10: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
        ID 0bda:b00c Realtek Semiconductor Corp.
    |__ Port 10: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
        ID 0bda:b00c Realtek Semiconductor Corp.

rfkill list
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no
1: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no

usb-devices
T: Bus=01 Lev=01 Prnt=01 Port=09 Cnt=01 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=b00c Rev=00.00
S: Manufacturer=Realtek
S: Product=Bluetooth Radio
S: SerialNumber=00e04c000001
C: #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#=0x1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
Bus 001 Device 003: ID 0bda:b00c Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg | grep Blue
[ 1.192743] usb 1-10: Product: Bluetooth Radio
[ 11.706607] Bluetooth: Core ver 2.22
[ 11.706620] Bluetooth: HCI device and connection manager initialized
[ 11.706624] Bluetooth: HCI socket layer initialized
[ 11.706626] Bluetooth: L2CAP socket layer initialized
[ 11.706628] Bluetooth: SCO socket layer initialized
[ 11.720229] Bluetooth: hci0: RTL: rtl: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 11.721252] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 11.721254] Bluetooth: hci0: RTL: rtl: loading rtl_bt/rtl8822cu_fw.bin
[ 11.722558] Bluetooth: hci0: RTL: rtl: loading rtl_bt/rtl8822cu_config.bin
[ 11.722879] Bluetooth: hci0: RTL: cfg_sz 6, total sz 24866
[ 15.466810] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 15.466812] Bluetooth: BNEP filters: protocol multicast
[ 15.466816] Bluetooth: BNEP socket layer initialized
[ 18.070246] Bluetooth: RFCOMM TTY layer initialized
[ 18.070250] Bluetooth: RFCOMM socket layer initialized
[ 18.070253] Bluetooth: RFCOMM ver 1.11

After resume:

lsusb -tv
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 3: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
        ID 0408:5365 Quanta Computer, Inc.
    |__ Port 3: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
        ID 0408:5365 Quanta Computer, Inc.

rfkill list
1: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

usb-devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=12
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=05.03
S: Manufacturer=Linux 5.3.0-24-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.01 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0408 ProdID=5365 Rev=00.02
S: Manufacturer=SunplusIT Inc
S: Product=HP TrueVision HD Camera
C: #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I: If#=0x1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=10000 MxCh= 6
D: Ver= 3.10 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev=05.03
S: Manufacturer=Linux 5.3.0-24-generic xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0408:5365 Quanta Computer, Inc. HP TrueVision HD Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub