This question has been asked many times with no answer. I've used my basic Google skills and haven't come across a fix. This is system wide. My mouse simply scrolls too fast.
I'm new to ubuntu and linux in general. Would switching styles or whatever it is called (Ubuntu, KDE, Xubuntu) help at all? Is there a terminal code I can enter?
I removed the USB dongle that comes with my wireless mouse and plugged it back and fixed my scrolling speed instantly.
Confirmed working on 20.04:
sudo apt install imwheel
bash <(curl -s http://www.nicknorton.net/mousewheel.sh)
Wheel Scroll Speed
, Command=imwheel
, Comment=Activates wheel scroll speed fix on system startup
(or whatever you like)Important note:
If you have extra mouse buttons, this might mess things up as far as their functionality. If you find some buttons mis-behaving after following these instructions, you can always go "back" by removing
imwheel
as a startup application, and restarting your computer.However, you can still make this work by specifying which buttons to modify in the
imwheel
command.imwheel -b "45"
this might work for certain mouse types.imwheel -b "4 5 6 7"
this might also work.In any case, you can try and figure out the button numbers for you own specific mouse scroll wheel, and specify them and only them.
Use the command with button numbers both when running for the first time, and as the command you input as a startup application.
Solution excerpted from here
Important note based on this
To change the mouse parameters:
list the peripherals, note the good number with the device name of the mouse!
list parameters from peripheral number 9
set the acceleration of peripheral 9 to value 3. The higher the value is, the more you divide the acceleration. Acceleration is maximum for a value equal to 1. The "basis" value seems to be 1.7, for me...
To permanently set the change :
A hidden file in your directory is ".profile" (Ctrl+H to see hidden files) Double click on it and open it. Copy paste the previous command at the end. That's it!
P.S. to apply the same command for all users you can edit the file /etc/profile (not an hidden file).
Have fun.
First check which device is the mouse:
Now pick the ID of your mouse there, and list its current settings:
then change the settings like so where
Evdev scrolling distance [vertical] [horizontal] [dial]
where the combination of the last three numbers is mouse-dependent:
I have a Logitech PerformanceMouse MX and none of the solutions here worked. The only thing that worked for me was using some parts of this project.
xserver-xorg-input-evdev
.rules.d/install.sh
. It will copy the udev rules to the appropriate location and ask permissions if necessary.plugdev
group:$ sudo gpasswd -a <your-username plugdev
Now you can set your scroll-speed with the following
xinput
commands (source):Changing the
8
to a lower value increases the sensitivity. Flipping it to negative changes the direction of scroll. Increasing the value decreases sensitivity.This solution works for me:
Create a bash script and insert this:
Now run the script and set your desired mouse wheel speed.
Thanks to: http://www.nicknorton.net/?q=node/10
I have written a simple script which allows you to find which device has this property ( The script basically iterates over all xinput devices and lists only those which have any property containing
scroll
).Note, that for example in Firefox you can set in
about:config
Remember to set
to true.
Aside from all of these You can use the old good synaptics dirver for this (Yeah I know it is not supported anymore but lets be honest
libinput
documentation sucks hard).If you are on 18.04 or above just install synaptics:
now go to
/usr/share/X11/xorg.conf.d
and just edit the file70-synaptics.conf
find the section
Section "InputClass" Identifier "touchpad catchall"
then add these options:The default number is
26
the lower the number it is faster to scroll, the higher it is slower to scroll. Finally it should look like this:Save the file and close it (Ctrl + O then Enter then Ctrl + X).
Log out and back in for the changes to take effect.
Synaptics driver is a driver with huge options I dont know who in a world has decided to move to the NO OPTION libinput.
Other options can be found at:
https://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html
Thanks to this new pull request on https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/-/merge_requests/12 (WIP: Add scroll distance scale setting ), we will be able to change the scroll speed some time in the future (i.e., after that pull request gets merged and the package
xserver-xorg-input-libinput
is updated with it) without having to use bugged hacks as imwheel.For now, you can install it directly from the source code:
xserver-xorg-input-libinput
is available on your system:sudo apt-get install xserver-xorg-input-libinput
dpkg -l | grep xserver-xorg-input-libinput
0.29.0
correspondent to the installed version0.29.0
on the package manager.3
onvalue *= 3;
accordingly to how much you would like to change your scroll speed. To reduce the scroll speed, you can use lower values like0.9
,0.99
,0.2
, etc.sudo apt-get build-dep libinput
autoreconf -vif
./configure --prefix=/usr
make
make install
xserver-xorg-input-libinput
using your package manager, i.e.,sudo apt-get install xserver-xorg-input-libinput --reinstall
I'm using a "Logitech MAX Master 2". I've tried the solutions in here but what it only works was intalling solaar and modify the configuration through it. Hope this helps.