rtw88_8821ce: Bluetooth Mouse goes into connect/disconnect loop when Wifi disconnected

Bug #2007004 reported by Michael Poly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 22.04.01 / ASUS E410MA Laptop / Logitech MX Anywhere 2S mouse.

This problem occurs with the rtw88_8821ce driver
Workaround was to blacklist rtw88_8821ce and install rtl8821ce

When disconnecting from a WiFi network, or turning of WiFi altogether, or booting up at a location where there is no remembered WiFi connection, my bluetooth Logitech MX 2S freezes, then begins to rapidly disconnect/reconnect about 3-4 times a second.

  root@ithaca:~ # uname -a
  Linux ithaca 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC
  2023 x86_64 x86_64 x86_64 GNU/Linux

  root@ithaca:~ # inxi -EMN
  Machine:
    Type: Laptop System: ASUSTeK product: VivoBook_ASUS Laptop
     E410MA_E410MA v: 1.0 serial: XXXXXXXXXXXXXXXX
     Mobo: ASUSTeK model: E410MA v: 1.0 serial: XXXXXXXXXXXXXXXXXXX
     UEFI: American Megatrends v: E410MA.302 date: 09/11/2020
  Network:
    Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
    driver: rtw_8821ce
  Bluetooth:
    Device-1: IMC Networks Bluetooth Radio type: USB driver: btusb
    Report: hciconfig ID: hci0 state: up address: 20:4E:XX:XX:XX:XX bt-v:
    2.1

Output of running bluetoothctl while this happens:

  root@ithaca:/var/log # bluetoothctl
  Agent registered
    (At this point I disconnect WiFI. Mouse starts acting up immediately,
     responding erratically, then about 10 seconds elapse, then the below
     messages start)
  [CHG] Device E4:3B:XX:XX:XX:XX ServicesResolved: no
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: yes
  [CHG] Device E4:3B:XX:XX:XX:XX ServicesResolved: yes
  [CHG] Device E4:3B:XX:XX:XX:XX ServicesResolved: no
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: yes
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: no
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: yes
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: no
    (This goes on and on about 3 times a second until
     I reconnect Wifi using the touchpad)
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: yes
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: no
  [CHG] Device E4:3B:XX:XX:XX:XX Connected: yes
  [CHG] Device E4:3B:XX:XX:XX:XX ServicesResolved: yes
  [MX Anywhere 2S]#
  [MX Anywhere 2S]#

kern.log messages while this happens:
< I disconnect from Wifi>
  Feb 11 20:46:15 ithaca kernel: [ 3385.920613] wlo1: deauthenticating from de:5d:xx:xx:xx:xx by
  local choice (Reason: 3=DEAUTH_LEAVING)
  Feb 11 20:46:15 ithaca kernel: [ 3386.027110] rtw_8821ce 0000:02:00.0: sta de:5d:xx:xx:xx:xx
  with macid 0 left
  Feb 11 20:46:33 ithaca kernel: [ 3403.244131] input: MX Anywhere 2S Keyboard as /devices/virtual/misc/uhid/0005:046D:B01A.0019/input/input87
  Feb 11 20:46:33 ithaca kernel: [ 3403.248887] input: MX Anywhere 2S Mouse as /devices/virtual/misc/uhid/0005:046D:B01A.0019/input/input88
  Feb 11 20:46:33 ithaca kernel: [ 3403.249194] hid-generic 0005:046D:B01A.0019: input,hidraw3: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2S] on 20:4e:xx:xx:xx:xx
  Feb 11 20:46:57 ithaca kernel: [ 3427.685563] input: MX Anywhere 2S Keyboard as /devices/virtual/misc/uhid/0005:046D:B01A.001A/input/input90
  Feb 11 20:46:57 ithaca kernel: [ 3427.686055] input: MX Anywhere 2S Mouse as /devices/virtual/misc/uhid/0005:046D:B01A.001A/input/input91
  Feb 11 20:46:57 ithaca kernel: [ 3427.686305] hid-generic 0005:046D:B01A.001A: input,hidraw3: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2S] on 20:4e:xx:xx:xx:xx
