Re: logitec usb wireless mouse

From: Joe Kelsey <joe_at_zircon.seattle.wa.us>
Date: Sat, 05 Feb 2005 14:30:22 -0800
On Sat, 2005-02-05 at 14:11 -0800, Randy Bush wrote:
> > moused_enable="NO"
> 
> hmmm.  i use moused all the time, as i switch back and forth from
> touchpad to usb.

You can have as many moused processes running at once as you want.

> ahhhh.  usbd is running moused for you.  i hacked /etc/usbd.conf to
> have
> 
>     device "Mouse"
>         devname "ums[0-9]+"
> 	attach "/usr/bin/killall moused; /usr/sbin/moused -p /dev/ums0 -t auto; /usr/sbin/vidcontrol -m on"
> 	detach "/usr/bin/killall moused; /usr/sbin/moused -p /dev/psm0 -t auto; /usr/sbin/vidcontrol -m on"
>     device "Logitech Cordless Keyboard"
>         devname "ukbd0"
>         attach "/usr/sbin/kbdcontrol -k /dev/kbd1 < /dev/console"
>         detach "/usr/sbin/kbdcontrol -k /dev/kbd0 < /dev/console"
> 
> this switches back and forth between the built-in keyboard and the
> usb keyboard brilliantly.  but the mouse has a will of its own.

This is really ridiculous.

Leave all of the moused processes running at the same time.  You can
then use whichever mouse you want and /dev/sysmouse will multiplex them
together.  You can even use them all at the same time if you want.
There is never any need to kill one moused, simply leave them all
running.  /dev/sysmouse multiplexes!  I have done this when I first
plugged in my usb mouse.  I left my ps2 mouse plugged in and alternated
mice until the usb mouse worked reliably.  Eventually, I changed rc.conf
to disable the ps2 mouse and eventually unplugged it.

The only reason to hack usbd.conf is if you want to add arguments to
moused, like I have for setting up left-handed buttons.

/Joe
Received on Sat Feb 05 2005 - 21:28:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC