I spent a few days trying to find the instructions to disable my middle touchpad button on a Thinkpad T480s laptop. The middle button is enable as "paste" command and you trip over the paste command instead of "Left click" more often than you think. Hope this is helpful for others, below is the only way I found.
The solution uses "xinput command", the "list" option will identify the id number, the "list-props" will give us the line of the characteristic and the "set_prop" will change the configuration.
"xinput list" will give us...
As you can see "ETPS/2 Elantech Touchpad id=10", id=10 is what we are looking for.
then "xinput list-props 10" will give us...
(361) is the number of the characteristic we are looking for.
The last command is to disable the button for good. "xinput set-prop 10 361 0 1" will do the magic.
This command will not change at reboot, I was able to create an entry on "Sessions and Startup" and the middle button is gone.
The solution uses "xinput command", the "list" option will identify the id number, the "list-props" will give us the line of the characteristic and the "set_prop" will change the configuration.
"xinput list" will give us...
Code:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ System mouse id=6 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=10 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech TrackPoint id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ System keyboard multiplexer id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ AT keyboard
As you can see "ETPS/2 Elantech Touchpad id=10", id=10 is what we are looking for.
then "xinput list-props 10" will give us...
Code:
libinput Click Methods Available (360): 1, 1
libinput Click Method Enabled (361): 0, 1
libinput Click Method Enabled Default (362): 1, 0
(361) is the number of the characteristic we are looking for.
The last command is to disable the button for good. "xinput set-prop 10 361 0 1" will do the magic.
This command will not change at reboot, I was able to create an entry on "Sessions and Startup" and the middle button is gone.