From owner-freebsd-current@FreeBSD.ORG Mon Nov 28 20:14:31 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC1BF16A422 for ; Mon, 28 Nov 2005 20:14:31 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD2D343D77 for ; Mon, 28 Nov 2005 20:14:15 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so2180277wxc for ; Mon, 28 Nov 2005 12:14:11 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r24N8k86DVBchSP6JkqWrPP6pORIw2yoGqKZom++0iGgv3obS/CGRcFBy8mdjnzh3PQpxn2lRMQrpjShSoGPCPFUaFfVWP9IQKuCbDAKb8idK7ZAEq1robyPR6fQCm1KrTPHbIOiCxN74N4SpRxfbWpJbfCZBjHPfln0ct1rBCU= Received: by 10.70.60.12 with SMTP id i12mr984730wxa; Mon, 28 Nov 2005 12:14:11 -0800 (PST) Received: by 10.70.31.5 with HTTP; Mon, 28 Nov 2005 12:14:11 -0800 (PST) Message-ID: <790a9fff0511281214h64d4dc95k2ecfca0a30da5b8d@mail.gmail.com> Date: Mon, 28 Nov 2005 14:14:11 -0600 From: Scot Hetzel To: "Justin R. Smith" In-Reply-To: <4388E376.5010605@drexel.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4388E376.5010605@drexel.edu> Cc: freebsd-current@freebsd.org Subject: Re: A4Tech mouse problem solved (but strangely!) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 20:14:32 -0000 On 11/26/05, Justin R. Smith wrote: > I had a problem with the mouse wheel being detected on my wireless > A4Tech mouse. It is supposed to emulate a generic Intellimouse. > > The solution is to run moused with NO type parameter. A parameter of > "auto" or "ps/2" or "microsoft" won't work. You must have a command line = of: > > /usr/sbin/moused -p /dev/psm0 > > (with NO -t parameter) > Unfortunately, one cannot use the automatic scripts in rc.conf to do > this because they always use a parameter and fill in "microsoft" if one > leaves the mouse type blank. > Make the following changes to /etc/rc.d/moused Add this if statement before "echo -n "Starting ${ms} moused:" : fi if "${mytype}" =3D=3D "NONE" ; then mytype=3D"" fi echo -n "Starting ${ms} moused:" : Then change: /usr/sbin/moused ${myflags} -p ${myport} -t ${mytype} ${_pidarg} to /usr/sbin/moused ${myflags} -p ${myport} ${mytype:+-t} ${mytype} ${_pidarg} Now add to /etc/rc.conf: moused_psm0_type=3D"NONE" or moused_type=3D"NONE" ${mytype:+-t} will modify the commands flags only, when ${mytype} is unset or null, null is substituted; otherwise -t substituted. I haven't checked if this works, but if you could make the changes, verify that it works for you and submit a PR with the patch. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.