can i set different moused_flags for tow mice?

Dan Nelson dnelson at
Tue Mar 6 07:31:58 UTC 2007

In the last episode (Mar 06), lveax said:
> hi all
> i have tow usb mouse,one is in left,another is in right.
> i added
> moused_flags="-m 1=3 -m 3=1"
> to my /etc/rc.conf then i can use the left hand mouse.
> but it effected the tow mice.
>  391  ??  Ss     0:02.07 /usr/sbin/moused -m 1=3 -m 3=1 -p /dev/ums0 -t auto -I /var/run/
>  423  ??  Is     0:00.00 /usr/sbin/moused -m 1=3 -m 3=1 -p /dev/ums1 -t auto -I /var/run/
> how can i set the moused_flags that only effect the left mouse?

I'm guessing here since it's not clearly documented, but it looks like
you can do this:

moused_ums0_flags="-m 1=3 -m 3=1"

to give moused different flags depending on which device it's
controlling ( for usb mice, moused is launched via devd, and you can
see in /etc/devd.conf it passes the devicename to /etc/rc.d/moused ,
which then reads the appropriate rc.conf entries ).

	Dan Nelson
	dnelson at

More information about the freebsd-questions mailing list