From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IVVZP-0003ku-MC for garchives@archives.gentoo.org; Wed, 12 Sep 2007 17:00:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8CGpfFd016282; Wed, 12 Sep 2007 16:51:42 GMT Received: from mail14.bluewin.ch (mail14.bluewin.ch [195.186.19.62]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8CGiaDl007159 for ; Wed, 12 Sep 2007 16:44:37 GMT Received: from dmj.nu (213.3.123.135) by mail14.bluewin.ch (Bluewin 7.3.121) id 46DFB5DB00161E95 for gentoo-user@lists.gentoo.org; Wed, 12 Sep 2007 16:44:36 +0000 Received: from queen.dmj.nu (queen.dmj.nu [192.168.1.11]) by dmj.nu with esmtp; Wed, 12 Sep 2007 18:44:35 +0200 id 0000000000003D0E.0000000046E81773.0000422B From: Dan Johansson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22 Date: Wed, 12 Sep 2007 18:44:23 +0200 User-Agent: KMail/1.9.7 References: <200709091921.09133.Dan.Johansson@dmj.nu> In-Reply-To: <200709091921.09133.Dan.Johansson@dmj.nu> X-message-flag: Using Microsoft software might be a security risk Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart18594211.kzTF0eLT7C"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200709121844.30909.Dan.Johansson@dmj.nu> X-Archives-Salt: ef510e4e-8cf7-486a-99f9-34f7f1a6d63f X-Archives-Hash: eeb8f0f8072dc92fe33bdfa58872fe53 --nextPart18594211.kzTF0eLT7C Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 09 September 2007, Dan Johansson wrote: > After upgrading to 2.6.22 one of my USB-devices stopped working "out of t= he > box". I've found a workaround (see below) to get it working. And my > question is how can I make this automatically? > > Here's the workaround: > > From dmesg: > usb 2-1: new full speed USB device using uhci_hcd and address 4 > usb 2-1: no configuration chosen from 1 choice > > > In /sys/bus/usb/devices/ I find the symlink for this device (2-1) > > /sys/bus/usb/devices/2-1# cat bNumConfigurations > 1 > /sys/bus/usb/devices/2-1# cat bConfigurationValue > > by writing a value into bConfigurationValue, I can select an active > configuration: > > /sys/bus/usb/devices/2-1# echo 1 > bConfigurationValue > /sys/bus/usb/devices/2-1# cat bConfigurationValue > 1 > > After this the device works as expected. I found myself a solution to this problem (I don't know if it's the best wa= y=20 to do it but it works for me). I added the following two files to my system: # cat /etc/udev/rules.d/00-local.rules SUBSYSTEM=3D=3D"usb", DRIVERS=3D=3D"usb",=20 ATTRS{serial}=3D=3D"2f11211b-0e00-0106-6800-0050bf7a660c", RUN+=3D"/usr/local/bin/loox.udev" # cat /usr/local/bin/loox.udev #!/bin/bash if [ ${ACTION} =3D=3D "add" ] then =A0 =A0 =A0 =A0 echo "1" > /sys/${DEVPATH}/bConfigurationValue fi =2D-=20 Dan Johansson, *************************************************** This message is printed on 100% recycled electrons! *************************************************** --nextPart18594211.kzTF0eLT7C Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG6BdnF+s3Ki+4lK0RAm2RAKCy/Dq8lrs7qSxeg1Xl/mEA0icCPQCfbBsQ cmXFfy5DQGF8RU618I59QCI= =01wA -----END PGP SIGNATURE----- --nextPart18594211.kzTF0eLT7C-- -- gentoo-user@gentoo.org mailing list