WiFi USB stick causing shutdown issues

Sometimes when I shut down, the output will spit out a lot of errors from the rt2x00 firmware, or at least that’s the gist I’m getting from reading around on the internet a bit. The exact output is attached, I can hold the power button to shut it down without any issues so far but that’s of course not ideal.IMG_20200307_093811

Hello @anon7497936

Looks like it is a driver issue maybe. We’ll need more info than we have. The only thing i know is that this is a usb wifi adapter.

Could you post the output of the following commands.

lsusb

dmesg | grep rt2

$ lsusb
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 046d:c33a Logitech, Inc. G413 Gaming Keyboard
Bus 005 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 003 Device 003: ID 046d:c521 Logitech, Inc. Cordless Mouse Receiver
Bus 003 Device 002: ID 13fd:0842 Initio Corporation USB Mass Storage Device 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 048d:1336 Integrated Technology Express, Inc. SD/MMC Cardreader
Bus 001 Device 003: ID 0d8c:0005 C-Media Electronics, Inc. Blue Snowball
Bus 001 Device 002: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$dmesg | grep rt2
[   17.791451] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5392, rev 0223 detected
[   18.468948] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5372 detected
[   18.475831] usbcore: registered new interface driver rt2800usb
[   23.017457] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   23.065728] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36

The USB I believe is recognised as the Ralink RT5372 Wireless Adapter.

I think it’s detecting two and you may have to black list one of the modules. Could you post the output of lsmod

Also lspci -k

$lsmod
Module                  Size  Used by
ccm                    20480  3
rt2800usb              32768  0
rt2x00usb              28672  1 rt2800usb
rt2800lib             143360  1 rt2800usb
rt2x00lib              90112  3 rt2800usb,rt2x00usb,rt2800lib
mac80211             1007616  3 rt2x00lib,rt2x00usb,rt2800lib
snd_usb_audio         294912  1
cfg80211              860160  2 rt2x00lib,mac80211
snd_usbmidi_lib        40960  1 snd_usb_audio
libarc4                16384  1 mac80211
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
mousedev               24576  0
joydev                 28672  0
mc                     61440  1 snd_usb_audio
input_leds             16384  0
fuse                  139264  7
amdgpu               5279744  25
r8169                  94208  0
edac_mce_amd           32768  0
kvm_amd               110592  0
ccp                   106496  1 kvm_amd
rng_core               16384  1 ccp
realtek                24576  1
snd_hda_codec_realtek   126976  1
snd_hda_codec_generic    94208  1 snd_hda_codec_realtek
libphy                114688  2 r8169,realtek
kvm                   811008  1 kvm_amd
ledtrig_audio          16384  2 snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_codec_hdmi     73728  1
irqbypass              16384  1 kvm
snd_hda_intel          57344  7
snd_intel_dspcfg       28672  1 snd_hda_intel
gpu_sched              36864  1 amdgpu
snd_hda_codec         163840  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
i2c_algo_bit           16384  1 amdgpu
ttm                   122880  1 amdgpu
eeepc_wmi              16384  0
drm_kms_helper        237568  1 amdgpu
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
asus_wmi               36864  1 eeepc_wmi
drm                   557056  15 gpu_sched,drm_kms_helper,amdgpu,ttm
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_pcm               143360  6 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
battery                24576  1 asus_wmi
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
sparse_keymap          16384  1 asus_wmi
rfkill                 28672  4 asus_wmi,cfg80211
ghash_clmulni_intel    16384  0
agpgart                53248  2 ttm,drm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
snd_timer              40960  2 snd_pcm
wmi_bmof               16384  0
aesni_intel           368640  2
crypto_simd            16384  1 aesni_intel
snd                   114688  26 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
soundcore              16384  1 snd
sp5100_tco             20480  0
pcspkr                 16384  0
k10temp                16384  0
i2c_piix4              28672  0
evdev                  24576  25
mac_hid                16384  0
pinctrl_amd            32768  0
gpio_amdpt             20480  0
acpi_cpufreq           28672  0
wmi                    36864  2 asus_wmi,wmi_bmof
pkcs8_key_parser       16384  0
crypto_user            16384  0
ip_tables              36864  0
x_tables               53248  1 ip_tables
ext4                  786432  1
crc32c_generic         16384  0
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  135168  1 ext4
sd_mod                 57344  7
sr_mod                 28672  0
cdrom                  77824  1 sr_mod
uas                    32768  0
hid_generic            16384  0
usbhid                 65536  0
hid                   147456  2 usbhid,hid_generic
usb_storage            77824  1 uas
crc32c_intel           24576  2
ahci                   40960  4
libahci                45056  1 ahci
libata                290816  2 libahci,ahci
xhci_pci               20480  0
scsi_mod              258048  5 sd_mod,usb_storage,uas,libata,sr_mod
xhci_hcd              282624  1 xhci_pci
$lscpi -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
	Subsystem: ASUSTeK Computer Inc. Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
	Subsystem: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
	Kernel driver in use: pcieport
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
	Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
	Subsystem: ASUSTeK Computer Inc. FCH SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: ASUSTeK Computer Inc. FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga XT / Amethyst XT [Radeon R9 380X / R9 M295X] (rev f1)
	Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 380X Nitro 4G D5
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tonga HDMI Audio [Radeon R9 285/380]
	Subsystem: PC Partner Limited / Sapphire Technology Radeon R9 285/380 HDMI Audio
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
02:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller (rev 01)
	Subsystem: ASMedia Technology Inc. 400 Series Chipset USB 3.1 XHCI Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
02:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
	Subsystem: ASMedia Technology Inc. 400 Series Chipset SATA Controller
	Kernel driver in use: ahci
	Kernel modules: ahci
02:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
	Kernel driver in use: pcieport
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Kernel driver in use: pcieport
03:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Kernel driver in use: pcieport
03:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Kernel driver in use: pcieport
03:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Kernel driver in use: pcieport
03:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Kernel driver in use: pcieport
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev c8)
	Subsystem: ASUSTeK Computer Inc. Zeppelin/Raven/Raven2 PCIe Dummy Function
09:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: ASUSTeK Computer Inc. Family 17h (Models 10h-1fh) Platform Security Processor
09:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
	Subsystem: ASUSTeK Computer Inc. Raven USB 3.1
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
09:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
	Subsystem: ASUSTeK Computer Inc. Raven USB 3.1
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
09:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	Subsystem: ASUSTeK Computer Inc. Family 17h (Models 10h-1fh) HD Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
0a:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)
	Subsystem: ASUSTeK Computer Inc. FCH SATA Controller [AHCI mode]
	Kernel driver in use: ahci
	Kernel modules: ahci

It’s using the correct module. which is most current i believe. It might be useful to look at dmesg and also run journalctl -b -1
Hopefully someone else can way in here and look at this info as you get some posted here.

Is it hanging on shutdown, locking up or you can wait it out or you have to hard rest with power button always? Are you running the current kernel? Have you tried the lts kernel? Did this just start happening after an update or is this a fresh install? Sorry for all the questions. I’m hoping someone else can weigh in here with the info you are providing.

Although this isn’t a fresh install, it’s been happening since I installed it, which must have been several months ago, some time in January this year. It occasionally happens, sometimes it shuts down without issues, other times it does that. I either have to wait 5 or so minutes, then it either hangs up on no video output or actually turns off normally, or it does this indefinitely; maybe it stops eventually but I don’t want to keep my computer running for hours when I want it to shut down so I hold the power button.

Probably a related issue, maybe not, but sometimes after any time between 10 minutes to a couple hours of run time the computer performance will slow down immensely, scrolling on a website becomes a crawl, and that is usually when that happens when I go to restart the computer. Sometimes when it’s at that limbo of no video output like I mentioned above the graphics card fan spins at 100% until I turn it off manually.

I’m running kernel 5.5.7-arch1-1 and haven’t tried others.

Here is the output of dmesg, hosted on GitHub Gist for clarity since the output is very long.

And here’s the output of journalctl -b -1. It’s worth noting that I had to restart today in the morning and in the afternoon (around ten to 9 and 15, Ctrl+F “Reached target shutdown” for the times where I believe I restarted due to that slowdown I mentioned earlier). Interestingly there isn’t any output of a vendor request error in this log like there is in the picture shared initially.

I think look at more logs journalct -err and maybe systemctl --failed
Does it only happen on wifi? Is it possible to run it on ethernet to test for a while?

I’ve never tried out an Ethernet connection because the WiFi connection always worked, I guess it could probably work but I’m not able to test it out; I’d assume that the problem occurs because of the USB stick being present, regardless of whether it’s connected to the internet or not, but I might be mistaken there. I should stress that this is only causing shutdown issues and (except for the slow down which might be a different problem entirely) has no effect on anything else, so it’s not exactly a terribly pressing issue.

Output of journalctl -err.

And the output of systemctl --failed:

  UNIT                                            LOAD   ACTIVE SUB    DESCRIPTION                                                   
● systemd-backlight@backlight:acpi_video0.service loaded failed failed Load/Save Screen Backlight Brightness of backlight:acpi_video0

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

1 loaded units listed.