Disable Mouse Acceleration on Linux
To disable mouse acceleration, create a file called "[c]50-mouse-acceleration.conf[/c]" inside [c]xorg.conf.d[/c] The path to [c]xorg.conf.d[/c] can vary depending on the Linux distribution you use.
xorg.conf.d Path
Debian, Ubuntu, Linux Mint, and derivatives
/usr/share/X11/xorg.conf.d/
Arch Linux
/etc/X11/xorg.conf.d/
Create a new config
sudo nano /usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
Xorg configuration
Section "InputClass"
Identifier "My Mouse"
MatchIsPointer "yes"
Option "AccelerationProfile" "-1"
Option "AccelerationScheme" "none"
Option "AccelSpeed" "-1"
EndSection
libinput configuration
Section "InputClass"
Identifier "My Mouse"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
EndSection
Save and then restart your pc or just restart x.
To confirm that acceleration has been disabled, enter the following:
xinput list-props {1..50} 2>/dev/null | fgrep 'libinput Accel Profile Enabled ('
The profile should read 0, 1
Arch Linux user follow the instruction on the wiki https://wiki.archlinux.org/index.php/Mouse_acceleration
Or just create a new config
/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
and paste the following texts
Section "InputClass"
Identifier "My Mouse"
Driver "libinput"
MatchIsPointer "yes"
Option "AccelProfile" "flat"
EndSection
0 Comments