我正在尝试禁用华硕 S200E 笔记本电脑上的触摸屏。在 Ubuntu 16.04 中,我可以这样做:
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Run Code Online (Sandbox Code Playgroud)
如何在 Ubuntu 18.04 上做到这一点?
xio*_*ota 21
您似乎指的是位于/usr/share/X11/xorg.conf.d. 也许libinput最近更新了驱动程序以支持您的触摸屏?
可能你想编辑/usr/share/X11/xorg.conf.d/10-evdev.conf:
“输入类”部分
标识符“evdev touchscreen catchall”
MatchIsTouchscreen“开启”
MatchDevicePath "/dev/input/event*"
#驱动程序“evdev”
选项“忽略”“打开”
EndSection
并/usr/share/X11/xorg.conf.d/40-libinput.conf与:
“输入类”部分
标识符“libinput 触摸屏包罗万象”
MatchIsTouchscreen“开启”
MatchDevicePath "/dev/input/event*"
#驱动程序“libinput”
选项“忽略”“打开”
EndSection
如果这不起作用(或者您没有编辑系统文件所需的权限),请使用 获取触摸屏的名称xinput,并将以下命令之一添加到启动脚本中:
xinput set-prop [touchscreen name] "Device Enabled" 0
xinput disable [touchscreen name]
Run Code Online (Sandbox Code Playgroud)
如果您担心设备 ID 在重新启动之间发生变化,请在引号中使用设备名称。
| 归档时间: |
|
| 查看次数: |
18348 次 |
| 最近记录: |