Comment 9 for bug 67848

Revision history for this message
Jacob Godserv (fun2program8) wrote :

As mentioned above, there's a HOWTO specifically for the WUSB54GS device (Linksys Wireless-G USB Adapter) that mentions a workaround for the WUSB54GS, but it will work for all devices.

Essentially, you add a rule into the udev system, which directly tells Linux to use configuration #1 for the device just plugged in.

Here's a summary of what you do:

1. Add this line to /etc/udev/rules.d/99-custom.rules (a new file):
BUS=="usb", SYSFS{idProduct}=="<product>", SYSFS{idVendor}=="<vendor>", RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/device/bConfigurationValue'"

2. Be absolutely certain that you replace "<vendor>" and "<product>" with the correct vendor and product HEX ID. You'll find this in lshal -l or (in Ubuntu) System -> Administration -> Device Manager.

3. Save the file, and plug in the device. (Unplug and plug in again if you've already had it plugged in.)

If you watch in your /var/log/syslog file, you'll notice that Linux says its usual "no configuration chosen", but then it says "device reset", and then finally loads the appropriate driver for the USB device.

If you did anything wrong, udev will not tell you about it. It just won't work, and everything'll act like you never added the udev rule.