You are not logged in.

#1 2021-10-25 14:06:07

nellowly
Member
Registered: 2021-06-30
Posts: 4

[SoLvEd, Kernel issue] Bluetooth randomly stop working

I tried to downgrade rtl8821c, still No gpio to reset Realtek device, is this a kernel bug? (No power saving package was installed)
Edit: Reported https://bugzilla.kernel.org/show_bug.cgi?id=214823

~ > sudo dmesg | grep 'Bluetooth: hci'
[sudo] password for nellowly:
[   32.269597] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[   32.272590] Bluetooth: hci0: RTL: rom_version status=0 version=1
[   32.272595] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[   32.272611] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[   32.272626] Bluetooth: hci0: RTL: cfg_sz 10, total sz 21678
[   32.858653] Bluetooth: hci0: RTL: fw version 0x826ca99e
[11324.989363] Bluetooth: hci0: command 0x2005 tx timeout
[11327.038375] Bluetooth: hci0: command 0x200b tx timeout
[11329.085367] Bluetooth: hci0: command 0x200c tx timeout
[11331.133356] Bluetooth: hci0: command 0x0401 tx timeout
[11337.968450] Bluetooth: hci0: link tx timeout
[11337.968455] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11340.030351] Bluetooth: hci0: command 0x041f tx timeout
[11340.030362] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11342.078353] Bluetooth: hci0: command 0x0406 tx timeout
[11342.078362] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11348.001581] Bluetooth: hci0: link tx timeout
[11348.001591] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11348.003695] Bluetooth: hci0: link tx timeout
[11348.003703] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11348.004799] Bluetooth: hci0: link tx timeout
[11348.004807] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11348.017537] Bluetooth: hci0: link tx timeout
[11348.017545] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11349.001714] Bluetooth: hci0: link tx timeout
[11349.001719] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11350.077371] Bluetooth: hci0: command 0x0c24 tx timeout
[11350.077383] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11352.125366] Bluetooth: hci0: command 0x0c52 tx timeout
[11352.125371] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11354.173357] Bluetooth: hci0: command 0x0405 tx timeout
[11354.173365] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11356.221372] Bluetooth: hci0: command 0x0408 tx timeout
[11356.221377] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[11370.557366] Bluetooth: hci0: link tx timeout
[11370.557376] Bluetooth: hci0: killing stalled connection 94:db:56:17:9e:c2
[11372.605355] Bluetooth: hci0: command 0x0408 tx timeout
[11372.605359] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[12701.885371] Bluetooth: hci0: Timed out waiting for suspend events
[12701.885380] Bluetooth: hci0: Suspend timeout bit: 6
[12701.885388] Bluetooth: hci0: command 0x0408 tx timeout
[12701.885394] Bluetooth: hci0: No gpio to reset Realtek device, ignoring
[12701.885406] Bluetooth: hci0: Suspend notifier action (3) failed: -110

Dbus monitor when suspend and resume:

~ > sudo dbus-monitor --system path=/org/bluez/hci0                                                                                         INT 16s
[sudo] password for nellowly:
signal time=1635159394.932119 sender=org.freedesktop.DBus -> destination=:1.131 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.131"
signal time=1635159394.932145 sender=org.freedesktop.DBus -> destination=:1.131 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.131"
signal time=1635159409.493264 sender=:1.8 -> destination=(null destination) serial=1096 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "Class"
         variant             uint32 0
      )
      dict entry(
         string "Powered"
         variant             boolean false
      )
      dict entry(
         string "Discovering"
         variant             boolean false
      )
   ]
   array [
   ]
method call time=1635159410.268993 sender=:1.88 -> destination=org.bluez serial=153 path=/org/bluez/hci0; interface=org.bluez.Media1; member=RegisterApplication
   object path "/MediaEndpoint"
   array [
   ]
signal time=1635159410.302441 sender=:1.8 -> destination=(null destination) serial=1138 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "Powered"
         variant             boolean true
      )
   ]
   array [
   ]
signal time=1635159410.307729 sender=:1.8 -> destination=(null destination) serial=1158 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "Alias"
         variant             string "arch"
      )
   ]
   array [
   ]
signal time=1635159410.309793 sender=:1.8 -> destination=(null destination) serial=1159 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "Class"
         variant             uint32 268
      )
   ]
   array [
   ]
signal time=1635159410.312793 sender=:1.8 -> destination=(null destination) serial=1160 path=/org/bluez/hci0; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
   string "org.bluez.Adapter1"
   array [
      dict entry(
         string "UUIDs"
         variant             array [
               string "0000110e-0000-1000-8000-00805f9b34fb"
               string "0000111f-0000-1000-8000-00805f9b34fb"
               string "00001200-0000-1000-8000-00805f9b34fb"
               string "0000110b-0000-1000-8000-00805f9b34fb"
               string "00001108-0000-1000-8000-00805f9b34fb"
               string "0000110c-0000-1000-8000-00805f9b34fb"
               string "00001800-0000-1000-8000-00805f9b34fb"
               string "0000110a-0000-1000-8000-00805f9b34fb"
               string "00001801-0000-1000-8000-00805f9b34fb"
               string "0000180a-0000-1000-8000-00805f9b34fb"
            ]
      )
   ]
   array [
   ]

The adapter is working again:

[27191.324381] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[27191.326302] Bluetooth: hci0: RTL: rom_version status=0 version=1
[27191.326309] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[27191.326340] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[27191.326354] Bluetooth: hci0: RTL: cfg_sz 6, total sz 25126
[27191.951381] Bluetooth: hci0: RTL: fw version 0x827bee9e

Last edited by nellowly (2021-10-29 08:53:47)

Offline

#2 2023-03-02 05:37:00

deFreitas
Member
Registered: 2015-04-12
Posts: 4

Re: [SoLvEd, Kernel issue] Bluetooth randomly stop working

Take a look at this, answer, it may help you https://unix.stackexchange.com/a/738371/117844

Offline

#3 2023-03-03 12:20:57

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SoLvEd, Kernel issue] Bluetooth randomly stop working

drFreitas, please do not necrobump.

Closing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB