Disable Touchpad while using trackpoin on Thinkpad E430
来源:互联网 发布:修剪图片的软件 编辑:程序博客网 时间:2024/05/17 03:32
Thinkpad E430 has both a trackpoint and a touchpad. The touchpad is disable when typing. However, when I'm using the trackpoint, I often touch thetouchpad as well, and generate mouse clicks I'd like to avoid. So, I need tofind out a solution to disable touchpad while I'm using trackpoint or typing.
xinput is a utility to list available input devices, query informationabout a device and change input device settings. Here's my solution:
- From xinput list grep touchpad device name:$ xinput --list | grep -i touchpadfrom outputs, I got the device's name:
⎜ ↳ SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)]
maybe your id is not 15, but that's not matter. What we need just 'SynPS/2 Synaptics TouchPad' - write
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0
into StartUp Applications Preferences
That's all right.
But after that, I make a directory in $HOME/bin and code a shell script touchpad:
#! /bin/shPATH=/sbin:/bin:/usr/bin. /lib/lsb/init-functionsdo_start() { exec xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 1}do_stop() { exec xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0}case "$1" in start) do_start ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;;esacand make a link to /etc/init.d/touchpad, so when i need touchpad enable, I can type:
$ sudo /etc/init.d/touchpad start
or if I don't need it again:$ sudo /etc/init.d/touchpad stop
That's funny.Date: 2014-02-13 14:33:10 HKT
HTML generated by org-mode 6.33x in emacs 23
0 0
- Disable Touchpad while using trackpoin on Thinkpad E430
- FreeBSD disable touchpad
- Disable touchpad in Linux
- thinkpad touchpad useing secret
- ThinkPad E430安装Linux系统
- thinkpad E430拆装与升级
- ThinkPad E430 蓝牙驱动 BCM43142A0
- Ubuntu11.10 Dell Disable touchpad
- thinkpad t450彻底关闭touchpad
- Thinkpad E430 Broadcom wireless Device Driver
- 联想Thinkpad E430搜不到无线网络
- CentOS 无线网卡简易安装 ThinkPad E430
- thinkpad e430热键显示条不显示
- disable thinkpad keyboard NmLk
- ubuntu12.04 thinkpad的touchpad设置
- thinkpad E430 电源连接未充电的问题解决方法
- Thinkpad E430 Win8 降级到 Win7折腾记
- ubuntu 12.04 联想thinkpad e430 安装wifi驱动
- Perl哈希数组入门
- Intent匹配规则以及解析框架深入分析
- 修改 cocosbuilder 源码,在编辑完ccb文件之后 publish ,直接生成 .h , .cpp 文件
- NYOJ 371 机器人II
- Nginx 简单的负载均衡配置示例
- Disable Touchpad while using trackpoin on Thinkpad E430
- Flex effect /event
- 如何获取Android IP地址
- Java中各个集合类的作用
- Android USB Host的使用详解
- css重写input:file文件域的样式(文件域美化)
- 采用 TMySQLServer 和 TMySQLTable 访问 MySQL 数据库
- html5本地数据库示例
- CEGUI及sample编译