Fedora 15 触控板脚本

lenovo的本本一般都有Fn+Fx的热键来进一些切换,我的其它的都能用,像关无线,调声音,调亮度,可是禁用启用触控板的就是不起作用,上网搜了下,也有人有同样的问题,还有人给了个脚本,自己改了下,如下
[bash]
#!/bin/bash

LOCK_FILE=/tmp/synaptics.lock

if [ -e $LOCK_FILE ]
then
xinput –set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1
rm -f $LOCK_FILE
else
touch $LOCK_FILE
xinput –set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 0
fi
[/bash]

参考:

http://www.linuxsir.org/bbs/thread380662.html

http://my.oschina.net/nul/blog/29236

One thought on “Fedora 15 触控板脚本

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>