[ltp] Disabling moving/tapping touchpad but leave scrolling?
Jiang Qian
linux-thinkpad@linux-thinkpad.org
Fri, 21 Jul 2006 13:37:54 -0400
On Fri, Jul 21, 2006 at 03:23:10PM +0300, Teemu Nikkil=E4 wrote:
> Hi, maybe synclient and syndaemon are what you are looking for:
>=20
> On Thursday, 20. July 2006 00:53, Paul RIVIER wrote:
> > Well, now what I would really like in a kind of smart driver for the
> > touchpad doing :
> > - If anything is happening on the keyboard or the trackpoint, deactivate
> > touchpad (I have heard that already exist)
>=20
> $ syndaemon -h
> syndaemon: invalid option -- h
> Usage: syndaemon [-i idle-time] [-d]
> -i How many seconds to wait after the last key press before
> enabling the touchpad. (default is 2.0s)
> -d Start as a daemon, ie in the background.
> -p Create a pid file with the specified name.
> -t Only disable tapping, not mouse movements.
>=20
> > - Configurable movements / action bindings, typically : move from left
> > to right go to workspace right; move up/down scrolls. And why not if
> > possible, fancy gesture recognition, like 'Z' closes the windows,
> > although I believe only straightforward moves can be really useful.
>=20
> To disable all but scrolling:
>=20
> $ synclient MinSpeed=3D0 MaxSpeed=3D0 TapButton1=3D0 TapButton2=3D0 TapBu=
tton3=3D0
>=20
> To re-enable touchpad:
>=20
> $ synclient MinSpeed=3D0.09 MaxSpeed=3D0.18 TapButton1=3D1 TapButton2=3D2=
TapButton3=3D3
>=20
> -Teemu
Thanks. Exactly what I need. Here's a crude shell script I use to turn=20
it on/off:
#!/bin/bash
case "$1" in
off)
echo "starting syndaemon";
syndaemon -d;
echo "setting the values";
synclient MinSpeed=3D0 MaxSpeed=3D0 TapButton1=3D0 TapButton2=3D0=20
TapButton3=3D0
echo "stop syndaemon";
killall syndaemon;
exit 0
;;
on)
echo "starting syndaemon";
syndaemon -d;
echo "setting the values";
synclient MinSpeed=3D0.02 MaxSpeed=3D0.18 TapButton1=3D1 TapButton2=3D2=
=20
TapButton3=3D3 echo "stop syndaemon";
killall syndaemon;
exit 0
;;
*)
echo "Usage: $0 {on|off}" >&2
exit 1
;;
esac
Jiang
> --=20
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad