You are not logged in.

#1 2021-06-08 13:49:01

Cavalcante
Member
Registered: 2021-06-08
Posts: 3

Xorg config file for mouse acceleration and xset m both have no effect

When I change the parameters on the file below I feel no effect.

/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
---------------------------------------------------------------
Section "InputClass"
	Identifier "My Mouse"
	MatchIsPointer "yes"
# set the following to 1 1 0 respectively to disable acceleration.
	Option "AccelerationNumerator" "2"
	Option "AccelerationDenominator" "1"
	Option "AccelerationThreshold" "4"
EndSection

On the other hand, when I substitute that one for the one below, my mouse speed slows down significantly.

/etc/X11/xorg.conf.d/50-mouse-acceleration.conf
---------------------------------------------------------------
Section "InputClass"
	Identifier "My Mouse"
	MatchIsPointer "yes"
	Option "AccelerationProfile" "-1"
	Option "AccelerationScheme" "none"
	Option "AccelSpeed" "-1"
EndSection

Both codes are found on this wiki page. The second one is suppose to disable mouse acceleration.

Also, the command

xset m 1 0

or any other variation produces no effect.

So, how do I make the first file or (preferably) the command "xset m" work?

Offline

#2 2021-06-08 15:01:53

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Xorg config file for mouse acceleration and xset m both have no effect

The second file works because of the "AccelSpeed" option. That's the only option in the file that does something with today's default setup. The other options in your two files are all for the "evdev" module from the "xf86-input-evdev" package that's not default nowadays. Today's default is a "libinput" module. You can see the available options in "man 4 libinput". There's only these two options here for acceleration:

Option "AccelProfile" "string"
       Sets  the  pointer  acceleration profile to the given profile. Permitted values are
       adaptive, flat.  Not all devices support this option or all profiles. If a  profile
       is  unsupported,  the default profile for this device is used. For a description on
       the profiles and their behavior, see the libinput documentation.

Option "AccelSpeed" "float"
       Sets the pointer acceleration speed within the range [-1, 1]

Offline

#3 2021-06-08 21:46:57

Cavalcante
Member
Registered: 2021-06-08
Posts: 3

Re: Xorg config file for mouse acceleration and xset m both have no effect

This information is enough for me. Thank you very much.

Offline

Board footer

Powered by FluxBB