笔记本关闭触摸屏,不是触控板
Tofloor
poster avatar
z87570766l
deepin
2017-07-18 20:32
Author
    笔记本触摸屏坏了,现鼠标乱跳,求终端代码直接关闭,由于鼠标乱跳,现操作不易,望大大求助

Reply Favorite View the author
All Replies
avatar
deepin--
deepin
2017-07-18 20:47
#1
本帖最后由 deepin-- 于 2017-7-18 12:56 编辑
  1. sudo apt install xinput
  2. xinput set-prop '你的触摸屏' 'Device Enabled' 0
Copy the Code

也可以看看这个
http://www.linuxidc.com/Linux/2015-03/114578.htm


之前同学也出现了这情况
xinput是只能临时关掉,写个脚本开机自动运行 就可以每次开机自动关掉

具体:
新建个文本 内容如下
  1. [Desktop Entry]
  2. Type=Application
  3. Exec=xinput set-prop '你的触摸板' 'Device Enabled' 0
  4. Hidden=false
  5. NoDisplay=false
  6. X-GNOME-Autostart-enabled=true
  7. Name[zh_CN]=xxx
  8. Name=xxx
  9. Comment[zh_CN]=禁用触摸屏
  10. Comment=禁用触摸屏
Copy the Code


然后改成文件名xxx.desktop然后放到~/.config/autostart/里就行了
Reply View the author