Hub USB max current only 100 mA .. usb drive slow

aug7744

Member
Joined
Aug 12, 2020
Messages
117
Reaction score
14
Credits
1,232
Hello.
Thanks for reading my topic.
Here Lubuntu 24.04.1 and mainboard USB 2.0 SB710.
Trying use an generic USB hub model Lehmox USB 2.0 4 ports.
Have devices not power on and only pen drive works extremely slow.
Using hardinfo is showed that usb hub as being

Product Hub
Vendor Unknown Manufacturer
Max Current 100 mA

USB Version 2.00
Class (Unknown)
Vendor ID 0xa05
Product ID 0x7211
Bus 5

and using
sudo lsusb

Bus 005 Device 002: ID 0a05:7211 Unknown Manufacturer hub

If connecting another usb device in same port used by that usb hub the max current is correctly 500 mA.

Possibly in detail 100 mA is the explanation because not power on all devices and usb pen drives works slow.
The OS or Kernel are limiting the max current to only 100 mA. Pen drive and others devices need minimum 500 mA.
Ubuntu or Linux has any configuration doing that issue ? Is possible configure an setting for current to be 500 mA to that usb hub ?
How fix it ?

Have an nice week.
 


The power definetely affects speed. I reckon it is a passive USB hub, so it has no external power supply. First, the hub electronic needs power itself, second it may (my speculation) split power to 4 ports of 100 mA each. I'd say that is sound, because it should make sure devices cannot overload the mother USB port.
What you can do is open a terminal and run
Code:
sudo dmesg -W
and plug in the hub without a pen drive, then insert the pen drive, unplug both and plug in the same pen drive alone. The output will show how kernel recognises both and maybe give hints.
 
USB hubs are generally slow, especially, if they draw power from the motherboard. I used to use one but then I discovered uploading to usb devices (phone included) was 4-5 times slower (+ the longer the cable - the slower the speed), so I decided to stick to the traditional connection - no "middlemen".
 
terminal command
sudo dmesg -W
then plugging pen drive

[ 9829.996905] usb 5-3.3: new full-speed USB device number 3 using ohci-pci
[ 9830.093982] usb 5-3.3: not running at top speed; connect to a high speed hub
[ 9830.105992] usb 5-3.3: New USB device found, idVendor=0930, idProduct=6544, bcdDevice= 1.00
[ 9830.106012] usb 5-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9830.106021] usb 5-3.3: Product: DT 101 G2
[ 9830.106028] usb 5-3.3: Manufacturer: Kingston
[ 9830.106034] usb 5-3.3: SerialNumber: 002481CB9501CC9189562793
[ 9830.734526] usb-storage 5-3.3:1.0: USB Mass Storage device detected
[ 9830.735570] scsi host7: usb-storage 5-3.3:1.0
[ 9830.735937] usbcore: registered new interface driver usb-storage
[ 9830.745650] usbcore: registered new interface driver uas
[ 9831.797159] scsi 7:0:0:0: Direct-Access Kingston DT 101 G2 1.00 PQ: 0 ANSI: 4
[ 9831.797847] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 9831.813155] sd 7:0:0:0: [sdc] 15148608 512-byte logical blocks: (7.76 GB/7.22 GiB)
[ 9831.819135] sd 7:0:0:0: [sdc] Write Protect is off
[ 9831.819152] sd 7:0:0:0: [sdc] Mode Sense: 45 00 00 00
[ 9831.825134] sd 7:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 9831.880172] sdc: sdc1 sdc2 sdc3
[ 9831.880760] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 9836.457553] EXT4-fs (sdc3): mounting ext2 file system using the ext4 subsystem
[ 9836.646983] EXT4-fs (sdc3): mounted filesystem 4babb192-e7aa-4597-b037-b1229233cad6 r/w without journal. Quota mode: none.

then unplug pen drive

[10604.295855] usb 5-3.3: USB disconnect, device number 3
[10604.299486] EXT4-fs (sdc3): shut down requested (2)
[10604.389727] EXT4-fs (sdc3): unmounting filesystem 4babb192-e7aa-4597-b037-b1229233cad6.
[10604.390086] Buffer I/O error on dev sdc3, logical block 0, lost sync page write
[10604.390105] EXT4-fs (sdc3): I/O error while writing superblock

not any information related with max power current.

Have any command to allow Hub USB used in PC to current to be 500 mA ?
 
No, there may be kernel quirks for it, but I would advise you to not try to manipulate power. It is totally possible to overload the mainboard chip trying to do so, because you can't define usb hub port1 500mA, usb hub ports 2-4 0mA. The chip won't spit errors, but just burn and you can scrap the mainboard.
[ 9830.093982] usb 5-3.3: not running at top speed; connect to a high speed hub
See, here it says. Now plug in the pen alone, without hub and see, what message appears then.
 


Follow Linux.org

Staff online

Members online


Top