Hi guys!
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?
Thanks!
1 Like
Are you logging in on Wayland?
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.
1 Like
Also, please check your computer bios, sometimes computer's that have advanced bios features, including power management options, such as...
Disable usb power during suspend:
Enabled
Disabled
Depending on how its worded, just make sure to select the option that tells the bios to maintain USB power during suspend.
1 Like
I am sorry, I was not very clear.
I asked if using Wayland early in thread because approaching troubleshooting can vary depending. Wayland will not respond to xinput
commands.
There are other non-DisplayProtocol settings, too. Because Gnome is in use:
gsettings reset org.gnome.desktop.peripherals.mouse speed
gsettings reset org.gnome.desktop.peripherals.touchpad natural-scroll
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.
When the issue will be back. I will try these commands to see if it fixes the issue. Thanks!
1 Like
It looks like I'm already using X11 as Windowing System
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
sudo modprobe -r usbhid
sudo modprobe usbhid
Thanks! I will try it. I will keep you in touch if it's working or not.
sudo modprobe -r usbhid
and
sudo modprobe usbhid
Doesnt work. I will update the grub to see if the issue persist
Even with grub updated, the issue is still there.
You might try the suggestion posted here listed as Original Solution
I will try this and keep you in touch thanks!