You are not logged in.

#1 2013-04-13 13:32:14

akatz712
Member
Registered: 2013-04-11
Posts: 12

USB 2.0 HUB is being treated as USB 1.1 in Linux

I bought a new USB 2.0 Hub and plugged it in, but any USB storage devices I plug into it are limited to USB 1.1 speeds.

Is there a way to force the Linux Kernel to use the 2.0 internal Hub?

Here is my lsusb:

andrew@andrew-901 ~ :( $ lsusb
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 004 Device 003: ID 8564:1000  
Bus 004 Device 004: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Bus 004 Device 005: ID 058f:6335 Alcor Micro Corp. SD/MMC Card Reader
Bus 004 Device 007: ID 05e3:0505 Genesys Logic, Inc. 
Bus 005 Device 002: ID 0b05:b700 ASUSTek Computer, Inc. Broadcom Bluetooth 2.1
Bus 001 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 045e:0752 Microsoft Corp. Wired Keyboard 400
Bus 001 Device 004: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 001 Device 005: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 006: ID 14cd:125c Super Top SD card reader
Bus 001 Device 007: ID 0d8c:000e C-Media Electronics, Inc. Audio Adapter (Planet UP-100, Genius G-Talk)

My lsusb -t

andrew@andrew-901 ~ $ lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 1: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 1: Dev 2, If 2, Class=Vendor Specific Class, Driver=, 12M
    |__ Port 1: Dev 2, If 3, Class=Application Specific Interface, Driver=, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 4: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 5: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 8: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 3: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 12M
            |__ Port 4: Dev 7, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 3, Class=Human Interface Device, Driver=cm109, 12M

Here is my message log:

andrew@andrew-901 ~ $ dmesg | grep -i usb
[    0.954592] ACPI: bus type usb registered
[    0.954734] usbcore: registered new interface driver usbfs
[    0.954796] usbcore: registered new interface driver hub
[    0.976231] usbcore: registered new device driver usb
[    0.978095] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.979961] uhci_hcd: USB Universal Host Controller Interface driver
[    0.980163] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
[    0.981899] hub 1-0:1.0: USB hub found
[    0.987577] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
[    0.989144] hub 2-0:1.0: USB hub found
[    0.989608] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
[    0.990351] hub 3-0:1.0: USB hub found
[    0.990870] ehci-pci 0000:00:1d.7: new USB bus registered, assigned bus number 4
[    1.003409] ehci-pci 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    1.004002] hub 4-0:1.0: USB hub found
[    1.016342] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    1.017058] hub 5-0:1.0: USB hub found
[    1.416757] usb 4-3: new high-speed USB device number 3 using ehci-pci
[    1.550403] Initializing USB Mass Storage driver...
[    1.551327] scsi2 : usb-storage 4-3:1.0
[    1.551901] usbcore: registered new interface driver usb-storage
[    1.551910] USB Mass Storage support registered.
[    1.650102] usb 4-4: new high-speed USB device number 4 using ehci-pci
[    1.776461] scsi3 : usb-storage 4-4:1.0
[    1.883423] usb 4-5: new high-speed USB device number 5 using ehci-pci
[    2.009245] scsi4 : usb-storage 4-5:1.0
[    2.220127] usb 4-8: new high-speed USB device number 7 using ehci-pci
[    2.986777] usb 5-1: new full-speed USB device number 2 using uhci_hcd
[    3.435748] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (05e3:0505)
[    3.510073] usb 1-2: new full-speed USB device number 2 using uhci_hcd
[    3.647827] usbcore: registered new interface driver uvcvideo
[    3.647830] USB Video Class driver (1.1.1)
[    3.684340] hub 1-2:1.0: USB hub found
[    3.965184] usb 1-2.1: new low-speed USB device number 3 using uhci_hcd
[    4.092880] usbcore: registered new interface driver btusb
[    4.165165] usb 1-2.2: new low-speed USB device number 4 using uhci_hcd
[    4.378146] usb 1-2.4: new full-speed USB device number 5 using uhci_hcd
[    4.513279] hub 1-2.4:1.0: USB hub found
[    4.622487] usbcore: registered new interface driver usbhid
[    4.622490] usbhid: USB HID core driver
[    4.656571] input: Microsoft Wired Keyboard 400 as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.1/1-2.1:1.0/input/input9
[    4.658368] hid-generic 0003:045E:0752.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboard 400] on usb-0000:00:1d.0-2.1/input0
[    4.660670] input: Microsoft  Microsoft Basic Optical Mouse v2.0  as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.2/1-2.2:1.0/input/input10
[    4.682845] hid-generic 0003:045E:00CB.0002: input,hidraw1: USB HID v1.11 Mouse [Microsoft  Microsoft Basic Optical Mouse v2.0 ] on usb-0000:00:1d.0-2.2/input0
[    4.795180] usb 1-2.4.3: new full-speed USB device number 6 using uhci_hcd
[    4.890174] usb 1-2.4.3: not running at top speed; connect to a high speed hub
[    4.919469] scsi5 : usb-storage 1-2.4.3:1.0
[    4.988146] usb 1-2.4.4: new full-speed USB device number 7 using uhci_hcd
[    5.264131] input: CM109 USB driver as /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2.4/1-2.4.4/1-2.4.4:1.3/input/input14
[    5.267787] usbcore: registered new interface driver cm109
[    5.440910] usbcore: registered new interface driver snd-usb-audio

