From owner-freebsd-stable@FreeBSD.ORG Tue Oct 15 22:39:28 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 93A002E9; Tue, 15 Oct 2013 22:39:28 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4DC052D42; Tue, 15 Oct 2013 22:39:28 +0000 (UTC) Received: from glenbarber.us (c-71-224-221-174.hsd1.nj.comcast.net [71.224.221.174]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id 94D08B729; Tue, 15 Oct 2013 22:39:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 mail0.glenbarber.us 94D08B729 Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Tue, 15 Oct 2013 18:39:24 -0400 From: Glen Barber To: Florent Peterschmitt Subject: Re: changing mouse, detection problem Message-ID: <20131015223924.GR23579@glenbarber.us> References: <525DDE8B.2000405@peterschmitt.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mvzZjokS1nTZS3h1" Content-Disposition: inline In-Reply-To: <525DDE8B.2000405@peterschmitt.fr> X-Operating-System: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 22:39:28 -0000 --mvzZjokS1nTZS3h1 Content-Type: multipart/mixed; boundary="+bDoS+V4AJZnUgoC" Content-Disposition: inline --+bDoS+V4AJZnUgoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 16, 2013 at 12:32:11AM +0000, Florent Peterschmitt wrote: > Hello there, >=20 > I saw a very strange problem while using different mouses, one is HP > with only mouse and the other is a Razer Naga with mouse and keyboard > (numpad). >=20 > Then: >=20 > 1. Connect and disconnect HP mouse >=20 > Oct 16 00:29:17 yoda kernel: ums0: class 0/0, rev 2.00/1.13, addr 2> on usbus5 > Oct 16 00:29:17 yoda kernel: ums0: 3 buttons and [XYZT] coordinates ID=3D1 > Oct 16 00:29:17 yoda devd: Executing '/etc/rc.d/moused quietstart ums0' > Oct 16 00:29:20 yoda kernel: ugen5.2: at usbus5 > (disconnected) > Oct 16 00:29:20 yoda kernel: ums0: at uhub4, port 1, addr 2 (disconnected) > Oct 16 00:29:20 yoda devd: Executing '/etc/rc.d/moused stop ums0' >=20 > 2. Connect Razer mouse >=20 > Oct 16 00:29:24 yoda kernel: ugen5.2: at usbus5 > Oct 16 00:29:24 yoda kernel: ums0: 2.00/2.00, addr 2> on usbus5 > Oct 16 00:29:24 yoda kernel: ums0: error reading report description > Oct 16 00:29:24 yoda kernel: device_attach: ums0 attach returned 12 > Oct 16 00:29:24 yoda kernel: ukbd1: 2.00/2.00, addr 2> on usbus5 > Oct 16 00:29:24 yoda kernel: kbd3 at ukbd1 >=20 > Mouse is'n usable. >=20 > 3. Disconnect Razer mouse >=20 > Oct 16 00:29:27 yoda kernel: ugen5.2: at usbus5 (disconnected) > Oct 16 00:29:27 yoda kernel: ukbd1: at uhub4, port 1, addr 2 (disconnecte= d) >=20 > 4. Reconnect it >=20 > Oct 16 00:29:32 yoda kernel: ugen5.2: at usbus5 > Oct 16 00:29:32 yoda kernel: ums0: 2.00/2.00, addr 2> on usbus5 > Oct 16 00:29:32 yoda kernel: ums0: 5 buttons and [XYZ] coordinates ID=3D0 > Oct 16 00:29:32 yoda devd: Executing '/etc/rc.d/moused quietstart ums0' > Oct 16 00:29:32 yoda kernel: ukbd1: 2.00/2.00, addr 2> on usbus5 > Oct 16 00:29:32 yoda kernel: kbd3 at ukbd1 >=20 > Razer mouse is now usable. >=20 >=20 > Huh? I think I should try with another mouse than the Razer one to see > if something changes. For the moment I can't :) >=20 Can you see if this patch works? Apply to /etc/devd.conf. Glen --+bDoS+V4AJZnUgoC Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="devd.conf.diff.txt" Content-Transfer-Encoding: quoted-printable Index: etc/devd.conf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- etc/devd.conf (revision 256563) +++ etc/devd.conf (working copy) @@ -130,7 +130,7 @@ match "type" "DESTROY"; match "cdev" "ums[0-9]+"; =20 - action "/etc/rc.d/moused stop $cdev"; + action "/etc/rc.d/moused quietrestart $cdev"; }; =20 # Firmware download into the ActiveWire board. After the firmware download= is --+bDoS+V4AJZnUgoC-- --mvzZjokS1nTZS3h1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBCAAGBQJSXcQcAAoJELls3eqvi17QmAcP/Rso/5E6/Qn1JBoKCpjHhdi4 HMqKHpfAcI9vL0TP2W7PItkz8bqAExSt+3rZgG6LlRVUx5nJkiM4AtFBwiouRe7s ePoi8NSuaLeUUqQEp/qqBu4Ep4SF5MfnUWUsozm6p3JCVeSWM2f4KT2FpDGcI1Yy HITzXaY2gr3DpFhM7aQGz+d05iKV9F6WzCNMPRne/ZAYWezaniXsp1s15a2aMGGG d4Cm5R70qZ7ApOKIR6jacAFXXi/lmVBz24R0VYr/SI+0UosR0gBb9GfCS1WU3kui PIEPKKs+EvFiPn3WnmtmIQWcwoNpf10VVJMXMpIQASckM/iri6Udpnt6jLVeu3X/ 62Q3auuPAm288FgP7pabiK+VRFC92hSq0dYGjKdXyI6G1ZvNDPXixg0phWMsuWcj L2+2tcb09ozK/ovmEyB6GvENc/slLmTByMHWhMyOl5Z52YelYvE7e52roc4YKjCB AnJdFJqAa0n7QcNrwqMAyvUtISN1wQoU4ZYkKAfL+zvXuroKJh1Sf9PTBO2BheL0 e2mdRXMH26IiHn+lAZ602j4fa7zWuhtH+KphAk5as0DkeOw2YnuK4x4wGqxJTeNi OJliARHMZD/k5sz0mvyJBRDwRZjaehx26SZ0t7ues1HvBIMLGihncJmDodcijRz0 9GGSUKNb6Zz2T27A2OHI =4mco -----END PGP SIGNATURE----- --mvzZjokS1nTZS3h1--