< I reconnect to Wifi>
  Feb 11 20:47:10 ithaca kernel: [ 3440.394111] input: MX Anywhere 2S Keyboard as /devices/virtual/misc/uhid/0005:046D:B01A.001B/input/input93
  Feb 11 20:47:10 ithaca kernel: [ 3440.399568] input: MX Anywhere 2S Mouse as /devices/virtual/misc/uhid/0005:046D:B01A.001B/input/input94
  Feb 11 20:47:10 ithaca kernel: [ 3440.399889] hid-generic 0005:046D:B01A.001B: input,hidraw3: BLUETOOTH HID v0.03 Keyboard [MX Anywhere 2S] on 20:4e:xx:xx:xx:xx
  Feb 11 20:47:19 ithaca kernel: [ 3449.263587] wlo1: authenticate with de:5d:xx:xx:xx:xx
  Feb 11 20:47:19 ithaca kernel: [ 3449.930945] wlo1: send auth to de:5d:xx:xx:xx:xx (try 1/3)
  Feb 11 20:47:19 ithaca kernel: [ 3449.935512] wlo1: authenticated
  Feb 11 20:47:19 ithaca kernel: [ 3449.939267] wlo1: associate with de:5d:xx:xx:xx:xx (try 1/3)
  Feb 11 20:47:19 ithaca kernel: [ 3449.943365] wlo1: RX AssocResp from de:5d:xx:xx:xx:xx (capab=0x431 status=0 aid=2)
  Feb 11 20:47:19 ithaca kernel: [ 3449.943395] rtw_8821ce 0000:02:00.0: sta de:5d:xx:xx:xx:xx joined with macid 0
  Feb 11 20:47:19 ithaca kernel: [ 3449.943789] wlo1: associated
  Feb 11 20:47:19 ithaca kernel: [ 3449.995269] IPv6: ADDRCONF(NETDEV_CHANGE): wlo1: link becomes ready

Nothing logged in dmesg

After reconnecting WiFi, everything works OK again.
---
ProblemType: Bug
ApportVersion: 2.23.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kubuntu 1929 F.... wireplumber
 /dev/snd/seq: kubuntu 1928 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: pass
CasperVersion: 1.475
CurrentDesktop: KDE
DistroRelease: Ubuntu 22.10
LiveMediaBuild: Kubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
MachineType: ASUSTeK COMPUTER INC. VivoBook_ASUS Laptop E410MA_E410MA
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/username.seed maybe-ubiquity quiet splash ---
ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
RelatedPackageVersions:
 linux-restricted-modules-5.19.0-21-generic N/A
 linux-backports-modules-5.19.0-21-generic N/A
 linux-firmware 20220923.gitf09bebf3-0ubuntu1
Tags: kinetic
Uname: Linux 5.19.0-21-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 09/11/2020
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: E410MA.302
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: E410MA
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrE410MA.302:bd09/11/2020:br5.13:svnASUSTeKCOMPUTERINC.:pnVivoBook_ASUSLaptopE410MA_E410MA:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnE410MA:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:
dmi.product.family: VivoBook
dmi.product.name: VivoBook_ASUS Laptop E410MA_E410MA
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Michael Poly (mpoly) wrote :

changed package from bluez to linux and updated text

affects: bluez (Ubuntu) → linux (Ubuntu)
description: updated
summary: - Bluetooth Mouse goes into connect/disconnect loop when Wifi disconnected
+ rtw88_8821ce: Bluetooth Mouse goes into connect/disconnect loop when
+ Wifi disconnected
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 2007004

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
tags: added: jammy
Michael Poly (mpoly)
description: updated
Revision history for this message
Michael Poly (mpoly) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected kinetic
description: updated
Revision history for this message
Michael Poly (mpoly) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : IwConfig.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : Lspci.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : Lspci-vt.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : Lsusb.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : Lsusb-t.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : Lsusb-v.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : ProcEnviron.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : ProcModules.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : RfKill.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : UdevDb.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : WifiSyslog.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote : acpidump.txt

apport information

Revision history for this message
Michael Poly (mpoly) wrote :

Apport data collected on the same machine, running from vanilla Kubuntu 22.10 live USB

Booted from live USB
Connected mouse via BT - got an error
Connected to WiFi
Connected mouse via BT - success
Disconnected from WiFi - Mouse goes to connect/disconnect loop
Run apport-collect
Reconnect WiFi
Mouse working again

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
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.