[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling a touchpad in Fedora



I'm having trouble disabling the touchpad on my new Lenovo P72 laptop.
The touchpad is a real bother and causes the mouse to jump all over the
screen. I've disabled it in the BIOS, and that's enough for Windows 10.
Fedora 30 doesn't seem to care about that setting.

I've been doing some Google searching and have found a utility called
xinput that may solve the problem. It's similar to lspci and other low
level utilities:

#  xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech M705                           	id=9	[slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver Mouse             	id=12	[slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver Consumer Control  	id=13	[slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                	id=17	[slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech TrackPoint              	id=18	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Integrated IR Camera: Integrate         	id=10	[slave  keyboard (3)]
    ↳ Logitech USB Receiver                   	id=11	[slave  keyboard (3)]
    ↳ Logitech USB Receiver System Control    	id=14	[slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C         	id=15	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=16	[slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                  	id=19	[slave  keyboard (3)]
    ↳ Logitech USB Receiver Consumer Control  	id=20	[slave  keyboard (3)]

I believe my Touchpad is id=17. Its properties can be listed with:

# xinput list-props 17
Device 'ETPS/2 Elantech Touchpad':
	Device Enabled (149):	1
	Coordinate Transformation Matrix (151):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Tapping Enabled (302):	0
	libinput Tapping Enabled Default (303):	0
	libinput Tapping Drag Enabled (304):	1
	libinput Tapping Drag Enabled Default (305):	1
	libinput Tapping Drag Lock Enabled (306):	0
	libinput Tapping Drag Lock Enabled Default (307):	0
	libinput Tapping Button Mapping Enabled (308):	1, 0
	libinput Tapping Button Mapping Default (309):	1, 0
	libinput Natural Scrolling Enabled (284):	0
	libinput Natural Scrolling Enabled Default (285):	0
	libinput Disable While Typing Enabled (310):	0
	libinput Disable While Typing Enabled Default (311):	1
	libinput Scroll Methods Available (286):	1, 1, 0
	libinput Scroll Method Enabled (287):	1, 0, 0
	libinput Scroll Method Enabled Default (288):	1, 0, 0
	libinput Accel Speed (293):	0.000000
	libinput Accel Speed Default (294):	0.000000
	libinput Left Handed Enabled (298):	0
	libinput Left Handed Enabled Default (299):	0
	libinput Send Events Modes Available (269):	1, 1
	libinput Send Events Mode Enabled (270):	0, 0
	libinput Send Events Mode Enabled Default (271):	0, 0
	Device Node (272):	"/dev/input/event5"
	Device Product ID (273):	2, 14
	libinput Drag Lock Buttons (300):	<no items>
	libinput Horizontal Scroll Enabled (301):	0

According to 
https://www.reddit.com/r/thinkpad/comments/6ussw3/x1_carbon_gen_5_owners_disabling_touchpad_linux/
I should be able to execute a command line like this:

# xinput set-prop <device ID/name> <setting ID/name> 0

Using the values I think I know, this could become:

# xinput set-prop 17 <setting ID/name> 0
# xinput set-prop 17 0Usage: xinput set-prop <device> [--type=atom|float|int] [--format=8|16|32] <property> <val> [<val> ...]

Can anyone suggest what the actual command line should be? If not
xinput, is there another solution?

--Doc


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.