Dsiable Mouse Acceleration on Linux

This section is for our team to post helpful articles. Let us know if you'd like to contribute!
arifur
Site Admin
Posts: 108
Joined: Tue Nov 15, 2011 5:12 pm

Dsiable Mouse Acceleration on Linux

Post by arifur » Sat Apr 01, 2017 4:38 pm

To disable mouse acceleration, create a file called "50-mouse-acceleration.conf" inside xorg.conf.d The path to xorg.conf.d can vary depending on the Linux distribution you use.

xorg.conf.d Path

Debian, Ubuntu, Linux Mint, and derivatives

Code: Select all

/usr/share/X11/xorg.conf.d/

Arch Linux

Code: Select all

/etc/X11/xorg.conf.d/
Create a new config

Code: Select all

sudo nano /usr/share/X11/xorg.conf.d/50-mouse-acceleration.conf
Xorg configuration

Code: Select all

Section "InputClass"
    Identifier "My Mouse"
    MatchIsPointer "yes"
    Option "AccelerationProfile" "-1"
    Option "AccelerationScheme" "none"
    Option "AccelSpeed" "-1"
EndSection
libinput configuration

Code: Select all

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:

Code: Select all

xinput list-props {1..50} 2>/dev/null | fgrep 'libinput Accel Profile Enabled ('
The profile should read 0, 1

arifur
Site Admin
Posts: 108
Joined: Tue Nov 15, 2011 5:12 pm

Re: Dsiable Mouse Acceleration on Linux

Post by arifur » Sat Jan 06, 2018 7:10 pm

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

Code: Select all

Section "InputClass"
	Identifier "My Mouse"
	Driver "libinput"
	MatchIsPointer "yes"
	Option "AccelProfile" "flat"
EndSection

Post Reply Previous topicNext topic

Return to “Linux Howtos”

Who is online

Users browsing this forum: No registered users and 1 guest