Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22
Date: Wed, 12 Sep 2007 17:00:08
Message-Id: 200709121844.30909.Dan.Johansson@dmj.nu
In Reply to: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22 by Dan Johansson
1 On Sunday 09 September 2007, Dan Johansson wrote:
2 > After upgrading to 2.6.22 one of my USB-devices stopped working "out of the
3 > box". I've found a workaround (see below) to get it working. And my
4 > question is how can I make this automatically?
5 >
6 > Here's the workaround:
7 >
8 > From dmesg:
9 > usb 2-1: new full speed USB device using uhci_hcd and address 4
10 > usb 2-1: no configuration chosen from 1 choice
11 >
12 >
13 > In /sys/bus/usb/devices/ I find the symlink for this device (2-1)
14 >
15 > /sys/bus/usb/devices/2-1# cat bNumConfigurations
16 > 1
17 > /sys/bus/usb/devices/2-1# cat bConfigurationValue
18 >
19 > by writing a value into bConfigurationValue, I can select an active
20 > configuration:
21 >
22 > /sys/bus/usb/devices/2-1# echo 1 > bConfigurationValue
23 > /sys/bus/usb/devices/2-1# cat bConfigurationValue
24 > 1
25 >
26 > After this the device works as expected.
27
28 I found myself a solution to this problem (I don't know if it's the best way
29 to do it but it works for me).
30
31 I added the following two files to my system:
32
33 # cat /etc/udev/rules.d/00-local.rules
34 SUBSYSTEM=="usb", DRIVERS=="usb",
35 ATTRS{serial}=="2f11211b-0e00-0106-6800-0050bf7a660c",
36 RUN+="/usr/local/bin/loox.udev"
37
38 # cat /usr/local/bin/loox.udev
39 #!/bin/bash
40
41 if [ ${ACTION} == "add" ]
42 then
43         echo "1" > /sys/${DEVPATH}/bConfigurationValue
44 fi
45
46 --
47 Dan Johansson, <http://www.dmj.nu>
48 ***************************************************
49 This message is printed on 100% recycled electrons!
50 ***************************************************

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22 Hans-Werner Hilse <hilse@×××.de>