You are not logged in.

#1 2024-04-11 19:42:48

raidenfox
Member
Registered: 2024-04-11
Posts: 4

[SOLVED] Can't disable mouse acceleration through xorg config file

When I try to disable mouse acceleration by setting the profile to flat in /usr/share/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
 Identifier "libinput pointer catchall"
 MatchIsPointer "on"
 MatchDevicePath "/dev/input/event*"
 Driver "libinput"
 Option "Accel Profile Enabled" "0 1 0"
EndSection

It simply doesn't change Accel Profile Enable to 0 1 0, instead, by running xinput list-props, it says libinput Accel Profile Enabled is set to 1, 0, 0

Device 'Logitech G703 LS':
	Device Enabled (158):	1
	Coordinate Transformation Matrix (160):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (286):	0
	libinput Natural Scrolling Enabled Default (287):	0
	libinput Scroll Methods Available (288):	0, 0, 1
	libinput Scroll Method Enabled (289):	0, 0, 0
	libinput Scroll Method Enabled Default (290):	0, 0, 0
	libinput Button Scrolling Button (291):	2
	libinput Button Scrolling Button Default (292):	2
	libinput Button Scrolling Button Lock Enabled (293):	0
	libinput Button Scrolling Button Lock Enabled Default (294):	0
	libinput Middle Emulation Enabled (295):	0
	libinput Middle Emulation Enabled Default (296):	0
	libinput Rotation Angle (269):	0.000000
	libinput Rotation Angle Default (270):	0.000000
	libinput Accel Speed (297):	0.000000
	libinput Accel Speed Default (298):	0.000000
	libinput Accel Profiles Available (299):	1, 1, 1
	libinput Accel Profile Enabled (300):	1, 0, 0
	libinput Accel Profile Enabled Default (301):	1, 0, 0
	libinput Accel Custom Fallback Points (302):	<no items>
	libinput Accel Custom Fallback Step (303):	0.000000
	libinput Accel Custom Motion Points (304):	<no items>
	libinput Accel Custom Motion Step (305):	0.000000
	libinput Accel Custom Scroll Points (306):	<no items>
	libinput Accel Custom Scroll Step (307):	0.000000
	libinput Left Handed Enabled (308):	0
	libinput Left Handed Enabled Default (309):	0
	libinput Send Events Modes Available (271):	1, 0
	libinput Send Events Mode Enabled (272):	0, 0
	libinput Send Events Mode Enabled Default (273):	0, 0
	Device Node (274):	"/dev/input/event22"
	Device Product ID (275):	1133, 16518
	libinput Drag Lock Buttons (310):	<no items>
	libinput Horizontal Scroll Enabled (311):	1
	libinput Scrolling Pixel Distance (312):	15
	libinput Scrolling Pixel Distance Default (313):	15
	libinput High Resolution Wheel Scroll Enabled (314):	1

Also, setting the option through this command works fine

 # xinput set-prop "15" "libinput Accel Profile Enabled" 0 1 0 

Any ideas?

Last edited by raidenfox (2024-04-12 01:40:05)

Offline

#2 2024-04-11 20:29:25

raidenfox
Member
Registered: 2024-04-11
Posts: 4

Re: [SOLVED] Can't disable mouse acceleration through xorg config file

Apparently Accel Profile Enable isn't working anymore (?). Setting the flat layout like this works completely fine:

 Section "InputClass"
 Identifier "libinput pointer catchall"
 MatchIsPointer "on"
 MatchDevicePath "/dev/input/event*"
 Driver "libinput"
 Option "AccelProfile" "flat"
EndSection 

And it even changes the Accel Profile Enable entry in xinput list-props to the correct state:

Device 'Logitech G703 LS':
	Device Enabled (158):	1
	Coordinate Transformation Matrix (160):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Natural Scrolling Enabled (286):	0
	libinput Natural Scrolling Enabled Default (287):	0
	libinput Scroll Methods Available (288):	0, 0, 1
	libinput Scroll Method Enabled (289):	0, 0, 0
	libinput Scroll Method Enabled Default (290):	0, 0, 0
	libinput Button Scrolling Button (291):	2
	libinput Button Scrolling Button Default (292):	2
	libinput Button Scrolling Button Lock Enabled (293):	0
	libinput Button Scrolling Button Lock Enabled Default (294):	0
	libinput Middle Emulation Enabled (295):	0
	libinput Middle Emulation Enabled Default (296):	0
	libinput Rotation Angle (269):	0.000000
	libinput Rotation Angle Default (270):	0.000000
	libinput Accel Speed (297):	0.000000
	libinput Accel Speed Default (298):	0.000000
	libinput Accel Profiles Available (299):	1, 1, 1
	libinput Accel Profile Enabled (300):	0, 1, 0
	libinput Accel Profile Enabled Default (301):	1, 0, 0
	libinput Accel Custom Fallback Points (302):	<no items>
	libinput Accel Custom Fallback Step (303):	0.000000
	libinput Accel Custom Motion Points (304):	<no items>
	libinput Accel Custom Motion Step (305):	0.000000
	libinput Accel Custom Scroll Points (306):	<no items>
	libinput Accel Custom Scroll Step (307):	0.000000
	libinput Left Handed Enabled (308):	0
	libinput Left Handed Enabled Default (309):	0
	libinput Send Events Modes Available (271):	1, 0
	libinput Send Events Mode Enabled (272):	0, 0
	libinput Send Events Mode Enabled Default (273):	0, 0
	Device Node (274):	"/dev/input/event13"
	Device Product ID (275):	1133, 16518
	libinput Drag Lock Buttons (310):	<no items>
	libinput Horizontal Scroll Enabled (311):	1
	libinput Scrolling Pixel Distance (312):	15
	libinput Scrolling Pixel Distance Default (313):	15
	libinput High Resolution Wheel Scroll Enabled (314):	1

Offline

#3 2024-04-11 20:38:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] Can't disable mouse acceleration through xorg config file

Not every listing in xinput also translates one to one to a xorg config setting.

See https://man.archlinux.org/man/libinput. … ON_DETAILS for the xorg config options and the supported properties section  for the runtime properties which are set with xinput.

Last edited by V1del (2024-04-11 20:38:47)

Offline

#4 2024-04-11 23:34:58

raidenfox
Member
Registered: 2024-04-11
Posts: 4

Re: [SOLVED] Can't disable mouse acceleration through xorg config file

In the wiki article about mouse acceleration it says to add "Accel Profile Enabled" "0 1 0" to /usr/share/X11/xorg.conf.d/40-libinput.conf to make the change permanent instead of relying on xinput. Maybe they changed it recently? I remember AccelProfile being on the wiki some time ago and strangely enough "AccelProfile" "flat" has the same outcome as "Accel Profile Enabled" "0 1 0" should in theory have.

Offline

#5 2024-04-12 01:14:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] Can't disable mouse acceleration through xorg config file

I'm 99% certain the wiki article is wrong. AccelProfile "flat" is exactly the way it should be configured in the config file. Will fix.

Last edited by V1del (2024-04-12 01:18:14)

Offline

#6 2024-04-12 01:38:11

raidenfox
Member
Registered: 2024-04-11
Posts: 4

Re: [SOLVED] Can't disable mouse acceleration through xorg config file

Thank you smile Will mark as solved.

Offline

Board footer

Powered by FluxBB