Public bug reported:

My ASUS USB-AC55 Wireless Adapter appears to crash on resume from
suspend since upgrading to 25.10.

When the system boots, the device is properly detected:

lsub:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver
Bus 001 Device 003: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 002: ID 0b05:17eb ASUSTek Computer, Inc. USB-AC55 
802.11a/b/g/n/ac Wireless Adapter [MediaTek MT7612U]

After a suspend, however, that last disappears The device is also
missing from the Settings app and there is no longer any "Wired" button
in the top bar menu. Journalctl shows that the driver has crashed.
Replugging the device does not work; I need to reboot to get the device
picked up again.

journalctl:
Nov 02 07:07:42 Dapple kernel: Call Trace:
Nov 02 07:07:42 Dapple kernel:  <TASK>
Nov 02 07:07:42 Dapple kernel:  ? mt76u_stop_rx+0x26/0xe0 [mt76_usb]
Nov 02 07:07:42 Dapple kernel:  mt76u_queues_deinit+0x1a/0xc0 [mt76_usb]
Nov 02 07:07:42 Dapple kernel:  mt76x2u_cleanup+0x3c/0x50 [mt76x2u]
Nov 02 07:07:42 Dapple kernel:  mt76x2u_disconnect+0x3b/0x70 [mt76x2u]
Nov 02 07:07:42 Dapple kernel:  usb_unbind_interface+0x9b/0x2c0
Nov 02 07:07:42 Dapple kernel:  device_remove+0x68/0x80
Nov 02 07:07:42 Dapple kernel:  device_release_driver_internal+0x1fb/0x260
Nov 02 07:07:42 Dapple kernel:  ? srso_return_thunk+0x5/0x5f
Nov 02 07:07:42 Dapple kernel:  device_release_driver+0x12/0x20
Nov 02 07:07:42 Dapple kernel:  bus_remove_device+0xc7/0x140
Nov 02 07:07:42 Dapple kernel:  device_del+0x15e/0x3b0
Nov 02 07:07:42 Dapple kernel:  ? kobject_put+0x43/0xa0
Nov 02 07:07:42 Dapple kernel:  usb_disable_device+0xf4/0x290
Nov 02 07:07:42 Dapple kernel:  usb_disconnect+0xe7/0x2f0
Nov 02 07:07:42 Dapple kernel:  hub_port_connect+0x7f/0x920
Nov 02 07:07:42 Dapple kernel:  hub_port_connect_change+0x89/0x2e0
Nov 02 07:07:42 Dapple kernel:  port_event+0x4ae/0x7b0
Nov 02 07:07:42 Dapple kernel:  hub_event+0x140/0x440
Nov 02 07:07:42 Dapple kernel:  process_one_work+0x18e/0x370
Nov 02 07:07:42 Dapple kernel:  worker_thread+0x317/0x450
Nov 02 07:07:42 Dapple kernel:  ? _raw_spin_lock_irqsave+0xe/0x20
Nov 02 07:07:42 Dapple kernel:  ? srso_return_thunk+0x5/0x5f
Nov 02 07:07:42 Dapple kernel:  ? __pfx_worker_thread+0x10/0x10
Nov 02 07:07:42 Dapple kernel:  kthread+0x10b/0x220
Nov 02 07:07:42 Dapple kernel:  ? __pfx_kthread+0x10/0x10
Nov 02 07:07:42 Dapple kernel:  ret_from_fork+0x134/0x150
Nov 02 07:07:42 Dapple kernel:  ? __pfx_kthread+0x10/0x10
Nov 02 07:07:42 Dapple kernel:  ret_from_fork_asm+0x1a/0x30
Nov 02 07:07:42 Dapple kernel:  </TASK>
Nov 02 07:07:42 Dapple kernel: ---[ end trace 0000000000000000 ]---
Nov 02 07:07:42 Dapple NetworkManager[1658]: <info>  [1762063662.1765] radio 
killswitch 
/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:08.0/0000:26:00.0/usb4/4-2/4-2:1.0/ieee80211/phy0/rfkill0
 disappeared
