From owner-freebsd-stable@FreeBSD.ORG Sun Feb 26 00:40:18 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D21D16A420; Sun, 26 Feb 2006 00:40:18 +0000 (GMT) (envelope-from gpalmer@freebsd.org) Received: from noop.colo.erols.net (noop.colo.erols.net [207.96.1.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id D066343D78; Sun, 26 Feb 2006 00:40:09 +0000 (GMT) (envelope-from gpalmer@freebsd.org) Received: from uucp by noop.colo.erols.net with local-rmail (Exim 4.52 (FreeBSD)) id 1FD9xI-000EE0-PY; Sat, 25 Feb 2006 19:40:08 -0500 Received: from localhost.home.in-addr.com ([127.0.0.1]:64016) by rimmer.home.in-addr.com with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FD9pV-0008Sv-Gv; Sun, 26 Feb 2006 00:32:05 +0000 Message-ID: <4400F705.7020709@freebsd.org> Date: Sun, 26 Feb 2006 00:32:05 +0000 From: Gary Palmer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060203 X-Accept-Language: en-gb, en, en-us MIME-Version: 1.0 To: Mathieu Prevot References: <20060225230647.GA51017@scienceclue.ath.cx> In-Reply-To: <20060225230647.GA51017@scienceclue.ath.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: usbd / moused oddity 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: Sun, 26 Feb 2006 00:40:18 -0000 Mathieu Prevot wrote: >Hello, > >I remarked something I don't understand. I have a usb mouse, and if I >just have usbd_enable="YES" and moused_enable="NO" in rc.conf I can have a >functionnal mouse after boot. If I go to single-user mode from multi-user >mode and then back to multi-user mode with ^d, I don't have the process moused. >In the last case, I need to set moused_enable="YES" and moused_port="/dev/ums0". > >I use FreeBSD 6.1-PRERELEASE #32: Tue Feb 21 02:30:25 CET 2006 amd64 > > (Assuming you have up-to-date devd.conf and usbd.conf): On first boot the kernel pushes a list of devices the kernel found to devd, including your mouse which isn't attached to moused yet. devd fires up moused for your mouse and life is happy. You take the system single user, and everything is killed off (including devd, and moused). When you take the system multi-user again, devd is restarted but the kernel has already pushed the list of devices out and will only push new devices to devd, so moused will not be automatically restarted.