The mouse randomly stops working - Zorin OS 17.1 Lite

Hi everyone, this is the first time in my life (I'm 39) that I'm reaching out to a Linux forum. :open_mouth:
Firstly, I want to praise Zorin OS as the distribution that ended my distro hopping. Although I was mainly a satisfied user of Linux Mint, which I use on my work laptop, I always felt like something was missing, or perhaps it had too much going on.
With Zorin OS Lite, I finally found a distribution that has exactly what I need, with excellent performance, and I've been very happy using version 16.3 Lite.
By chance, I saw there was a suggestion to update to version 17.1 lite, and although I postponed it for a few days, curiosity got the best of me and I updated.
I want to clarify that up until that moment my laptop had no issues.
I updated, and everything worked.
However, something strange is happening: my wireless mouse stops working randomly.
It can happen in any USB port where I have the receiver connected. I ruled out the mouse being the issue since I tested with three different ones. Additionally, I have a dual boot with Windows 10, and I didn't have any issues there before, nor now.

I don't have advanced knowledge in Linux, but with the help of AI (Chat GPT), I was able to see some things.

1- For example, when the issue occurs (the mouse seems to "turn off" while the receiver is connected to the USB port where it stopped working), if I connect the receiver to another USB port, the mouse starts working again. However, via lsubs, it's as if it's still connected to the USB port that failed, showing me the entry corresponding to the device, duplicated:

marian@vostro:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
*Bus 003 Device 003: ID 0bda:c829 Realtek Semiconductor Corp. Bluetooth Radio *
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 008: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] <== Here is where it worked again when connecting the receiver to another USB port.
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 003: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] <== Here is where it was connected when it stopped working.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And for example, if I disconnect the mouse receiver, the device doesn't go away:

marian@vostro:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:c829 Realtek Semiconductor Corp. Bluetooth Radio
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
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 003: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] <== Hello, I'm still here!
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

That already seems quite odd...

Then in the logs, at the exact time when the mouse stops working, I see this message:

May 1 02:23:24 vostro kernel: [ 5431.888409] sd 0:0:0:0: [sda] Synchronizing SCSI cache
May 1 02:23:24 vostro kernel: [ 5431.891930] sd 0:0:0:0: [sda] Stopping disk
May 1 02:23:24 vostro kernel: [ 5431.924098] ata1.00: Entering standby power mode
May 1 02:23:24 vostro kernel: [ 5432.035386] xhci_hcd 0000:04:00.3: WARNING: Host System Error <=======================
May 1 02:23:26 vostro kernel: [ 5434.436411] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
May 1 02:23:26 vostro kernel: [ 5434.436430] ata1.00: Entering active power mode
May 1 02:23:26 vostro kernel: [ 5434.437795] ata1.00: configured for UDMA/133
May 1 02:23:26 vostro kernel: [ 5434.447972] sd 0:0:0:0: [sda] Starting disk

Subsequently, it seems that you can see how, by changing the receiver to a different USB port, the mouse starts working again:

May 1 02:23:46 vostro kernel: [ 5454.780402] usb 3-1: new full-speed USB device number 4 using xhci_hcd
May 1 02:23:47 vostro kernel: [ 5454.941703] usb 3-1: New USB device found, idVendor=1ea7, idProduct=0066, bcdDevice= 2.00
May 1 02:23:47 vostro kernel: [ 5454.941717] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
May 1 02:23:47 vostro kernel: [ 5454.941721] usb 3-1: Product: 2.4G Mouse
May 1 02:23:47 vostro kernel: [ 5454.959147] input: 2.4G Mouse as /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0/0003:1EA7:0066.0004/input/input24

While I was writing this post, it happened again :o

marian@vostro:~$ cat /var/log/kern.log | grep "Host System Error"
Apr 28 21:48:48 vostro kernel: [ 812.067162] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 21:57:10 vostro kernel: [ 217.235879] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 22:05:57 vostro kernel: [ 271.971379] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 22:09:59 vostro kernel: [ 158.290176] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 22:14:24 vostro kernel: [ 176.378011] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 23:01:30 vostro kernel: [ 1740.430882] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 23:06:49 vostro kernel: [ 248.787890] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 28 23:10:30 vostro kernel: [ 120.604064] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 29 01:06:10 vostro kernel: [ 1593.776295] xhci_hcd 0000:04:00.3: WARNING: Host System Error
Apr 30 02:05:40 vostro kernel: [ 1920.943582] xhci_hcd 0000:04:00.4: WARNING: Host System Error
May 1 00:49:41 vostro kernel: [ 1194.286088] xhci_hcd 0000:04:00.3: WARNING: Host System Error
May 1 00:51:37 vostro kernel: [ 1310.869854] xhci_hcd 0000:04:00.4: WARNING: Host System Error
May 1 02:23:24 vostro kernel: [ 5432.035386] xhci_hcd 0000:04:00.3: WARNING: Host System Error
May 1 03:59:19 vostro kernel: [11186.908098] xhci_hcd 0000:04:00.4: WARNING: Host System Error <==

And now I have a duplicated entry in lsusb again:

marian@vostro:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:c829 Realtek Semiconductor Corp. Bluetooth Radio
Bus 003 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 010: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] <== Hello, we're still here!
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 003: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard] <== Hello, we're still here!
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But there's no receiver connected, and then all USBs stop working. When this happens, I have no choice but to restart the system.

