From owner-freebsd-usb@FreeBSD.ORG Fri Mar 18 12:36:46 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 8FC36106566B for ; Fri, 18 Mar 2011 12:36:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE478FC13 for ; Fri, 18 Mar 2011 12:36:45 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=wd7fLirDSts22yawIUsTeMUS9lsm8Llc0grT6RvpTjU= c=1 sm=1 a=IU0TiZmyZPMA:10 a=IpexOA1D-pIA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=BHcQoIbRF-vDWGTtfI0A:9 a=bMPEmdMvt30SFaX3gLbixEbU4NsA:4 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 101612444; Fri, 18 Mar 2011 13:36:43 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 18 Mar 2011 13:36:08 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.4.5; amd64; ; ) References: <5ecea789f7bdf4d0232f5c32de56188d@kominik.net> <201103180854.03062.hselasky@c2i.net> <60BF8D78-783F-4A63-92DA-899BE2E62CF7@kominik.net> In-Reply-To: <60BF8D78-783F-4A63-92DA-899BE2E62CF7@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="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201103181336.08086.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 12:36:46 -0000 On Friday 18 March 2011 13:16:45 Barry Kominik wrote: > On Mar 18, 2011, at 3:54 AM, Hans Petter Selasky wrote: > >> 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 > > Yes.. > > > 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 The USB descriptors look OK. Try to add: hw.usb.ums.debug="15" Into the end of /boot/loader.conf Also try: hw.usb.ugen.debug="15" Then reboot and send any errors you see in dmesg. Try: Edit /etc/rc.d/moused: Add "sleep 1" in the moused_start() function. Maybe your system is too quick to search for the character device? --HPS