Created
November 18, 2016 16:19
-
-
Save tmtm/977545bc5c2b737bb3436b4bdff13e7a to your computer and use it in GitHub Desktop.
trackpointの速度を調整して、トラックパッドを無効にする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=/sys/devices/platform/i8042 | |
SPEED=200 | |
SENSITIVITY=200 | |
modprobe -r psmouse | |
modprobe psmouse proto=any | |
while :; do | |
until [ -f $DIR/serio*/serio*/speed -a -f $DIR/serio*/serio*/sensitivity ]; do | |
sleep 1 | |
done | |
echo $SPEED > $DIR/serio*/serio*/speed | |
echo $SENSITIVITY > $DIR/serio*/serio*/sensitivity | |
if [ "$(cat $DIR/serio*/serio*/speed)" -eq $SPEED -a "$(cat $DIR/serio*/serio*/sensitivity)" -eq $SENSITIVITY ]; then | |
break | |
fi | |
done | |
modprobe -r psmouse | |
modprobe psmouse proto=bare |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment