I'm using the last version of ZorinOS and I have an issue when my PC is waking up from suspend. Sometimes (Not all times, but many times), the mouse wheel scrolling become very slow. Like I need to scroll a lot to up and down a little bit. Everything returns to normal when I reboot the PC. Is there any terminal command I can use to reset the mouse wheel scroll without restarting the PC?
If you were to click along the side and grab the bar to drag the view, does the same issue seem to occur? Is there any other issues after resuming from suspend, such as hitching video playback? And what application is causing this issue, a web browser, if so which, or something else? Do other applications have the same issue?
Sorry, I like to have as much info as possible so we can give better help.
I'm logging in from the ZorinOS lock screen. I don't know if it's Wayland. What's strange is that sometimes, when the issue occurs, if my computer goes into suspend mode and I wake it up again, the issue seems to be fixed.
If I'm grabbing the scroll bar, it works flawlessly. The issue is really with the mouse wheel scrolling, no matter which apps I'm using, primarily the browser.
As @Aravisian said, you could try the alternative to Wayland, X. To check which you're running, go to Settings->About, and there should be windowing system there with either Wayland or X. To change it, logout (or restart) your computer, then when you go to login and start typing your password, there should be a cog in the bottom right to switch between Zorin Desktop (X) and Zorin Desktop on Wayland (Wayland). Select the X version and see if the issue keeps occurring.
If the issue does keep occurring, I would then go next to trying possibly another mouse if you have one, and see if the issue crops up there. I don't think that would change anything, but wouldn't hurt to make sure it isn't something hardware related, anyway.
Reinstalling/checking libinput and GDM3 may help.
Wayland does respond to udevadm, so using it to reload device drivers is viable on either Wayland or Xorg.
I didn't see any options to disable USB power during suspend in the BIOS. My motherboard is the PRO Z790-VC WIFI. I enabled waking events so that I can wake the system by shaking the mouse or pressing buttons on the keyboard. However, I couldn't find anything regarding USB power during suspend.
These two commands doesnt do anything. The issue remains, BUT, if I power off my mouse and power it on again. The issue is fixed. Probably an issue with USB power ?
Possibly. You can test by setting a parameter to manage the power:
sudo nano /etc/default/grub
Arrow key to GRUB_CMDLINE_LINUX_DEFAULT and add usbcore.autosuspend=-1.
It should look like: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"
Tap ctl+o to overwrite, then enter key to save current configuration. Tap ctl+x to exit the editor.
Nor run
sudo update-grub
I would also do a full reboot to test.
That being said, since you said it is an occasional occurrence, it may be the init of drivers not in time of reaching the desktop. You might try