Package: linux-image-amd64
After resuming from suspend-to-RAM, my USB mouse stops working: the pointer may move, but both left and right buttons do nothing.
In previous Debian 12 builds (with a different kernel), the issue could be fixed by clicking the right button, but this no longer works.
Kernel log (dmesg) after resume shows the following error:
usbhid 2-1.6:1.0: can't add hid device: -71
usbhid 2-1.6:1.0: probe with driver usbhid failed with error -71
The issue can be temporarily fixed by running:
sudo modprobe -r psmouse
sudo modprobe psmouse
Even though this is a standard USB mouse (not a touchpad).
As a workaround, I created a script to reload the psmouse module automatically after resume, which resolves the problem. This suggests that the psmouse module or related subsystem is not being reinitialized properly after suspend.
SYSTEM:
Debian 13 (Trixie/Sid)
Kernel: 6.12.48+deb13-amd64
Generic USB mouse
Laptop: Dell Latitude
STEPS TO REPRODUCE:
Boot Debian 13 with the affected kernel
Suspend the system to RAM with: systemctl suspend
Resume from suspend
Observe that the mouse pointer may move, but the buttons do not work
WORKAROUND:
In new terminal run:
sudo modprobe -r psmouse
sudo modprobe psmouse
the psmouse module after resume restores full mouse functionality.