xinput (at least with my understanding of it) does not work very well for the following reasons:
Mouse "handedness" settings:
The map button sequence in xinput get/set-button-map is unrelated to the settings in System -> Control Center -> Mouse -> Mouse dialog box: Changes in one do not affect the other, so it is impossible to write a robust command line script for setting the mouse right or left handed with xinput, because if the Control Center Mouse dialog box is set to the default "Right-handed" you must use
Code: Select all
xinput -set-button-map 3 2 1
Code: Select all
xinput -set-button-map 1 2 3
Touchpad:
When "Enable touchpad" is un-checked in System -> Control Center -> Mouse -> Touchpad, it seems impossible to enable it again with "xinput set-prop 186":
Code: Select all
nick@nickspanasonic:~$ xinput set-prop 15 186 1
nick@nickspanasonic:~$ xinput list-props 15
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (186): 0
Coordinate Transformation Matrix (188): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (345): 1
libinput Tapping Enabled Default (346): 0
libinput Tapping Drag Enabled (347): 1
libinput Tapping Drag Enabled Default (348): 1
libinput Tapping Drag Lock Enabled (349): 0
libinput Tapping Drag Lock Enabled Default (350): 0
libinput Tapping Button Mapping Enabled (351): 1, 0
libinput Tapping Button Mapping Default (352): 1, 0
libinput Natural Scrolling Enabled (322): 0
libinput Natural Scrolling Enabled Default (323): 0
libinput Disable While Typing Enabled (353): 1
libinput Disable While Typing Enabled Default (354): 1
libinput Scroll Methods Available (324): 1, 1, 0
libinput Scroll Method Enabled (325): 1, 0, 0
libinput Scroll Method Enabled Default (326): 1, 0, 0
libinput Accel Speed (333): 0.000000
libinput Accel Speed Default (334): 0.000000
libinput Accel Profiles Available (335): 1, 1
libinput Accel Profile Enabled (336): 1, 0
libinput Accel Profile Enabled Default (337): 1, 0
libinput Left Handed Enabled (338): 0
libinput Left Handed Enabled Default (339): 0
libinput Send Events Modes Available (307): 1, 1
libinput Send Events Mode Enabled (308): 0, 0
libinput Send Events Mode Enabled Default (309): 0, 0
Device Node (310): "/dev/input/event4"
Device Product ID (311): 2, 7
libinput Drag Lock Buttons (340): <no items>
libinput Horizontal Scroll Enabled (341): 0
libinput Scrolling Pixel Distance (342): 15
libinput Scrolling Pixel Distance Default (343): 15
libinput High Resolution Wheel Scroll Enabled (344): 1
nick@nickspanasonic:~$
Code: Select all
nick@nickspanasonic:~$ xinput set-prop 15 186 1
nick@nickspanasonic:~$ xinput list-props 15
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (186): 1
Coordinate Transformation Matrix (188): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (345): 1
libinput Tapping Enabled Default (346): 0
libinput Tapping Drag Enabled (347): 1
libinput Tapping Drag Enabled Default (348): 1
libinput Tapping Drag Lock Enabled (349): 0
libinput Tapping Drag Lock Enabled Default (350): 0
libinput Tapping Button Mapping Enabled (351): 1, 0
libinput Tapping Button Mapping Default (352): 1, 0
libinput Natural Scrolling Enabled (322): 0
libinput Natural Scrolling Enabled Default (323): 0
libinput Disable While Typing Enabled (353): 1
libinput Disable While Typing Enabled Default (354): 1
libinput Scroll Methods Available (324): 1, 1, 0
libinput Scroll Method Enabled (325): 1, 0, 0
libinput Scroll Method Enabled Default (326): 1, 0, 0
libinput Accel Speed (333): 0.000000
libinput Accel Speed Default (334): 0.000000
libinput Accel Profiles Available (335): 1, 1
libinput Accel Profile Enabled (336): 1, 0
libinput Accel Profile Enabled Default (337): 1, 0
libinput Left Handed Enabled (338): 0
libinput Left Handed Enabled Default (339): 0
libinput Send Events Modes Available (307): 1, 1
libinput Send Events Mode Enabled (308): 0, 0
libinput Send Events Mode Enabled Default (309): 0, 0
Device Node (310): "/dev/input/event4"
Device Product ID (311): 2, 7
libinput Drag Lock Buttons (340): <no items>
libinput Horizontal Scroll Enabled (341): 0
libinput Scrolling Pixel Distance (342): 15
libinput Scrolling Pixel Distance Default (343): 15
libinput High Resolution Wheel Scroll Enabled (344): 1
nick@nickspanasonic:~$