You are not logged in.
Solution:
For me, it was a hardware error. You might still try disabling the auto-suspender as explained in the replies
There's always a pattern. The screen will freeze for a second and then be alright. This happens 3 to 4 times and then the mouse stops working. If I try to act too brave and don't restart instantly (logging out and then back in doesn't work), the keyboard stops working as well. While it happens anyway, it feels like the I start playing on Steam or do some graphics intensive work, the problem occurs faster. This happened as soon as I launched WPS Office. Disconnecting and reconnecting the USB doesn't work either. It's not a problem with my mouse. Once this started happening, I tried connecting a different mouse and it didn't work either. I have a feeling that it's somehow disabling the USB ports. This is too frustrating. I found a thread which suggested it might be a problem with the nvidia driver. I did a whole system upgrade and I might be biased here but it seems to have made it worse.
$ dmesg
[ 1150.822842] usb 1-1: USB disconnect, device number 2
[ 1151.119754] usb 1-1: new low-speed USB device number 4 using xhci_hcd
[ 1151.370686] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0005, bcdDevice= 0.90
[ 1151.370694] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1151.370696] usb 1-1: Product: USB Optical Mouse
[ 1151.392589] input: USB Optical Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/0003:1BCF:0005.0004/input/input22
[ 1151.392681] hid-generic 0003:1BCF:0005.0004: input,hidraw0: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:02:00.0-1/input0
[ 1253.690608] usb 1-1: USB disconnect, device number 4
[ 1253.995153] usb 1-1: new low-speed USB device number 5 using xhci_hcd
[ 1254.246555] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0005, bcdDevice= 0.90
[ 1254.246563] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1254.246565] usb 1-1: Product: USB Optical Mouse
[ 1254.268453] input: USB Optical Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/0003:1BCF:0005.0005/input/input23
[ 1254.268555] hid-generic 0003:1BCF:0005.0005: input,hidraw0: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:02:00.0-1/input0
[ 1254.874332] usb 1-1: USB disconnect, device number 5
[ 1255.185155] usb 1-1: new low-speed USB device number 6 using xhci_hcd
[ 1255.433598] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0005, bcdDevice= 0.90
[ 1255.433604] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1255.433606] usb 1-1: Product: USB Optical Mouse
[ 1255.455576] input: USB Optical Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/0003:1BCF:0005.0006/input/input24
[ 1255.455703] hid-generic 0003:1BCF:0005.0006: input,hidraw0: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:02:00.0-1/input0
[ 1280.887803] usb 1-1: USB disconnect, device number 6
[ 1281.221374] usb 1-1: new low-speed USB device number 7 using xhci_hcd
[ 1281.469582] usb 1-1: New USB device found, idVendor=1bcf, idProduct=0005, bcdDevice= 0.90
[ 1281.469589] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1281.469592] usb 1-1: Product: USB Optical Mouse
[ 1281.491497] input: USB Optical Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-1/1-1:1.0/0003:1BCF:0005.0007/input/input25
[ 1281.491750] hid-generic 0003:1BCF:0005.0007: input,hidraw0: USB HID v1.10 Mouse [USB Optical Mouse] on usb-0000:02:00.0-1/input0
[ 1354.953175] usb 1-1: USB disconnect, device number 7
[ 1355.289988] usb 1-1: new low-speed USB device number 8 using xhci_hcd
[ 1370.906379] usb 1-1: device descriptor read/64, error -110
[ 1386.486055] usb 1-1: device descriptor read/64, error -110
[ 1386.716004] usb 1-1: new low-speed USB device number 9 using xhci_hcd
[ 1402.272551] usb 1-1: device descriptor read/64, error -110
[ 1417.845382] usb 1-1: device descriptor read/64, error -110
[ 1417.952040] usb usb1-port1: attempt power cycle
[ 1418.598642] usb 1-1: new low-speed USB device number 10 using xhci_hcd
[ 1419.150768] xhci_hcd 0000:02:00.0: ERROR unknown event type 2
[ 1423.695207] xhci_hcd 0000:02:00.0: ERROR mismatched command completion event
[ 1425.831834] xhci_hcd 0000:02:00.0: Timeout while waiting for setup device command
[ 1441.281501] xhci_hcd 0000:02:00.0: Abort failed to stop command ring: -110
[ 1441.281542] xhci_hcd 0000:02:00.0: xHCI host controller not responding, assume dead
[ 1441.281553] xhci_hcd 0000:02:00.0: HC died; cleaning up
[ 1441.281991] xhci_hcd 0000:02:00.0: Timeout while waiting for setup device command
[ 1441.614808] usb 1-1: device not accepting address 10, error -62
[ 1441.614853] usb usb1-port1: couldn't allocate usb_device
[ 1441.614864] usb 1-6: USB disconnect, device number 3
$ hwinfo --short
cpu:
AMD Ryzen 5 3600 6-Core Processor, 3600 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 3600 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 2375 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
AMD Ryzen 5 3600 6-Core Processor, 3600 MHz
AMD Ryzen 5 3600 6-Core Processor, 3600 MHz
AMD Ryzen 5 3600 6-Core Processor, 2200 MHz
keyboard:
/dev/input/event3 Microdia USB Keyboard
mouse:
/dev/input/mice Sunplus Innovation Optical Mouse
graphics card:
nVidia TU116 [GeForce GTX 1660 SUPER]
sound:
nVidia TU116 High Definition Audio Controller
AMD Starship/Matisse HD Audio Controller
storage:
AMD FCH SATA Controller [AHCI mode]
Silicon Motion Non-Volatile memory controller
AMD FCH SATA Controller [AHCI mode]
AMD 400 Series Chipset SATA Controller
network:
enp5s0 Gigabyte Onboard Ethernet
modem:
/dev/ttyACM0 Arduino SA Uno (CDC ACM)
network interface:
enp5s0 Ethernet network interface
lo Loopback network interface
disk:
/dev/nvme0n1 Silicon Motion Disk
/dev/sdb WDC WDS240G2G0A-
/dev/sdc ST2000DM005-2CW1
/dev/sda ST4000VX007-2DT1
partition:
/dev/nvme0n1p1 Partition
/dev/nvme0n1p2 Partition
/dev/sdb1 Partition
/dev/sdb2 Partition
/dev/sdb3 Partition
/dev/sdb4 Partition
/dev/sdc1 Partition
/dev/sdc2 Partition
/dev/sdc3 Partition
/dev/sda1 Partition
/dev/sda2 Partition
usb controller:
AMD 400 Series Chipset USB 3.1 XHCI Controller
nVidia TU116 USB 3.1 Host Controller
AMD Matisse USB 3.0 Host Controller
bios:
BIOS
bridge:
AMD 400 Series Chipset PCIe Port
AMD Starship/Matisse GPP Bridge
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Matisse Device 24: Function 3
AMD 400 Series Chipset PCIe Bridge
AMD Matisse Device 24: Function 1
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD FCH LPC Bridge
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
AMD Matisse Device 24: Function 6
AMD Starship/Matisse Root Complex
AMD Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
AMD Matisse Device 24: Function 4
AMD Starship/Matisse GPP Bridge
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Matisse Device 24: Function 2
AMD Starship/Matisse GPP Bridge
AMD 400 Series Chipset PCIe Port
AMD Matisse Device 24: Function 0
AMD 400 Series Chipset PCIe Port
AMD Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Matisse Device 24: Function 7
AMD Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
AMD Starship/Matisse PCIe Dummy Host Bridge
AMD Matisse Device 24: Function 5
hub:
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Linux Foundation 2.0 root hub
Linux Foundation 3.0 root hub
memory:
Main Memory
unknown:
FPU
DMA controller
PIC
Keyboard controller
AMD Starship/Matisse Reserved SPP
AMD Starship/Matisse PCIe Dummy Function
AMD Starship/Matisse IOMMU
AMD Starship/Matisse Cryptographic Coprocessor PSPCPP
nVidia TU116 USB Type-C UCSI Controller
AMD FCH SMBus Controller
Serial controller
Logitech Webcam C170
Arduino SA Uno (CDC ACM)
Please tell me what more logs I can provide.
EDIT:
I tried it on Windows. There were a series of alerts of a USB disconnecting, then connecting accompanied by screen freezes. If I let it go on, Windows apparently cuts power to all USB ports and none of them seem to work, even with another mouse. I think the connector for my mouse is indeed faulty and I'll look for a prompt replacement.
If however, if I don't just let it arbitrarily connect and disconnect, and replace it with another mouse, the system no longer complains.
Last edited by saurabh000345 (2021-03-20 00:06:45)
I skimmed through the wiki
Offline
[ 1441.281542] xhci_hcd 0000:02:00.0: xHCI host controller not responding, assume dead
[ 1441.281553] xhci_hcd 0000:02:00.0: HC died; cleaning up
Try "iommu=soft" and/or "usbcore.autosuspend=-1"
https://wiki.archlinux.org/index.php/Kernel_parameters
nb. that userspace powermanagers have a tendency to override the autosuspend delay at runtime (and are in general a good contender to cause your problem)
Offline
[ 1441.281542] xhci_hcd 0000:02:00.0: xHCI host controller not responding, assume dead [ 1441.281553] xhci_hcd 0000:02:00.0: HC died; cleaning up
Try "iommu=soft" and/or "usbcore.autosuspend=-1"
https://wiki.archlinux.org/index.php/Kernel_parametersnb. that userspace powermanagers have a tendency to override the autosuspend delay at runtime (and are in general a good contender to cause your problem)
Thanks for your reply. I think the changes you proposed were made successfully. [Refer to the edit I made] This time even after the mouse stopped working ( which I could feel the computer painfully attempt to try running. It kept working for longer than usual even though it froze for longer), I could at least use a different mouse- something I could not do before. I think it's quite evident that my mouse needs replacement. Let me know if I'm wrong about it and this issue can be fixed.
Thank you.
I skimmed through the wiki
Offline
The mouse clearly juggles and then the usb host stops responding, so this is equal on windows and linux.
My assumption however was that the mouse simply reacts badly to a suspension of the bus (happens) but that should be mitigated by disabling the usb autosuspend (and the mouse stop juggling on/off)
The kernel parameters will however not have affected the behavior on windows.
ceterum censeo (though I doubt that's the cause here) see the 3rd link in my signature.
Offline
The mouse clearly juggles and then the usb host stops responding, so this is equal on windows and linux.
My assumption however was that the mouse simply reacts badly to a suspension of the bus (happens) but that should be mitigated by disabling the usb autosuspend (and the mouse stop juggling on/off)
The kernel parameters will however not have affected the behavior on windows.ceterum censeo (though I doubt that's the cause here) see the 3rd link in my signature.
Fastboot is disabled already. And yeah I'm not looking to solve it for windows. I don't use it except for maintenance purposes.
nb. that userspace powermanagers have a tendency to override the autosuspend delay at runtime (and are in general a good contender to cause your problem)
but that should be mitigated by disabling the usb autosuspend (and the mouse stop juggling on/off)
Given that the kernel parameters are already applied, what else do I have to disable the usb autosuspender?
I skimmed through the wiki
Offline
You can check the global and individual autosuspend time
cat /sys/module/usbcore/parameters/autosuspend
cat /sys/bus/usb/devices/*/power/autosuspend
Obviously, selecting the mouse device in the second command will get you the most relevant value.
Offline
You can check the global and individual autosuspend time
cat /sys/module/usbcore/parameters/autosuspend cat /sys/bus/usb/devices/*/power/autosuspend
Obviously, selecting the mouse device in the second command will get you the most relevant value.
Every file has "-1" as it's sole content.
I skimmed through the wiki
Offline
Then it's off and not the cause - the mouse/cable/plug is just flaky
Offline
Then it's off and not the cause - the mouse/cable/plug is just flaky
Thank you for your time. I'm sure it's an issue with the mouse itself. Thanks for the help with the autosuspender. I'm sure it will be useful to me sometime down the line.
I skimmed through the wiki
Offline