From: Dan Johansson <Dan.Johansson@dmj.nu>
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 [thread overview]
Message-ID: <200709121844.30909.Dan.Johansson@dmj.nu> (raw)
In-Reply-To: <200709091921.09133.Dan.Johansson@dmj.nu>
[-- 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 --]
next prev parent reply other threads:[~2007-09-12 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-09-12 18:58 ` Hans-Werner Hilse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709121844.30909.Dan.Johansson@dmj.nu \
--to=dan.johansson@dmj.nu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox