You are not logged in.

#1 2023-12-19 17:55:07

armoredvortex
Member
Registered: 2023-12-19
Posts: 6

USB Mouse freezes after a few minutes

USB mouse freezes after 10-15 minutes of usage randomly.
It's so random that sometimes it'd work for an hour without any problem, and sometimes freeze within 5 minutes

The light under the mouse is still on but it doesn't seem to register any movements.
The mouse works fine on manjaro on same hardware.

Mouse shows up in lsusb output:

> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 050: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 04f2:b290 Chicony Electronics Co., Ltd Sony Visual Communication Camera
Bus 002 Device 005: ID 0cf3:3005 Qualcomm Atheros Communications AR3011 Bluetooth
> libinput list-devices
Device:           PixArt USB Optical Mouse
Kernel:           /dev/input/event3
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Last edited by armoredvortex (2023-12-19 17:57:42)

Offline

#2 2023-12-19 20:33:38

seth
Member
Registered: 2012-09-03
Posts: 51,796

Re: USB Mouse freezes after a few minutes

Try to disable https://wiki.archlinux.org/title/Power_ … utosuspend - "usbcore.autosuspend=-1"
nb. that userspace powermanagement services like TLP can and will override this at runtime and you'll have to change the configuration there (as well)

Offline

#3 2023-12-20 15:21:27

armoredvortex
Member
Registered: 2023-12-19
Posts: 6

Re: USB Mouse freezes after a few minutes

Hey, thanks for the reply.
I already had the autosuspend kernel parameter set
and I'm only using xfce power manager.
The issue still persists

Offline

#4 2023-12-20 15:56:47

seth
Member
Registered: 2012-09-03
Posts: 51,796

Re: USB Mouse freezes after a few minutes

Does anything show up in dmesg/the system journal when this happens?
Does the mouse this generate events in evtest?
Does itunfreeze if you re-plug the mouse?

Offline

#5 2023-12-20 23:27:06

kyle_h
Member
Registered: 2023-12-11
Posts: 4

Re: USB Mouse freezes after a few minutes

I can confirm this started for me today too. It freezes then starts working again a second or two later. Very annoying.

Offline

#6 2023-12-21 08:32:39

armoredvortex
Member
Registered: 2023-12-19
Posts: 6

Re: USB Mouse freezes after a few minutes

seth wrote:

Does anything show up in dmesg/the system journal when this happens?

dmesg output says it got disconnected, and reconnected again

[ 4904.320792] usb 2-1.2: USB disconnect, device number 4
[ 4905.806350] usb 2-1.2: new low-speed USB device number 5 using ehci-pci
[ 4905.911508] usb 2-1.2: New USB device found, idVendor=093a, idProduct=2510, bcdDevice= 1.00
[ 4905.911520] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4905.911525] usb 2-1.2: Product: USB Optical Mouse
[ 4905.911528] usb 2-1.2: Manufacturer: PixArt

https://pastebin.com/jwpQgaV1
I did not connect/disconnect the mouse physically.

seth wrote:

Does the mouse this generate events in evtest?

Sorry i don't know how that works

seth wrote:

Does itunfreeze if you re-plug the mouse?

No, the only way i get it to work again is by rebooting.

Offline

#7 2023-12-21 13:38:44

seth
Member
Registered: 2012-09-03
Posts: 51,796

Re: USB Mouse freezes after a few minutes

sudo evtest

select the mouse and move it a bit to see whether it generates events.
Since the mouse seems to re-show on the bus, this might actually work and the problem is only your display server "losing" it.
You can also try

sudo libinput debug-events

to test the middleware.

There're three disconnects of the device in the dmesg segment: 481s, 4904s and 4966s events into the boot

Assuming 4966s is you trying whether the re-connect revives it and 4904s the spurious event: any idea about the incident at 481s?

Offline

#8 2023-12-21 14:54:34

armoredvortex
Member
Registered: 2023-12-19
Posts: 6

Re: USB Mouse freezes after a few minutes

seth wrote:

Assuming 4966s is you trying whether the re-connect revives it

It all happened on its own

seth wrote:

any idea about the incident at 481s?

Nope. The mouse was already plugged in at boot and i didn't connect/reconnect anything.
The device freezed at 4904.

The device shows up in evtest menu but has stopped registering anything.

The dmesg out is also different this time around
https://pastebin.com/3LLuXxrR

[ 4434.762494] usb 1-1-port2: disabled by hub (EMI?), re-enabling... 
[ 3604.559706] usb 1-1-port2: disabled by hub (EMI?), re-enabling...
[ 3358.545348] usb 1-1-port2: disabled by hub (EMI?), re-enabling...

All of those multiple disconnection events fired up on their own.

sudo libinput debug-events

This doesn't register anything as well.

Forgot to add : changing the USB port doesn't work as well.

Offline

#9 2023-12-21 15:54:46

seth
Member
Registered: 2012-09-03
Posts: 51,796

Re: USB Mouse freezes after a few minutes

Manjaro is probably running the LTS kernel, so you might want to try that.
That being said: the device clearly flickers - it disconnects "randomly" and re-connects immediately.
One thing you might try is to actually install TLP and configure it to explicitly disable autosuspend for the specific device.

Offline

Board footer

Powered by FluxBB