Results 1 to 9 of 9

Thread: usb not working in 10.04

  1. #1
    Join Date
    May 2007
    Beans
    94

    usb not working in 10.04

    After upgrading to lucid my usb ports no longer work. They neither detect nor mount any usb devices.

    Here is the output of lsusb (note that I have a usb device plugged into each of my usb ports):
    Code:
    gregory@box:~$ lsusb
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    The output of dmesg | tail (again with two devices plugged in):
    Code:
    gregory@box:~$ dmesg | tail
    [ 3515.412108] usb 1-2: new high speed USB device using ehci_hcd and address 32
    [ 3515.552087] usb 1-2: device descriptor read/64, error -71
    [ 3515.796108] usb 1-2: device descriptor read/64, error -71
    [ 3516.012128] usb 1-2: new high speed USB device using ehci_hcd and address 33
    [ 3516.152116] usb 1-2: device descriptor read/64, error -71
    [ 3516.396109] usb 1-2: device descriptor read/64, error -71
    [ 3516.612352] usb 1-2: new high speed USB device using ehci_hcd and address 34
    [ 3517.036083] usb 1-2: device not accepting address 34, error -71
    [ 3517.148085] usb 1-2: new high speed USB device using ehci_hcd and address 35
    [ 3517.572077] usb 1-2: device not accepting address 35, error -71
    This seems to be a common problem but I can't seem to get any closer to a solution. Some kind of work-around or a way to manually mount devices would be greatly appreciated.

    Thanks, Greg

  2. #2
    Join Date
    Dec 2007
    Beans
    44

    Post Re: usb not working in 10.04

    Hi,

    Had a similar error trying to connect an USB memory, dmesg gave:

    Code:
    [10379.348053] usb 1-3: new high speed USB device using ehci_hcd and address 6
    [10379.432157] hub 1-0:1.0: unable to enumerate USB device on port 3
    Found after a while the following page:

    Since Karmic doesn’t use ehci_hcd as a module, modprobe -r ehci_hcd no longer works. The module is compiled into kernel. To disable it execute the following commands in terminal:

    Code:
        cd /sys/bus/pci/drivers/ehci_hcd
        ls
    You will see a file with 0000:00:xx.x format. Execute the following command:

    Code:
        echo -n “0000:00:xx.x” > unbind
    Replace the xx.x with the numbers displayed on your file. It should disable the ehci_hcd.
    Since you need to be root to run these commands (and you have the redirection above), if you try to do the following, you will fail

    Code:
    sudo echo -n “0000:00:xx.x” > unbind
    ...since sudo only applies to echo and not to unbind. Cannot remember the correct syntax for this but a simple way is to do (if you run gnome):

    Code:
    sudo gnome-terminal
    and run the command there (I know, I know, this is WRONG! ...but it works...). You could put it all in a script and sudo-run the script also of course.

    After this I could access my memory stick, but I got some weird access problems on an external USB harddrive, so I rebooted after I had the files I wanted.

    Hope this helps.

    Cheers!
    / Daniel

  3. #3
    Join Date
    May 2007
    Beans
    94

    Re: usb not working in 10.04

    I am afraid I got an error message when I tried. Did you ever come across this?

    Code:
    root@box:/sys/bus/pci/drivers/ehci_hcd# echo -n "0000:00.13.2" > unbind
    bash: echo: write error: No such device

  4. #4
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: usb not working in 10.04

    sudo apt-get update
    sudo apt-get install -f
    sudo update-pciids && update-usbids
    sudo dpkg --configure -a

  5. #5
    Join Date
    Apr 2007
    Beans
    780

    Unhappy Re: usb not working in 10.04

    Quote Originally Posted by dino99 View Post
    sudo apt-get update
    sudo apt-get install -f
    sudo update-pciids && update-usbids
    sudo dpkg --configure -a
    Tried that sequence - the third command reported this error

    Code:
    sudo update-pciids && update-usbids
    Downloaded daily snapshot dated     2010-05-10 03:15:02
    touch: cannot touch `/var/lib/usbutils/usb.ids': Permission denied
    /var/lib/usbutils/usb.ids is read-only, exiting.
    and it didn't fix the problem

  6. #6
    Join Date
    Dec 2007
    Beans
    44

    Lightbulb Re: usb not working in 10.04

    Quote Originally Posted by ubnewbie2 View Post
    Tried that sequence - the third command reported this error

    Code:
    sudo update-pciids && update-usbids
    Downloaded daily snapshot dated     2010-05-10 03:15:02
    touch: cannot touch `/var/lib/usbutils/usb.ids': Permission denied
    /var/lib/usbutils/usb.ids is read-only, exiting.
    and it didn't fix the problem
    Instead of
    Code:
    sudo update-pciids && update-usbids
    Break it up into two commands:
    Code:
    sudo update-pciids
    sudo update-usbids
    Should fix the permission denied error at least.

    Cheers!
    / Daniel

  7. #7
    Join Date
    Apr 2007
    Beans
    780

    Re: usb not working in 10.04

    Yeah it did - I see what the problem was thanks.

    Unfortunately, it didn't fix the USB enumeration problem though.

  8. #8
    Join Date
    Apr 2007
    Beans
    780

    Re: usb not working in 10.04

    Quote Originally Posted by ubnewbie2 View Post
    Yeah it did - I see what the problem was thanks.

    Unfortunately, it didn't fix the USB enumeration problem though.

    Aaah, problem solved. It wasn't good old Ubuntu's fault really. Bad firmware in the reader! I flashed it with new firmware and now it works !!!

  9. #9
    Join Date
    May 2009
    Location
    Germany
    Beans
    13
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: usb not working in 10.04

    Quote Originally Posted by GregoryMA View Post
    I am afraid I got an error message when I tried. Did you ever come across this?

    Code:
    root@box:/sys/bus/pci/drivers/ehci_hcd# echo -n "0000:00.13.2" > unbind
    bash: echo: write error: No such device
    Without quotation marks

    Code:
    root@box:/sys/bus/pci/drivers/ehci_hcd# echo -n 0000:00.13.2 > unbind
    Btw, the fix works good!
    Last edited by Bombenbach; January 17th, 2011 at 10:45 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •