From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 07:54:42 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C349A106566B for ; Fri, 18 Mar 2011 07:54:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 56A218FC08 for ; Fri, 18 Mar 2011 07:54:40 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=upTJuTb3ngPPUUVVSPoyO7jwIWz3rzPtkQxI490l6Ks= c=1 sm=1 a=IU0TiZmyZPMA:10 a=IpexOA1D-pIA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=K-TutmVaGgv6KgT5QH8A:9 a=GXISeLxDu0lnY1-rUwGIAQtrYAoA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 100759315; Fri, 18 Mar 2011 08:54:39 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 18 Mar 2011 08:54:03 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103171844.49751.hselasky@c2i.net> <4D82B2E6.3050808@kominik.net> In-Reply-To: <4D82B2E6.3050808@kominik.net> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103180854.03062.hselasky@c2i.net> Cc: Subject: Re: USB Mouse - only works after being replugged in 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: Fri, 18 Mar 2011 07:54:42 -0000 > Hi, > the usbconfig reset fixes the issue. Is there a way I can make this > happen on boot? > > #ps auxw|grep -i moused > root 2743 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > -i moused > #usbconfig -d 4.2 reset > #ps auxw|grep -i moused > root 2843 0.6 0.0 8072 1076 ?? Ss 9:10PM 0:00.13 > /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pi > root 2895 0.0 0.0 9124 1444 0 S+ 9:10PM 0:00.01 grep > -i moused Do you have moused_enable="YES" in your /etc/rc.conf The moused should be started by devd. Could you dump the descriptors using commands "dump_curr_config_desc dump_device_desc" before the device is reset? Try to run: /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid Before device reset. Maybe there is an error code. --HPS