Nov 02 07:07:42 Dapple systemd[1]: Starting systemd-rfkill.service - Load/Save 
RF Kill Switch Status...
Nov 02 07:07:42 Dapple ModemManager[1722]: <msg> [base-manager] port 
wlx3497f6687e79 released by device 
'/sys/devices/pci0000:00/0000:00:01.3/0000:03:00.2/0000:20:08.0/0000:26:00.0/usb4/4-2'
Nov 02 07:07:42 Dapple systemd[1]: Started systemd-rfkill.service - Load/Save 
RF Kill Switch Status.
Nov 02 07:07:42 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:42 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:42 Dapple kernel: usb 4-2: device not accepting address 3, error 
-71
Nov 02 07:07:42 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:43 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:43 Dapple kernel: usb 4-2: device not accepting address 4, error 
-71
Nov 02 07:07:43 Dapple kernel: usb usb4-port2: attempt power cycle
Nov 02 07:07:43 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:43 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:44 Dapple kernel: usb 4-2: device not accepting address 5, error 
-71
Nov 02 07:07:44 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:44 Dapple kernel: usb 4-2: Device not responding to setup address.
Nov 02 07:07:44 Dapple kernel: usb 4-2: device not accepting address 6, error 
-71
Nov 02 07:07:44 Dapple kernel: usb usb4-port2: unable to enumerate USB device
Nov 02 07:07:44 Dapple kernel: r8169 0000:22:00.0 enp34s0: Link is Up - 
1Gbps/Full - flow control rx/tx
Nov 02 07:07:44 Dapple NetworkManager[1658]: <info>  [1762063664.8560] device 
(enp34s0): carrier: link connected


I suspect this is a kernel issue. I tried running the most recent mainline 
kernel (6.17.6) but the driver keeps crashing. 

After some experimentation, I have been able to work out a fix. I have
written a systemd service file that unloads the mt76x2u module before
suspend and reloads it one resume:

 [Unit]
Description=Disable and reenable mt76x2u module
Before=sleep.target
StopWhenUnneeded=yes

[Service]
User=root
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/rmmod mt76x2u
ExecStart=/usr/bin/sleep 1
ExecStop=/usr/bin/sleep 1
ExecStop=/usr/sbin/modprobe mt76x2u

[Install]
WantedBy=sleep.target

This should not be needed, though, considering that the device worked
perfectly fine before.

ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: linux-generic 6.17.0-6.6
ProcVersionSignature: Ubuntu 6.17.0-6.6-generic 6.17.1
Uname: Linux 6.17.0-6-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  codey      2801 F.... wireplumber
 /dev/snd/controlC1:  codey      2801 F.... wireplumber
 /dev/snd/seq:        codey      2794 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Nov  4 00:47:52 2025
InstallationDate: Installed on 2025-05-09 (178 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
MachineType: Micro-Star International Co., Ltd. MS-7B79
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcFB: 0 nvidia-drmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-6-generic 
root=UUID=1c50859e-37c8-46a8-a823-c658ef7af467 ro quiet splash 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M 
vt.handoff=7
RelatedPackageVersions:
 firmware-sof   N/A
 linux-firmware 20250901.git993ff19b-0ubuntu1.2
RfKill:
 4: phy4: Wireless LAN
        Soft blocked: no
        Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to questing on 2025-10-30 (4 days ago)
dmi.bios.date: 04/14/2025
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: H.L0
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: X470 GAMING PLUS MAX (MS-7B79)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 3.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 3.0
dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvrH.L0:bd04/14/2025:br5.17:svnMicro-StarInternationalCo.,Ltd.:pnMS-7B79:pvr3.0:rvnMicro-StarInternationalCo.,Ltd.:rnX470GAMINGPLUSMAX(MS-7B79):rvr3.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr3.0:skuTobefilledbyO.E.M.:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7B79
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: 3.0
dmi.sys.vendor: Micro-Star International Co., Ltd.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug questing wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130597

Title:
  mt76 wifi driver breaks when the system is resuming from suspend

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2130597/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to