RHEL 6 关闭ThinkPad e42触摸板
来源:岁月联盟
时间:2012-02-16
安装xorg-x11-apps 包:yum install xorg-x11-apps
然后:
# 屏蔽
xinput set-int-prop 12 "Device Enabled" 8 0
# 启用
xinput set-int-prop 12 "Device Enabled" 8 1
写一小命令:
01
#!/bin/bash
02
#echo "==================================="
03
#echo "============触摸板管理程序============"
04
if [ $1 == 'on' ]
05
then
06
xinput set-int-prop 12 "Device Enabled" 8 1
07
echo "触摸板开启成功!"
08
elif [ $1 == 'off' ]
09
then
10
xinput set-int-prop 12 "Device Enabled" 8 0
11
echo "触摸板关闭成功!"
12
else
13
echo "请输入参数:on/off"
14
echo "比如开启触摸板:chumoban on"
15
fi
摘自 renwofei423的博客