On Tue, 2006-04-11 at 21:55 +0200, Jarry wrote:
> Hi,
> 
> I have following problem: with my notebook I am mostly
> using usb-mouse, but sometimes I'm too lazy to pull it out
> of bag (or I forget to take it), and in such a case I must
> use Synaptics Touchpad.

> Is it possible to configure gpm so, that if usb-mouse is
> attached, then only mouse can be used as pointing device?
> And if no mouse is found, then (and only then) touchpad
> works?

I have wanted to do this for aaages, but I always thought it was
impossible - until I noticed I have:
/dev/input/mice
/dev/input/mouse0
/dev/input/mouse1
/dev/input/mouse2

If I `cat /dev/input/mice` I get output when I move either my stick
(yeuch), touchpad, or usb mouse.

However, mouse0 only gives output for the stick, mouse1 for the
touchpad, and mouse2 for the usb mouse.

Perhaps this is the answer - you might need to change MOUSEDEV
in /etc/conf.d/gpm depending on what you have plugged in.  For X, you
would have to change Option "Device" from "/dev/input/mice" to a
specific /dev/input/mouseX.

I don't know how to do this automatically, nor how to make X use a
different mouse without restarting...

Hope this helps you on the way though.
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

<<<<< EVACUATION ROUTE <<<<<

-- 
gentoo-user@gentoo.org mailing list

Reply via email to