You are not logged in.

#1 2019-02-06 03:46:42

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

[SOLVED] Changing mouse speed with libinput (NOT acceleration!)

I'd like to change the speed/sensitivity of my touchpad—but I've only ever come across options to change the acceleration. Every time someone asks "How do I change my mouse speed?" the answer is actually change to acceleration.

Setting acceleration to max feels... weird. I'd like for my mouse to move at a constant rate relative to how fast my finger is moving. I do not want it to accelerate.

Is there a way of doing this?

The relevant properties are:

Device 'SynPS/2 Synaptics TouchPad':
	Device Enabled (153):	1
	Coordinate Transformation Matrix (155):	10.000000, 0.000000, 0.000000, 0.000000, 10.000000, 0.000000, 0.000000, 0.000000, 10.000000
	libinput Tapping Enabled (288):	0
	libinput Tapping Enabled Default (289):	0
	libinput Tapping Drag Enabled (290):	1
	libinput Tapping Drag Enabled Default (291):	1
	libinput Tapping Drag Lock Enabled (292):	0
	libinput Tapping Drag Lock Enabled Default (293):	0
	libinput Tapping Button Mapping Enabled (294):	1, 0
	libinput Tapping Button Mapping Default (295):	1, 0
	libinput Natural Scrolling Enabled (296):	0
	libinput Natural Scrolling Enabled Default (297):	0
	libinput Disable While Typing Enabled (298):	1
	libinput Disable While Typing Enabled Default (299):	1
	libinput Scroll Methods Available (300):	1, 1, 0
	libinput Scroll Method Enabled (301):	1, 0, 0
	libinput Scroll Method Enabled Default (302):	1, 0, 0
	libinput Accel Speed (303):	0.000000
	libinput Accel Speed Default (304):	0.000000
	libinput Left Handed Enabled (305):	0
	libinput Left Handed Enabled Default (306):	0
	libinput Send Events Modes Available (273):	1, 1
	libinput Send Events Mode Enabled (274):	0, 0
	libinput Send Events Mode Enabled Default (275):	0, 0
	Device Node (276):	"/dev/input/event10"
	Device Product ID (277):	2, 7
	libinput Drag Lock Buttons (307):	<no items>
	libinput Horizontal Scroll Enabled (308):	1

... but it doesn't look like there's anything I can work with here. I tried setting the transformation matrix to something like 10, 0, 0, 0, 10, 0, 0, 0, 10 (it seemed like a good idea!) but this didn't change anything. Does anyone know if there's a way to change the *speed* of my mouse (again, not it's acceleration!)

There's also no option here for "Accel Profile" (which, apparently, can be set to "flat")—so I receive a property 'libinput Accel Profile Enabled' doesn't exist, you need to specify its type and format' message.

I've tried to add:

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

to /etc/X11/xorg.conf.d/50-mouse-acceleration.conf (as suggested in the wiki), but this didn't add any option that wasn't already there.

Last edited by AmagicalFishy (2019-02-07 06:32:00)

Offline

#2 2019-02-06 08:23:51

seth
Member
Registered: 2012-09-03
Posts: 51,464

Re: [SOLVED] Changing mouse speed with libinput (NOT acceleration!)

my touchpad

MatchIsPointer "yes"

Notice that there's no guarantee that your device actually supports that profile.

The synaptics driver had a resolution feature, but I'm not sure whether that was done in software - which would be a stupid idea since it'll ultimately result in unconditionally skipping pixels (for values > 1, it was meant for x/y-compensations)
The psmouse kernel module has a resolution parameter that you might try, if you're using that module to drive the device.

Please understand that the only reasonable way to do this is to increase the HW-resolution. If you increase the logical resolution, you'll end up being unable to reach pixels on your screen (unlike w/ acceleration since the pixels are skipped depending on how long you've been moving the mouse)

Online

#3 2019-02-06 16:04:51

jLuca
Member
From: Italy
Registered: 2016-12-06
Posts: 24

Re: [SOLVED] Changing mouse speed with libinput (NOT acceleration!)

From my past experience, I managed to get my mouse speed to increase (at least that was my feeling) when I changed the diagonal values of the transformation matrix as you did. My mouse is a Logitech G502.

Offline

#4 2019-02-06 16:16:34

seth
Member
Registered: 2012-09-03
Posts: 51,464

Re: [SOLVED] Changing mouse speed with libinput (NOT acceleration!)

This is OT, but the G502 has variable sensor resolution, seems to fail w/ lomoco but supported by https://www.archlinux.org/packages/comm … libratbag/

Online

#5 2019-02-07 06:29:38

AmagicalFishy
Member
Registered: 2016-12-10
Posts: 69

Re: [SOLVED] Changing mouse speed with libinput (NOT acceleration!)

What I ended up doing was changing the Coordinate transformation matrix:

xinput --set-prop "SynPS/2 Synaptics Touchpad" "Coordinate Transformation Matrix" 3,0,0,0,3,0,0,0,1

or

xinput --set-prop 14 154 3,0,0,0,3,0,0,0,1

... where 14 is the id for my touchpad, and 154 is the id of the touchpad's property. To get the id of your pointer, type

xinput --list

... and to get the property list, type

xinput --list-props [Name or id of touchpad]

I think my attempt earlier wasn't working because the matrix is, apparently, reduced? So 1,0,0,0,1,0,0,0,1 registers as equivalent to 7,0,0,0,7,0,0,0,7. If you leave the last z-coordinate as 1, though, everything's magnitude increases as expected (since the ratios are off).

Last edited by AmagicalFishy (2019-02-07 06:31:37)

Offline

Board footer

Powered by FluxBB