Date: Fri, 1 Feb 2008 07:17:50 -0800 From: Jeremy Chadwick <koitsu@FreeBSD.org> To: Wayne Sierke <ws@au.dyndns.ws> Cc: stable@freebsd.org Subject: Re: Frequent USB mouse disconnections under load with RELENG_7 Message-ID: <20080201151750.GA62488@eos.sc1.parodius.com> In-Reply-To: <1201865411.5350.12.camel@predator-ii.buffyverse> References: <1201188590.2075.4.camel@predator-ii.buffyverse> <1201865411.5350.12.camel@predator-ii.buffyverse>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 01, 2008 at 10:00:11PM +1030, Wayne Sierke wrote: > - I've also just noticed that I'm getting these messages on startup > under 7.x: > > kernel: Starting devd. > kernel: Starting ums0 moused: > kernel: Starting default moused: > moused: unable to open /dev/ums0: Device busy > > but I can't now recall whether I was seeing those under 6.x. Has devd > changed with 7.x? I've got a feeling that I'd tried to get devd in 6.x > to handle the USB mouse on startup, but that I'd found it necessary to > configure moused explicitly (i.e. with moused_port) in rc.conf as listed > below. However my memory of it now is hazy at best. In any case, > disconnections aside, I've not noticed any change in mouse behaviour > since moving to 7.x either in console or xorg. > > moused_enable="YES" > moused_port="/dev/ums0" I think this is what's happening here: * kernel starts * usb stack loads, finds a USB mouse, attaches it to ums0 * attachment tells devd "hey, theres a /dev/ums0 device that just attached" * /etc/devd.conf automatically spawns moused, which attaches to the /dev/ums0 device * rc scripts begin * moused_enable="yes" is detected, thus moused is run manually against /dev/ums0 * moused is already running from when devd spawned it, which is why /dev/ums0 is "Device busy" I would recommend removing the moused_* stuff in your rc.conf and let devd take care of it, or, consider editing /etc/devd.conf and removing the /dev/umsX detection which runs moused. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080201151750.GA62488>