You are not logged in.

#1 2009-07-13 14:54:16

mrcold
Member
Registered: 2008-01-24
Posts: 150

disable the mouse temporarily

I use a laptop and I would really like to be able to disable the touchpad using a keyboard shortcut or something.  I have seen ways to disable it completely, and I could just disable tapping and the scrollbar, but i would really just like to press the windows key or something to turn it off or on.
I am using Xmonad and Openbox (not at the same time smile) so i can figure out the shortcut part, if someone could point me toward how someone can disable the mouse.

Thanks

Offline

#2 2009-07-13 15:16:30

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: disable the mouse temporarily

check synclient, handles the touchpad through the command line...

Offline

#3 2009-07-13 15:46:10

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: disable the mouse temporarily

So don't try 'rmmod psmouse' and 'modprobe psmouse'. I tested it and the former works, but the latter doesn't and it also mucks up your keyboard... I had to do a cold reboot.

Dusty

Offline

#4 2009-07-13 15:52:18

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: disable the mouse temporarily

ok.. that looks like what i want, but I can't get it to work. I've looked at this page: http://linux.die.net/man/1/synclient

when i try to change one of the parameters, nothing happens.  It appears to have worked, but when i list the settings (synclient -hl) nothing has changed, and the behavior of the touchpad remains the same.

what should i do?

Offline

#5 2009-07-13 17:19:09

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: disable the mouse temporarily

you need to configure xorg to work with it.... http://wiki.archlinux.org/index.php/Touchpad_Synaptics

Offline

#6 2009-07-13 19:28:50

Thor
Member
Registered: 2007-05-03
Posts: 15

Re: disable the mouse temporarily

I use this:

#!/bin/bash
salida=$(lsmod | grep psmouse | cut -d" " -f1)

[[ "$salida" == "psmouse" ]] && sudo modprobe -r psmouse || sudo modprobe psmouse

and works fine for me.

Offline

#7 2009-07-13 21:42:57

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: disable the mouse temporarily

mrcold wrote:

ok.. that looks like what i want, but I can't get it to work. I've looked at this page: http://linux.die.net/man/1/synclient

when i try to change one of the parameters, nothing happens.  It appears to have worked, but when i list the settings (synclient -hl) nothing has changed, and the behavior of the touchpad remains the same.

what should i do?

in your ~/.xinitrc:

syndaemon -i 2 &

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB