禁用触摸屏

我的理解是,我可以通过在此文件中添加选项“忽略”“打开”来禁用我的触摸屏

/usr/share/X11/xorg.conf.d/10-evdev.conf Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection 

所以它看起来像这样

  Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "Ignore" "on" EndSection 

如果我简单地将MatchIsTouchscreen更改为“off”会发生什么?

  Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "off" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection 

这会禁用我的触摸屏吗?

用文件编辑文件

 sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf 

将MatchIsTouchscreen从“on”更改为“off”

 Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "off" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection 

“ELAN触摸屏”已禁用,在xinput列表中不再检测到。