1、一般禁用选项在 settings > mouse and touchpad 中。(16.04通过实验)如果无法禁用或者希望恢复,向下看。

2、命令行键入: xinput ,插卡touchpad的ID号。

我的Dell笔记本显示如下:

 ⎡ Virtual core pointer                        id=    [master pointer  ()]
⎜ ↳ Virtual core XTEST pointer id= [slave pointer ()]
⎜ ↳ PixArt USB Optical Mouse id= [slave pointer ()]
⎜ ↳ DLL0655: 06CB: id= [slave pointer ()]
⎣ Virtual core keyboard id= [master keyboard ()]
↳ Virtual core XTEST keyboard id= [slave keyboard ()]
↳ Power Button id= [slave keyboard ()]
↳ Video Bus id= [slave keyboard ()]
↳ Video Bus id= [slave keyboard ()]
↳ Power Button id= [slave keyboard ()]
↳ Sleep Button id= [slave keyboard ()]
↳ Integrated_Webcam_HD id= [slave keyboard ()]
↳ AT Translated Set keyboard id= [slave keyboard ()]
↳ DELL Wireless hotkeys id= [slave keyboard ()]
↳ Dell WMI hotkeys id= [slave keyboard ()]

一般都是在Virtual core pointer里面,如果看不出就自己测试一下吧,我的经测试,是DLL0655:00 06CB:2985 id=13

也就是ID=13

关闭触摸板: xinput disable

开启触摸板: xinput enable

3、创建一个脚本来自动执行。

 #!/bin/bash

 output=$(xinput list-props )

 if [[ "$output" =~ Device.Enabled.\(\):. ]]
then
xinput disable
else
xinput enable
fi

为什么?(选读)
命令xinput list-props 13可以列出触摸板的当前信息,其中的Device Enabled (142): 1显示设备是否启用,数字1表示启用,0表示禁用。这里可以用正则简单地判断触摸板是否在启用状态以执行不同的命令。

ubuntu下禁用和恢复触摸板的更多相关文章

  1. acer笔记本禁用或关闭触摸板

    acer笔记本禁用或关闭触摸板 如果启用或停用AspireOne的触摸板? 如果您希望启用或停用触摸板,请同时按下功能键(Fn)key和F7键.屏幕上会显示触摸板是否已启用或已禁用.

  2. ubuntu14.04禁止触摸板和恢复触摸板

    1.使用xinput list查看与触摸板相关的id,以下是本机的输出,没搞清楚为什么是Mouse!!! jello@jello:~$ xinput list⎡ Virtual core pointe ...

  3. Linux学习三:Ubuntu下使用minicom和开发板通信

    备注:如果你是用的是Windows则使用超级终端即可:开始-程序-附件-通讯-超级终端 现在我们在Ubuntu下安装配置minicom: 1.进入ubuntu桌面ctrl+alt+t打开终端 输入:s ...

  4. centos系统下禁用笔记本触控板

    最近把零几年的老爷笔记本拿出来用,使用windows系统实在太卡了,于是折腾安装上Centos系统了,但是在使用的过程中发现鼠标经常失效.使用了多种方法(比如:http://blog.csdn.net ...

  5. Ubuntu下禁用笔记本自带键盘

    想要禁用笔记本自带键盘(Ubuntu)只要2条命令. 1. 打开终端,输入: xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ...

  6. [#Linux] CentOS 7 禁用笔记本的触摸板

    安装 xorg-x11-apps yum install xorg-x11-apps 查看对应设备的 id xinput –list 关闭 touchpad xinput set-int-prop 1 ...

  7. Ubuntu通过xinput禁用及启用联想笔记本的触摸板

    查看设备列表 通过xinput先查看一些都有哪些设备 xinput     #或者 xinput list 显示结果如下 ddd@ddd:~$ xinput list   Virtual core p ...

  8. ubuntu 12.10 禁用触摸板

    1. 打开终端,输入 sudo rmmod psmouse 禁用触摸板,输入 sudo modprobe psmouse 恢复触摸板 2.syndaemon -i 10 -d >/dev/nul ...

  9. 关于安装Ubuntu后触摸板无法使用的解决方案

    安装了Ubuntu后发现触摸板无法使用,以为是修改了安装文件导致(之前拿安装源文件做了小实验),于是重装,之后触摸板仍无法使用,在一个长满小广告的页面上找到了解决方案. 以下是原文章内容: 最近突然发 ...

随机推荐

  1. arcengine帮助http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/what_s_new_for_developers_at_10_/0001000002zp000000/

    http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/what_s_new_for_develope ...

  2. HTML5画:线、圆、矩形、渐变

    示例一:矩形 <!DOCTYPE html><head> <meta charset=utf-8> <title>HTML5画线.圆.矩形</ti ...

  3. 3月题外:关于JS实现图片缩略图效果的一个小问题

    由于3月可能要结束实习,所以应该不会有特别固定的主题,另外我会在月初陆续补上上个月的番外篇Projection和TMS,作为介绍性的内容对矢量切片部分进行补充,剩下时间不定期写一些杂烩. 最近两天在做 ...

  4. thinkphp输出表格

    //这是打印5列n行的表格,所以mod="5" value="4" <tr> <volist name="data" id ...

  5. 简单的后台管理系统vue-cli3.0+element-ui

    前段时间在研究一个分发系统,发现vue-cli+element-ui好像是挺不错的,然后自己根据那个分发系统尝试搭建了一下 1.首先安装vue和vue-cli // 全局安装vue npm insta ...

  6. sqlserver 汉字转拼音

    作者不详       --方法一sqlserver汉字转拼音首字母 --调用方法 select dbo.procGetPY ('中國') Create FUNCTION dbo.procGetPY ( ...

  7. Nginx发展现状及未来特性

    Nginx ("engine x")是一个高性能的HTTP和反向代理 服务器,也是一个IMAP/POP3/SMTP 代理服务器,其特点是占用内存少,并发能力强.到目前完为止,Ngi ...

  8. 解决 PowerDesigner 错误 The generation has been cancelled because errors have been found by the check model.

    在通过概念数据模型生成为物理数据模型时出现错误“The generation has been cancelled because errors have been found by the chec ...

  9. 【饿了么】—— Vue2.0高仿饿了么核心模块&移动端Web App项目爬坑(三)

    前言:接着上一篇项目总结,这一篇是学习过程记录的最后一篇,这里会梳理:评论组件.商家组件.优化.打包.相关资料链接.项目github地址:https://github.com/66Web/ljq_el ...

  10. /etc/vsftpd.conf配置(ftp上传)

    # Example config file /etc/vsftpd.conf## The default compiled in settings are fairly paranoid. This ...