You are not logged in.

#1 2015-05-25 16:08:57

zunpre
Member
From: Denmark
Registered: 2011-10-25
Posts: 3

[SOLVED] Disabling mouse acceleration

Hello everyone. I really want to disable acceleration on my mouse, but for some reason I just can't get it to work. If anyone has any idea of what to try or have had a similar problem, that would be really helpful. I have tried all of the following.

1. xset
Running

xset m 1/1 0

or putting it in my .xinitrc seems to have no effect. Interestingly, neither does calling xset with any other values (like "5/1 0", which I think should add a lot of mouse acceleration). Before switching to Arch, I used Gentoo, where this worked just fine.

2. Xorg configuration
I created /etc/X11/xorg.conf.d/50-mouse-acceleration.conf and tried putting both

Identifier "Mouse"
	MatchIsPointer "yes"
	Option "AccelerationNumerator" "1"
	Option "AccelerationDenominator" "1"
	Option "AccelerationThreshold" "0"
EndSection

and

Identifier "Mouse"
	MatchIsPointer "yes"
	Option "AccelerationProfile" "-1"
	Option "AccelerationScheme" "none"
EndSection

in the file (not at the same time), as described on the wiki. Each time I restarted X, but it had no effect.

3. xinput
I found this thread, in which someone suggest running "xinput set-prop 8 'Device Accel Profile' -1" where 8 is the id of the device with the "Device Accel Profile" property. The output from "xinput list" is this:

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ SteelSeries Sensei Raw Gaming Mouse     	id=8	[slave  pointer  (2)]
⎜   ↳ SteelSeries Sensei Raw Gaming Mouse     	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ SteelSeries Sensei Raw Gaming Mouse     	id=9	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]

If I'm reading this output correctly, ids 2, 4, 8, and 10 are mice, but none of them seem to have the "Device Accel Profile" property:

$ xinput list-props 2 4 8 10
Device 'Virtual core pointer':
	Device Enabled (146):	1
	Coordinate Transformation Matrix (148):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device 'Virtual core XTEST pointer':
	Device Enabled (146):	1
	Coordinate Transformation Matrix (148):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	XTEST Device (263):	1
Device 'SteelSeries Sensei Raw Gaming Mouse':
	Device Enabled (146):	1
	Coordinate Transformation Matrix (148):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Accel Speed (279):	0.000000
	libinput Accel Speed Default (280):	0.000000
	libinput Natural Scrolling Enabled (281):	0
	libinput Natural Scrolling Enabled Default (282):	0
	libinput Send Events Modes Available (264):	1, 0
	libinput Send Events Mode Enabled (265):	0, 0
	libinput Send Events Mode Enabled Default (266):	0, 0
	libinput Left Handed Enabled (283):	0
	libinput Left Handed Enabled Default (284):	0
	libinput Scroll Methods Available (285):	0, 0, 1
	libinput Scroll Method Enabled (286):	0, 0, 0
	libinput Middle Emulation Enabled (287):	0
	libinput Middle Emulation Enabled Default (288):	0
	Device Node (267):	"/dev/input/event1"
	Device Product ID (268):	4152, 4969
Device 'SteelSeries Sensei Raw Gaming Mouse':
	Device Enabled (146):	1
	Coordinate Transformation Matrix (148):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (281):	0
	libinput Natural Scrolling Enabled Default (282):	0
	libinput Send Events Modes Available (264):	1, 0
	libinput Send Events Mode Enabled (265):	0, 0
	libinput Send Events Mode Enabled Default (266):	0, 0
	Device Node (267):	"/dev/input/event3"
	Device Product ID (268):	4152, 4969

As you can see in the output above, my mouse is a SteelSeries Sensei Raw (just one!). Unfortunately I don't have any other mice to test with.

Last edited by zunpre (2015-05-25 20:00:03)

Offline

#2 2015-05-25 16:59:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Disabling mouse acceleration

Please post the output of

xset -q | grep -A1 Pointer

Offline

#3 2015-05-25 17:07:13

zunpre
Member
From: Denmark
Registered: 2011-10-25
Posts: 3

Re: [SOLVED] Disabling mouse acceleration

Running that gives me:

$ xset -q | grep -A1 Pointer
Pointer Control:
  acceleration:  1/1    threshold:  0

Last edited by zunpre (2015-05-25 17:07:42)

Offline

#4 2015-05-25 19:04:07

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Disabling mouse acceleration

Offline

#5 2015-05-25 19:59:38

zunpre
Member
From: Denmark
Registered: 2011-10-25
Posts: 3

Re: [SOLVED] Disabling mouse acceleration

brebs wrote:

Thanks! I can't believe I didn't find that.

Offline

#6 2015-05-25 22:26:42

AnAkkk
Member
Registered: 2014-03-03
Posts: 148

Re: [SOLVED] Disabling mouse acceleration

zunpre wrote:
brebs wrote:

Thanks! I can't believe I didn't find that.

You didn't actually need to remove libinput to remove acceleration, as it can be disabled with libinput too. As I've written in the other thread:

Section "InputClass"
        Identifier "My Mouse"
        MatchIsPointer "yes"
        Option "AccelSpeed" "-1"
EndSection

Offline

#7 2015-05-26 21:46:17

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Disabling mouse acceleration

Well, there's a libinput bug report re acceleration - it ain't fully disabling acceleration.

Comment #3 is the most informative in that bug report. And comment #4 is the most amusing smile

Offline

Board footer

Powered by FluxBB