禁用触摸屏

禁用触摸屏

据我了解,我可以通过向此文件添加选项“忽略”来禁用触摸屏

          /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 改为“关闭”,会发生什么?

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

这会禁用我的触摸屏吗?

答案1

编辑文件文件

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

将 MatchIsTouchscreen 从“开”更改为“关”

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

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

相关内容