My computer is an ASUS Eee 901

andrew@andrew-901 ~ $ uname -a
Linux andrew-901 3.8.5-1-ARCH #1 SMP PREEMPT Fri Mar 29 20:45:06 CET 2013 i686 GNU/Linux

Thank you in advance.

Offline

#2 2013-04-13 14:59:08

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 324

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

does this hub take power via the usb cable connected to you PC or does it have a power supply?

I ask because I have faced problems like this with hub that have no power supply.

also the cables have caused slower speeds for me, try using the thicker type rather than thin ones

Last edited by t0m5k1 (2013-04-13 15:01:20)


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

#3 2013-04-13 16:02:02

akatz712
Member
Registered: 2013-04-11
Posts: 12

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

t0m5k1 wrote:

does this hub take power via the usb cable connected to you PC or does it have a power supply?

I ask because I have faced problems like this with hub that have no power supply.

also the cables have caused slower speeds for me, try using the thicker type rather than thin ones

Now, it is connected without the power since I did not have one which fit.
What I want to do is Bypass or override any checks made concerning power estimates. If I have power issues, I will deal with it later.
The cable should not be an issue, since this is an official 2.0 Hub unlike my old one.

[link]http://www.amazon.com/gp/product/B007S642BW[/link]

Offline

#4 2013-04-13 16:23:04

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

Are all of the devices you are connecting to the hub high speed devices?
IIRC, you are limited to the speed of the slowest device.

Edit:  I was wrong.  Some hubs are capable of segregating a slow device.  Some are capable of segregating multiple slow devices.  Some USB 2.0 hubs do not support high speed; only full speed.

Edit2:  yours claims to be high speed.  So, I go back to  - are all the devices high speed?

Last edited by ewaller (2013-04-13 16:37:35)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2013-04-13 16:30:17

pam
Member
Registered: 2012-12-21
Posts: 27

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

Install 'palimpsest' from AUR and do a read benchmark...infact it will show you the speed for that dlink hub and SMART also for devices...


Main workstation: HP-Pavilion G6-2005ax, AMD quad core trinity APU(devastator) with 7640 HD 512 MB radeon + 7670m 1GB Gddr3 dedicated, 240 gb zalman ssd, 8GB ddr 3 1600mhz, OS: Arch 2013, Ultimate 3.4 lite, Windows 8.
Moderator at www.ultimateeditionoz.com Admin at:http://forumubuntusoftware.info

Offline

#6 2013-04-13 16:35:08

akatz712
Member
Registered: 2013-04-11
Posts: 12

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

ewaller wrote:

Are all of the devices you are connecting to the hub high speed devices?
IIRC, you are limited to the speed of the slowest device.

Edit:  I was wrong.  Some hubs are capable of segregating a slow device.  Some are capable of segregating multiple slow devices.  Some USB 2.0 hubs do not support high speed; only full speed.

The lsusb -t shows the speed of each device, as it is connected.
The message in dmesg:

[    4.890174] usb 1-2.4.3: not running at top speed; connect to a high speed hub

shows that one device is connected as 12M instead of 480M.

I also tested to connect the 7 port hub with no devices on it, and it was assigned a root bus which is 1.1

Last edited by akatz712 (2013-04-13 16:45:49)

Offline

#7 2013-04-13 16:49:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

If I read everything correctly, that was enumerated on bus 1.   Bus one is a USB 1.1 root.

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

What if you plug your drive straight into the port without the external hub?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2013-04-13 16:55:13

akatz712
Member
Registered: 2013-04-11
Posts: 12

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

pam wrote:

Install 'palimpsest' from AUR and do a read benchmark...infact it will show you the speed for that dlink hub and SMART also for devices...

That is the gnome disk utility. I have that. It is not in the AUR. The benchmark shows it running at 1.0M read and also write, for the usb device.

Offline

#9 2013-04-13 17:08:25

akatz712
Member
Registered: 2013-04-11
Posts: 12

Re: USB 2.0 HUB is being treated as USB 1.1 in Linux

ewaller wrote:

If I read everything correctly, that was enumerated on bus 1.   Bus one is a USB 1.1 root.

Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

What if you plug your drive straight into the port without the external hub?

andrew@andrew-901 /proc :( $ lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 1: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 1: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 1: Dev 2, If 2, Class=Vendor Specific Class, Driver=, 12M
    |__ Port 1: Dev 2, If 3, Class=Application Specific Interface, Driver=, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 4: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 5: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 8: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 4: Dev 7, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 1, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 7, If 3, Class=Human Interface Device, Driver=cm109, 12M

It is Bus 4 Port 4 Dev 9 - I took out what was there previously. It is 480M and the benchmark is 17.0 read, 3.3 write since it is an SDHC class 4.

So far these comments have been to get me to verify what I already knew. What I would like is someone who is an expert in the Kernel who can direct me on how to override the rules.

Offline

Board footer

Powered by FluxBB