Investigating a bit more (with the help of AI once again), I read that xhci_hcd is (copying and pasting) "a host controller driver for USB 3.0 and later versions in the Linux kernel. This driver is responsible for managing communication between the operating system and USB devices that comply with USB 3.0 and higher specifications."

So it seems I'm on the right track regarding the error, but I still can't determine what is causing it.

I then checked if this driver has a version number (To see if I could compare it with the version I had in Zorin OS 16.3 Lite and if that has any basis) but I couldn't find anything similar:

marian@vostro:~$ modinfo xhci_hcd
name: xhci_hcd
filename: (builtin)
license: GPL
file: drivers/usb/host/xhci-hcd
author: Sarah Sharp
description: 'eXtensible' Host Controller (xHC) Driver
parm: link_quirk:Don't clear the chain bit on a link TRB (int)
parm: quirks:Bit flags for quirks to be enabled as default (ullong)

Honestly, I'm not sure where to further delve into the diagnosis. Ultimately, it's not a serious error, as I have two attempts before both USB ports lock up (randomly), and if necessary, I can restart the system and it's resolved. As a last resort, I could reinstall the previous version (Lite 16.3), but it seems like an interesting error to learn more about how my system works.

If you could guide me on how to proceed to find the problem, I would be very grateful :slight_smile:

Just in case, I'm attaching some system data that might be helpful:

marian@vostro:~$ hwinfo --short
cpu:
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 2862 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 2904 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 1266 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 1262 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 1394 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 1150 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 2266 MHz
AMD Ryzen 5 3450U with Radeon Vega Mobile Gfx, 2266 MHz
keyboard:
/dev/input/event8 Compx 2.4G Receiver
/dev/input/event3 AT Translated Set 2 keyboard
mouse:
/dev/input/mice Compx 2.4G Receiver
/dev/input/mice PS/2 Generic Mouse
/dev/input/mice DELL0A11:00 27C6:01E0 Mouse
/dev/input/mice DELL0A11:00 27C6:01E0 Touchpad
monitor:
FRWX6 140BGA LCD Monitor
graphics card:
ATI Picasso
sound:
ATI Raven/Raven2/Fenghuang HDMI/DP Audio Controller
AMD Family 17h (Models 10h-1fh) HD Audio Controller
storage:
Sandisk Non-Volatile memory controller
AMD FCH SATA Controller [AHCI mode]
network:
wlp3s0 Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
enp2s0 Realtek RTL810xE PCI Express Fast Ethernet controller
network interface:
vmnet1 Ethernet network interface
wlp3s0 Ethernet network interface
vmnet8 Ethernet network interface
lo Loopback network interface
enp2s0 Ethernet network interface
disk:
/dev/nvme0n1 Sandisk Disk
/dev/sda PNY CS900 500GB
partition:
/dev/nvme0n1p1 Partition
/dev/nvme0n1p2 Partition
/dev/nvme0n1p3 Partition
/dev/nvme0n1p4 Partition
/dev/nvme0n1p5 Partition
/dev/sda1 Partition
/dev/sda2 Partition
/dev/sda3 Partition
usb controller:
AMD Raven USB 3.1
AMD Raven USB 3.1
bios:
BIOS
bridge:
AMD Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
AMD Raven/Raven2 Device 24: Function 3
AMD Raven/Raven2 PCIe GPP Bridge [6:0]
AMD Raven/Raven2 Device 24: Function 1
AMD Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
AMD FCH LPC Bridge
AMD Raven/Raven2 PCIe GPP Bridge [6:0]
AMD Raven/Raven2 Device 24: Function 6
AMD Raven/Raven2 Root Complex
AMD Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
AMD Raven/Raven2 Device 24: Function 4
AMD Raven/Raven2 Device 24: Function 2
AMD Raven/Raven2 Device 24: Function 0
AMD Raven/Raven2 Device 24: Function 7
AMD Raven/Raven2 PCIe GPP Bridge [6:0]
AMD Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
AMD Raven/Raven2 Device 24: Function 5
hub:
Linux Foundation 2.0 root hub
Linux Foundation 3.0 root hub
Linux Foundation 2.0 root hub
Terminus Hub
Linux Foundation 3.0 root hub
memory:
Main Memory
bluetooth:
Realtek Bluetooth Radio
unknown:
FPU
DMA controller
PIC
Keyboard controller
AMD Raven/Raven2/FireFlight/Renoir Audio Processor
AMD Raven/Raven2 IOMMU
AMD Family 17h (Models 10h-1fh) Platform Security Processor
AMD FCH SMBus Controller
Microdia Integrated_Webcam_HD

         ---

marian@vostro:~$ uname -a
Linux vostro 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Please, have mercy if I attached too much or irrelevant data, or if the post became too long to read. Remember, this is my first time doing this, so please go easy on me.

I'm already grateful for any suggestions you could provide.

Best regards,

P.S.: Toward the end of the writing, the issue happens again. I'm attaching the log and lsusb with another mouse connected, where the same pattern described before repeats.

marian@vostro:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
*Bus 003 Device 004: ID 0bda:c829 Realtek Semiconductor Corp. Bluetooth Radio *
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 005: ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader
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 002: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
marian@vostro:~$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
*Bus 003 Device 004: ID 0bda:c829 Realtek Semiconductor Corp. Bluetooth Radio *
Bus 003 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 003 Device 005: ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader <== ¡¡Hello, I'm still here!!
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 002: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 005: ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

2 Likes

Hi. It does the same thing to me.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.