I have a new Lenovo ThinkPad E15 that came with Windows 10 installed. I added Ubuntu 20.04 as an option (dual-boot).
Whenever the laptop sleeps (goes into a "suspend" state) and then later I wake it up, the Logitech wireless mouse scroll wheel doesn't work. ("Logitech MK270 Wireless Keyboard and Mouse Combo", but the only thing that doesn't work is the scroll wheel.)
I then unplug its USB-A dongle and replug it (I often need to do this multiple times), and then the mouse wheel works again.
I don't want to need to touch the USB plug at all. It should just always work. How can I fix this?
P.S. My question is very similar to Ubuntu 20.04: Scroll doesn't work for wireless mouse after system wakes up from suspended state, which has no answer yet.
P.P.S. I've confirmed that the USB switch in my setup is not related to the problem. The problem happens even when the tiny Logitech USB dongle is plugged directly into the laptop.
sudo modprobe -r hid_logitech_dj && sudo modprobe -r usbhid && sudo modprobe hid_logitech_dj && sudo modprobe usbhiddisconnected and reconnected the USB mouse, but its wheel still doesn't work (unless I physically unplug and replug). – Ryan Aug 23 '21 at 18:22sudo modprobe -r hid_logitech_dj && sudo modprobe -r logitech-djreceiver && sudo modprobe -r logitech-hidpp-device && sudo modprobe -r usbhid && sudo modprobe hid_logitech_dj && sudo modprobe usbhid && sudo modprobe logitech-djreceiver && sudo modprobe logitech-hidpp-devicebut got an errorFATAL: Module logitech-djreceiver not found.– Ryan Aug 23 '21 at 18:22modprobedoesn't help since the modules are not loaded. What helps is a reset of the usb bus. You can look for the USB ID of the device withlsusb. Installusbutilsand issueusbreset <USB ID>. After this, the device should be recognized again without unplugging and replugging. A systemctl service similar to this answer should automate it: https://unix.stackexchange.com/a/227293/140914 – emk2203 Jan 04 '22 at 17:41