public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22
@ 2007-09-09 17:21 Dan Johansson
  2007-09-12 16:44 ` Dan Johansson
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Johansson @ 2007-09-09 17:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

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.

-- 
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	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22
  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 ` Dan Johansson
  2007-09-12 18:58   ` Hans-Werner Hilse
  0 siblings, 1 reply; 3+ messages in thread
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	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] [OT] Problems with USB subsystem after upgrading to 2.6.22
  2007-09-12 16:44 ` Dan Johansson
@ 2007-09-12 18:58   ` Hans-Werner Hilse
  0 siblings, 0 replies; 3+ messages in thread
From: Hans-Werner Hilse @ 2007-09-12 18:58 UTC (permalink / raw
  To: gentoo-user

Hi,

On Wed, 12 Sep 2007 18:44:23 +0200
Dan Johansson <Dan.Johansson@dmj.nu> wrote:

> 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

I still admire your solution. I think it's exactly as the inventors
intended, so to speak. (/me makes note in brain on that
bConfigurationValue thingy)

-hwh

PS: Sorry for the noise, but since the "OT" was already in the subject
line ;-)
--
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-12 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` Dan Johansson
2007-09-12 18:58   ` Hans-Werner Hilse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox