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 @   寻找繁星  阅读(41)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 上周热点回顾(2.17-2.23)
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
点击右上角即可分享
微信分享提示