I've searched and searched for solutions to this for the past couple of months. This is the first time I've had this sort of issue with Ubuntu on any Linux for that matter. So while I'm familiar with Linux development and a lot of Unix configuration/tweaking, I really do not know the Keyboard/Mouse input stacks and pieces.
Laptop: Dell Precision 7550, though Linux is a supported OS, at the time of purchase I got Windows on it because that was what I needed and recently switched it to Ubuntu. Apparently you cannot purchase or add Dell's version of Ubuntu after the purchase so no support from that angle - but these doesn't seem like it is Dell specific.
I have gone through the following versions of Ubuntu since I switched over and the problem has persisted through each: 22.04 LTS -> 20.04.x LTS -> 22.10
The two odd things is, this issue does not impact the built-in trackpad. But it happens to external wired USB mice, Logitech wireless mice using a dongle, and Logitech mice via BT.
I have tried various 'fixes' I've found in threads for similar issues but none of them have worked:
Enable/Disable all the external xinput devices:
xinput disable "pointer:MX Master 2S Mouse"
xinput disable "pointer:CORSAIR CORSAIR K63 Wireless USB Receiver Keyboard"
xinput disable "keyboard:CORSAIR CORSAIR K63 Wireless USB Receiver"
xinput disable "keyboard:CORSAIR CORSAIR K63 Wireless USB Receiver Keyboard"
xinput disable "keyboard:MX Master 2S Keyboard"
xinput enable "pointer:MX Master 2S Mouse"
xinput enable "pointer:CORSAIR CORSAIR K63 Wireless USB Receiver Keyboard"
xinput enable "keyboard:CORSAIR CORSAIR K63 Wireless USB Receiver"
xinput enable "keyboard:CORSAIR CORSAIR K63 Wireless USB Receiver Keyboard"
xinput enable "keyboard:MX Master 2S Keyboard"
Remove and re-add the kernel mods:
for mod in hid_logitech_hidpp hid_logitech_dj usbhid psmouse; do
sudo rmmod $mod && sleep 3
sudo modprobe $mod
done
Try fiddling with some of the driver states directly:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
Resetting USB devices:
for USB in /sys/bus/usb/devices/*/auhtorized; do
eval "echo 0 > ${USB}"
eval "echo 1 > ${USB}"
done
None of this has fixed the issue.
I'm about to go crazy and give up on Ubuntu on this machine if I can't suspend (to save battery) and I can't use the mouse I'm used to after suspend without rebooting. HELP!
Happy to get additional debugging info or system details to help find a root cause.