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. ORACLE FORMS PL/SQL PACKAGE SHOW TIPS WINDOW

    --在开发ORACLE FORM的程序中,要编写PL/SQL程序包产出异常情况时,直接在FORM弹出一个异常提示窗口 DECLARE BEGIN app_exception.raise_excepti ...

  2. 【docker】docker network常用命令参数

    1.帮助命令 docker network --help 2.查看docker默认三种网络 docker network ls 3.创建自定义网络,如果不指定,默认创建类型为bridge类型 dock ...

  3. js:对象的创建(为prototype做铺垫)

    /**  *在js中并不存在类,所以能够直接通过Object来创建对象,可是使用这样的方式创建有一  *弊端:因为没有类的约束,无法实现对象的反复利用,而且没有一种规范约定,在操作时easy带来问题. ...

  4. 如何写科技论文How to write a technical paper

    This is the evolving set of recommendations I share with my graduate students for technical writing. ...

  5. django的动态url,url里含有参数,含有参数的url

    #!/usr/bin/env python # coding:utf- from django.conf.urls import url,include from django.contrib imp ...

  6. USACO ariprog 暴力枚举+剪枝

    /* ID:kevin_s1 PROG:ariprog LANG:C++ */ #include <iostream> #include <cstdio> #include & ...

  7. TortoiseSVN 源代码下载

    SVN的客户端软件TortoiseSVN http://tortoisesvn.tigris.org/ 这是我采用的 TortoiseSVN 的官方网站,页面上的两只小乌龟真的很好看. 目前最新的版本 ...

  8. [Algorithm] Dynamic programming: Find Sets Of Numbers That Add Up To 16

    For a given array, we try to find set of pair which sums up as the given target number. For example, ...

  9. docker下搭建gitlab

    [root@localhost ~]# docker run \ > --name='gitlab' \ > -itd \ > --link gitlab_mysql:mysql \ ...

  10. PHP如何安装和配置Zend Studio

    1 网上下载该软件,安装之后关闭三个东西 2 新建一个本地的PHP项目 3 展开左侧的资源树,发现多了一个PHP的相关东西 4 右击"基础知识",新建一个PHP文件并输入以下代码 ...