From owner-freebsd-usb@FreeBSD.ORG Sun Mar 20 13:14:36 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D26AD106566B; Sun, 20 Mar 2011 13:14:36 +0000 (UTC) Date: Sun, 20 Mar 2011 13:14:36 +0000 From: Alexander Best To: Warren Block Message-ID: <20110320131436.GA46380@freebsd.org> References: <20110121182340.GA80488@freebsd.org> <86vczgts3a.fsf@gmail.com> <20110318154203.GA48923@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Anonymous , freebsd-usb@freebsd.org Subject: Re: Problem with mouse during high CPU load X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2011 13:14:36 -0000 On Fri Mar 18 11, Warren Block wrote: > On Fri, 18 Mar 2011, Alexander Best wrote: > > >On Fri Mar 18 11, Anonymous wrote: > >>Alexander Best writes: > >> > >>>i've reported this issue quite a while ago [1], but back then nobody was > >>>able > >>>to help me. i have an issue with my usb mouse. when there's a high CPU > >>>load it > >>>produces random mouse clicks. this doesn't happen on other OSes. i've > >>>attached > >>>a different usb mouse to my freebsd box and i could't observe the same > >>>behavior. so it seems this problem is only related to specific mice. > >> > >>I'm curious, can you reproduce it without moused(8), i.e. specifying > >>/dev/umsN in xorg.conf rather than /dev/sysmouse. > > > >wow that worked. :) > > > >i've set my mouse to /dev/ums0 and set Option "AllowEmptyInput" "off", > >because > >without that line i couldn't use the mouse. > > Please use Option "AutoAddDevices" "Off" if you want to disable hal > hotplugging in xorg.conf: http://www.wonkity.com/~wblock/docs/html/aei.html > > >even with very fast movements i don't get any random clicks anymore. > >although > >this a solution works for X, for the console the only way to use a mouse is > >moused(8). > > Yes, but moused is autostarted for USB mice by > moused_nondefault_enable="YES" in /etc/defaults/rc.conf. ahh. so putting moused_nondefault_enable="NO" in my rc.conf should prevent moused(8) from starting? i suspect moused(8) can't handle the amount of input that get produced by newer usb mice with a high input rate. maybe some buffer is too small. i don't think this is a usb issue. i'll take a look at moused(8) and see if i can find where the problem occurs. cheers. alex -- a13x