Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 01:31:41 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        lveax <lveax.m@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: can i set different moused_flags for tow mice?
Message-ID:  <20070306073141.GF86959@dan.emsphone.com>
In-Reply-To: <576dcbc20703052249s322a593dlcaddd226d3b33816@mail.gmail.com>
References:  <576dcbc20703052249s322a593dlcaddd226d3b33816@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/moused.ums0.pid
>  423  ??  Is     0:00.00 /usr/sbin/moused -m 1=3 -m 3=1 -p /dev/ums1 -t auto -I /var/run/moused.ums1.pid
> 
> 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"
moused_ums1_flags=""

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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070306073141.GF86959>