Linux禁用触摸屏

有些桌面环境比如KDE没有提供禁用触摸屏的选项。不过可以通过修改配置文件来禁用触摸屏。

编辑/usr/share/X11/xorg.conf.d/40-libinput.conf,找到touchscreen这项:

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

加上Option "Ignore" "on"

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

然后重启即可。

来源:How to Disable Touch Screen on any Linux Distribution

posted @ 2024-09-28 13:38  寻找繁星  阅读(2)  评论(0编辑  收藏  举报