* Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22
@ 2007-09-12 16:44 99% ` Dan Johansson
0 siblings, 0 replies; 1+ results
From: Dan Johansson @ 2007-09-12 16:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]
On Sunday 09 September 2007, Dan Johansson wrote:
> After upgrading to 2.6.22 one of my USB-devices stopped working "out of the
> 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 way
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=="usb", DRIVERS=="usb",
ATTRS{serial}=="2f11211b-0e00-0106-6800-0050bf7a660c",
RUN+="/usr/local/bin/loox.udev"
# cat /usr/local/bin/loox.udev
#!/bin/bash
if [ ${ACTION} == "add" ]
then
echo "1" > /sys/${DEVPATH}/bConfigurationValue
fi
--
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-09-09 17:21 [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22 Dan Johansson
2007-09-12 16:44 99% ` Dan Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox