Hi, I’m trying to get the hang of xinput. For a start I tried setting an option of a device to a value it already has.

I want to go for my Touchpad. From the following output I identified ELAN050A:00 04F3:31B1 Touchpad as the device name.

$ xinput --list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ ELAN050A:00 04F3:31B1 Mouse             	id=12	[slave  pointer  (2)]
⎜   ↳ ELAN050A:00 04F3:31B1 Touchpad          	id=13	[slave  pointer  (2)]
# more lines

Then I listed the available options:

$ xinput list-props "ELAN050A:00 04F3:31B1 Touchpad"
Device 'ELAN050A:00 04F3:31B1 Touchpad':
	Device Enabled (180):	1
	Coordinate Transformation Matrix (182):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
# Lots more …
	Synaptics Scrolling Distance (350):	-79, 79
# Lots more…

Then I tried setting the Scrolling Distance:

$ xinput set-prop\
"ELAN050A:00 04F3:31B1 Touchpad"\
"Synaptics Scrolling Distance"\
"-79, 79"
X Error of failed request:  BadMatch (invalid parameter attributes)
 Major opcode of failed request:  131 (XInputExtension)
 Minor opcode of failed request:  57 ()
 Serial number of failed request:  21
 Current serial number in output stream:  22

I also tried without the separating comma in the options list:

$ xinput set-prop\
"ELAN050A:00 04F3:31B1 Touchpad"\
"Synaptics Scrolling Distance"\
"-79 79"
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  21
  Current serial number in output stream:  22

What’s wrong with the parameter attributes? I’m on Linux Mint 21.3 and Kernel 5.15.0-173-generic.