From owner-freebsd-stable@FreeBSD.ORG Sat Feb 2 02:10:46 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DFA616A41B for ; Sat, 2 Feb 2008 02:10:46 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id B703C13C455 for ; Sat, 2 Feb 2008 02:10:45 +0000 (UTC) (envelope-from ws@au.dyndns.ws) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAAJgo0eWZWdv/2dsb2JhbAAIkXaceg X-IronPort-AV: E=Sophos;i="4.25,293,1199626200"; d="scan'208";a="46536857" Received: from ppp103-111.static.internode.on.net (HELO [192.168.1.131]) ([150.101.103.111]) by ipmail05.adl2.internode.on.net with ESMTP; 02 Feb 2008 12:40:40 +1030 From: Wayne Sierke To: Jeremy Chadwick In-Reply-To: <20080201151750.GA62488@eos.sc1.parodius.com> References: <1201188590.2075.4.camel@predator-ii.buffyverse> <1201865411.5350.12.camel@predator-ii.buffyverse> <20080201151750.GA62488@eos.sc1.parodius.com> Content-Type: text/plain Date: Sat, 02 Feb 2008 12:40:36 +1030 Message-Id: <1201918236.5350.47.camel@predator-ii.buffyverse> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org Subject: Re: Frequent USB mouse disconnections under load with RELENG_7 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2008 02:10:46 -0000 On Fri, 2008-02-01 at 07:17 -0800, Jeremy Chadwick wrote: > 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. Yes, well that's what I figured, but over the years getting the USB mouse to work with X has required manual configuration and I don't recall ever having any kind of automatic devd-style detection work previously. The handbook only appears to deal with setting up a mouse via sysinstall and it isn't apparent to me from the text what configuration settings would be made when installing a USB mouse. However this current behaviour looks encouraging so I shall "give it a whirl" and we'll see whether removing the manual moused config from rc.conf eliminates these disconnections. Wayne