I have Manjaro Linux in VirtualBox, and in some applications such as the terminal the mouse wheel seems not to register many of the scroll ticks. Sometimes it scrolls fine, then suddenly it scrolls only half as much or stops scrolling at all. In other applications such as Firefox, the scroll wheel always works.
After some experimentation I found that I can't scroll at all while I'm moving the mouse pointer. Yet, when I hold the pointer perfectly still, scrolling works as expected.
There are some related questions on this site, but none have this specific issue caused by moving the mouse pointer while scrolling in Linux.
Best Answer
I found this post on the VirtualBox forums in a thread that exactly describes my problem. It seems to be unrelated to VirtualBox, as VMWare shows the same behavior.
The solution that worked for me:
Check that you're currently using
libinput
.Install the
evdev
input drivers.On Manjaro this is found in the
xf86-input-evdev
package, which was already installed.Enable the
evdev
drivers by modifying the X11 configuration.In the directory
/usr/share/X11/xorg.conf.d/
I already had a file10-evdev.conf
with theevdev
configuration. It was just overridden by the higher-priority40-libinput.conf
configuration. So all I had to do was:Restart.
Verify that the
evdev
drivers are now used instead:This however didn't yet fix my problem. Apparently I needed
imwheel
too.imwheel
. On Arch, I had to install the imwheel AUR package.Run
imwheel
to verify that this fixes the issue.All that remained was to make
imwheel
run at startup. I run this command, as it only intercepts the scroll wheel:This fixed the issues! Scrolling is now working correctly in all applications.