I have a weird issue and trying to work out where to even look.
I have a PC, running MX and it is on a Cyberpower pure sinewave UPS, it has a bunch of VMs running on it. If the power goes out and comes back on the computer keeps running as the UPS does it's job, but my Sonoff Zigbee USB adapter stops working (no other issues).
If I check lsusb that particular USB device is missing (though my USB keyboard and mouse still work). Both are plugged directly to the rear of the computer (no HUB).
The part I don't understand is if I unplug the device and plug back in again, it doesn't come back. The only way to fix it is to reboot the computer and then it is fine (no need to replug).
I just don't know where to start with this, it seems very odd.
USB dies when UPS is used
Re: USB dies when UPS is used
Install tlpui and turn off usb_autosuspend?
Then reboot and see if it works better.
Then reboot and see if it works better.
Re: USB dies when UPS is used
We need your computer’s complete profile before we can proceed, so you need to post the output from the QSI utility. The Quick System Info (QSI) utility is located in MX Tools and its output is automatically formatted for use here in the forum. Run the QSI utility, click “Copy for Forum” at the bottom and then just paste it here in your thread.
Forum Rules
Forum Rules
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
Re: USB dies when UPS is used
Code: Select all
System: Kernel: 5.10.0-19-amd64 [5.10.149-2] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/vmlinuz-5.10.0-19-amd64 root=UUID=<filter> ro quiet splash
Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7
dm: LightDM 1.26.0 Distro: MX-21.3_x64 Wildflower October 20 2021
base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Desktop Mobo: ASRock model: B450M-HDV R4.0 serial: <filter>
UEFI: American Megatrends v: P7.40 date: 10/20/2022
Battery: Device-1: hidpp_battery_0 model: Logitech Wireless Touch Keyboard K400 Plus
serial: <filter> charge: 50% (should be ignored) rechargeable: yes status: N/A
CPU: Info: 8-Core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 family: 19 (25) model-id: 50 (80) stepping: 0 microcode: A500011 cache:
L2: 4 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 121593
Speed: 1884 MHz min/max: 1400/5232 MHz boost: enabled Core speeds (MHz): 1: 1884
2: 1443 3: 1594 4: 1840 5: 1616 6: 1778 7: 1504 8: 1732 9: 1583 10: 1708 11: 1660
12: 1841 13: 1748 14: 1732 15: 1612 16: 1620
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on,
RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: AMD Cezanne driver: amdgpu v: kernel bus-ID: 08:00.0 chip-ID: 1002:1638
class-ID: 0300
Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.18.0 driver:
loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0")
s-diag: 777mm (30.6")
Monitor-1: HDMI-A-1 res: 2560x1440 hz: 144 dpi: 109 size: 597x336mm (23.5x13.2")
diag: 685mm (27")
OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.0-19-amd64 LLVM 11.0.1)
v: 4.6 Mesa 20.3.5 direct render: Yes
Audio: Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel v: kernel
bus-ID: 08:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
bus-ID: 08:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound Server-1: ALSA v: k5.10.0-19-amd64 running: yes
Sound Server-2: PulseAudio v: 14.2 running: yes
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock
driver: r8169 v: kernel port: f000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 22.27 TiB used: 8.62 TiB (38.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST8000NM017B-2TJ103 size: 7.28 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200
serial: <filter> rev: SN01
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WDS480G2G0B-00EPW0
size: 447.14 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 0000 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST2000LM007-1R8174 size: 1.82 TiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400
serial: <filter> rev: SBK2 scheme: MBR
ID-4: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST14000NM001G-2KJ103
size: 12.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
rpm: 7200 serial: <filter> rev: SN03
Partition: ID-1: / raw-size: 438.37 GiB size: 430.42 GiB (98.19%) used: 194.15 GiB (45.1%)
fs: ext4 dev: /dev/dm-0 maj-min: 253:0 mapped: root.fsm
ID-2: /boot raw-size: 512 MiB size: 487.2 MiB (95.16%) used: 109.3 MiB (22.4%) fs: ext4
dev: /dev/sdb2 maj-min: 8:18
ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
dev: /dev/sdb1 maj-min: 8:17
Swap: Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.98 GiB used: 2.8 MiB (0.0%) priority: -2
dev: /dev/dm-1 maj-min: 253:1 mapped: swap
Sensors: System Temperatures: cpu: 23.5 C mobo: N/A gpu: amdgpu temp: 29.0 C
Fan Speeds (RPM): fan-1: 1306 fan-2: 1045 fan-3: 0 fan-4: 0 fan-5: 810
Repos: Packages: 2107 note: see --pkg apt: 2094 lib: 1004 flatpak: 13
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bullseye main contrib non-free
2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mirror.datamossa.io/mxlinux/mx/repo/ bullseye main non-free
Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
1: deb http://linux.teamviewer.com/deb stable main
Info: Processes: 357 Uptime: 2d 10h 57m wakeups: 4 Memory: 30.73 GiB used: 12.94 GiB (42.1%)
Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1
alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06
Boot Mode: UEFI
Re: USB dies when UPS is used
Your motherboard has a known history of USB problems related to the AMD chipset in use. See here:
https://community.amd.com/t5/general-di ... d-p/464855
and here:
https://www.tomshardware.com/news/amd-i ... arly-april
There's lots of other reports on the problem if you want to drill down. With no reports of a definitive solution, the consensus is to swap the motherboard out. Given your system's description, this is likely not viable for you.
https://community.amd.com/t5/general-di ... d-p/464855
and here:
https://www.tomshardware.com/news/amd-i ... arly-april
There's lots of other reports on the problem if you want to drill down. With no reports of a definitive solution, the consensus is to swap the motherboard out. Given your system's description, this is likely not viable for you.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
Re: USB dies when UPS is used
Interesting, my problems seem far less severe than described in those threads (as only occurring when the UPS kicks in, which is the weird part), maybe firmware patches somewhat reduced the issue over time..
Thanks for that information, I will try some of the suggested settings over the weekend (including the usb_autosuspend one) before resorting to a motherboard swap.
Thanks for that information, I will try some of the suggested settings over the weekend (including the usb_autosuspend one) before resorting to a motherboard swap.