Only very few usb ports are working

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
iffuw

Only very few usb ports are working

Post by iffuw »

Hi,

i've just installed Linux Mint 18.3 and up to now it works quite well (besides an issue with the wireless lan but im working on that).
Unfortunately i've just noticed, that only very few of my usb ports are working.
Here is my basic system info:
System: Host: seppoPCL Kernel: 4.13.0-37-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18.3 Sylvia
Machine: System: ECT product: N/A
Mobo: Gigabyte model: 970A-UD3P
Bios: American Megatrends v: FB date: 06/01/2015
CPU: Octa core AMD FX-8320E Eight-Core (-MCP-) cache: 16384 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 51436
clock speeds: max: 3200 MHz 1: 1400 MHz 2: 1400 MHz 3: 1400 MHz
4: 1400 MHz 5: 1400 MHz 6: 1400 MHz 7: 1400 MHz 8: 1400 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Tonga PRO [Radeon R9 285/380]
bus-ID: 01:00.0
Display Server: X.Org 1.18.4 drivers: ati,amdgpu (unloaded: fbdev,vesa,radeon)
Resolution: 1920x1080@60.00hz
GLX Renderer: AMD Radeon R9 380 Series (AMD TONGA / DRM 3.18.0 / 4.13.0-37-generic, LLVM 5.0.0)
GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes
Audio: Card-1 Advanced Micro Devices [AMD/ATI] Tonga HDMI Audio [Radeon R9 285/380]
driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA)
driver: snd_hda_intel bus-ID: 00:14.2
Sound: Advanced Linux Sound Architecture v: k4.13.0-37-generic
Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Card-2: Qualcomm Atheros AR9227 Wireless Network Adapter
driver: ath9k bus-ID: 04:07.0
IF: wlp4s7 state: down mac: <filter>
Drives: HDD Total Size: 1120.2GB (2.1% used)
ID-1: /dev/sda model: Samsung_SSD_850 size: 120.0GB temp: 0C
ID-2: /dev/sdb model: ST1000DM003 size: 1000.2GB temp: 24C
Partition: ID-1: / size: 166G used: 7.0G (5%) fs: ext4 dev: /dev/sdb3
ID-2: swap-1 size: 17.14GB used: 0.00GB (0%) fs: swap dev: /dev/sdb4
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 10.2C mobo: N/A gpu: 46.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 228 Uptime: 12 min Memory: 1079.5/16072.1MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35

If further info is needed, i'll gladly provide it.

Thanks in advance!
ClixTrix

Re: Only very few usb ports are working

Post by ClixTrix »

Please run the following commands from Terminal and post back the results.

Code: Select all

lsusb -t

Code: Select all

dmesg | grep usb
Which specific ports aren't working (front/rear/USB 2/3)?
iffuw

Re: Only very few usb ports are working

Post by iffuw »

Hi,

tanks for the quick reply.
The not working ports are front ports as well as ports on the back of the tower.
Afaik they are all USB2.0.
Here is the output:
lsusb -t:
/: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/2p, 12M
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/5p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/5p, 480M
dmesg | grep usb:
[ 0.125302] usbcore: registered new interface driver usbfs
[ 0.125302] usbcore: registered new interface driver hub
[ 0.125302] usbcore: registered new device driver usb
[ 1.252146] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.252148] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.252149] usb usb1: Product: EHCI Host Controller
[ 1.252150] usb usb1: Manufacturer: Linux 4.13.0-37-generic ehci_hcd
[ 1.252151] usb usb1: SerialNumber: 0000:00:12.2
[ 1.268131] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.268133] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.268134] usb usb2: Product: EHCI Host Controller
[ 1.268135] usb usb2: Manufacturer: Linux 4.13.0-37-generic ehci_hcd
[ 1.268136] usb usb2: SerialNumber: 0000:00:13.2
[ 1.284136] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.284138] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.284139] usb usb3: Product: EHCI Host Controller
[ 1.284140] usb usb3: Manufacturer: Linux 4.13.0-37-generic ehci_hcd
[ 1.284141] usb usb3: SerialNumber: 0000:00:16.2
[ 1.348112] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.348114] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.348115] usb usb4: Product: OHCI PCI host controller
[ 1.348116] usb usb4: Manufacturer: Linux 4.13.0-37-generic ohci_hcd
[ 1.348117] usb usb4: SerialNumber: 0000:00:12.0
[ 1.412127] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.412129] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.412130] usb usb5: Product: OHCI PCI host controller
[ 1.412131] usb usb5: Manufacturer: Linux 4.13.0-37-generic ohci_hcd
[ 1.412132] usb usb5: SerialNumber: 0000:00:13.0
[ 1.476137] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.476139] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.476140] usb usb6: Product: OHCI PCI host controller
[ 1.476141] usb usb6: Manufacturer: Linux 4.13.0-37-generic ohci_hcd
[ 1.476142] usb usb6: SerialNumber: 0000:00:14.5
[ 1.540158] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.540160] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.540161] usb usb7: Product: OHCI PCI host controller
[ 1.540162] usb usb7: Manufacturer: Linux 4.13.0-37-generic ohci_hcd
[ 1.540163] usb usb7: SerialNumber: 0000:00:16.0
[ 1.540786] usb usb8: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.540788] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.540789] usb usb8: Product: xHCI Host Controller
[ 1.540790] usb usb8: Manufacturer: Linux 4.13.0-37-generic xhci-hcd
[ 1.540791] usb usb8: SerialNumber: 0000:02:00.0
[ 1.540958] usb usb9: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.540977] usb usb9: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.540979] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.540980] usb usb9: Product: xHCI Host Controller
[ 1.540981] usb usb9: Manufacturer: Linux 4.13.0-37-generic xhci-hcd
[ 1.540982] usb usb9: SerialNumber: 0000:02:00.0
[ 1.596024] usb 2-3: new high-speed USB device number 2 using ehci-pci
[ 1.720105] usb 2-3: device descriptor read/64, error -32
[ 1.868104] usb 8-1: new high-speed USB device number 2 using xhci_hcd
[ 1.948081] usb 2-3: device descriptor read/64, error -32
[ 2.009502] usb 8-1: New USB device found, idVendor=2109, idProduct=3431
[ 2.009504] usb 8-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.009505] usb 8-1: Product: USB2.0 Hub
[ 2.176106] usb 2-3: new high-speed USB device number 3 using ehci-pci
[ 2.296110] usb 2-3: device descriptor read/64, error -32
[ 2.304104] usb 8-1.1: new low-speed USB device number 3 using xhci_hcd
[ 2.418065] usb 8-1.1: New USB device found, idVendor=046d, idProduct=c31f
[ 2.418067] usb 8-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.418068] usb 8-1.1: Product: USB Keyboard
[ 2.418069] usb 8-1.1: Manufacturer: Logitech
[ 2.436458] usbcore: registered new interface driver usbhid
[ 2.436459] usbhid: USB HID core driver
[ 2.438020] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1.1/8-1.1:1.0/0003:046D:C31F.0001/input/input2
[ 2.496220] hid-generic 0003:046D:C31F.0001: input,hidraw0: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-0000:02:00.0-1.1/input0
[ 2.496447] input: Logitech USB Keyboard as /devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1.1/8-1.1:1.1/0003:046D:C31F.0002/input/input3
[ 2.508120] usb 8-1.2: new full-speed USB device number 4 using xhci_hcd
[ 2.524128] usb 2-3: device descriptor read/64, error -32
[ 2.556383] hid-generic 0003:046D:C31F.0002: input,hiddev0,hidraw1: USB HID v1.10 Device [Logitech USB Keyboard] on usb-0000:02:00.0-1.1/input1
[ 2.616202] usb 8-1.2: New USB device found, idVendor=046d, idProduct=c52b
[ 2.616207] usb 8-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.616210] usb 8-1.2: Product: USB Receiver
[ 2.616213] usb 8-1.2: Manufacturer: Logitech
[ 2.635434] logitech-djreceiver 0003:046D:C52B.0005: hiddev1,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:02:00.0-1.2/input2
[ 2.752122] usb 2-3: new high-speed USB device number 4 using ehci-pci
[ 2.766671] input: Logitech MX Anywhere 2 as /devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb8/8-1/8-1.2/8-1.2:1.2/0003:046D:C52B.0005/0003:046D:404A.0006/input/input4
[ 2.766786] logitech-hidpp-device 0003:046D:404A.0006: input,hidraw3: USB HID v1.11 Keyboard [Logitech MX Anywhere 2] on usb-0000:02:00.0-1.2:1
[ 3.168117] usb 2-3: device not accepting address 4, error -32
[ 3.288116] usb 2-3: new high-speed USB device number 5 using ehci-pci
[ 3.704113] usb 2-3: device not accepting address 5, error -32
[ 3.704144] usb usb2-port3: unable to enumerate USB device
[ 4.064032] usb 5-3: new full-speed USB device number 2 using ohci-pci
[ 4.216121] usb 5-3: device descriptor read/64, error -32
[ 4.476104] usb 5-3: device descriptor read/64, error -32
[ 4.760119] usb 5-3: new full-speed USB device number 3 using ohci-pci
[ 4.912104] usb 5-3: device descriptor read/64, error -32
[ 5.172118] usb 5-3: device descriptor read/64, error -32
[ 5.428117] usb 5-3: new full-speed USB device number 4 using ohci-pci
[ 5.844110] usb 5-3: device not accepting address 4, error -32
[ 5.992121] usb 5-3: new full-speed USB device number 5 using ohci-pci
[ 6.408110] usb 5-3: device not accepting address 5, error -32
[ 6.408154] usb usb5-port3: unable to enumerate USB device
[ 13.510413] audit: type=1400 audit(1521213283.447:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ippusbxd" pid=1003 comm="apparmor_parser"
ClixTrix

Re: Only very few usb ports are working

Post by ClixTrix »

Couple of errors/info of note.

device descriptor read/64, error -32

We don't know the algorithms for LPM for this host, disabling LPM. <-- LPM is Link Power Management

My first guess is the add-on USB items are attempting to pull too much power from the onboard Hubs, i.e. exceeding power limits. That's possible.

However, it could also be a defective USB device/hardware, e.g. dead short. I've also seen some problems reported with VIA chipset USB controllers, and I think your board has same. Might be fixes for that.

Have you tried testing (plug-in/out) one device at a time on a fresh boot to see if any specific device fails? Testing on another system is also a good way to check.

If it is a power limit problem, an external powered USB hub is a good workaround.
iffuw

Re: Only very few usb ports are working

Post by iffuw »

Hi,
I am currently running my Linux Mint in a dual boot with Windows 10.
When running Windows, all USB ports are working properly, so I don't think it's an hardware issue.
Currently only a wireless mouse and a wired keyboard are plugged. There are 11 unused slots, and only one of them
(the only usb 3.0) is working.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Only very few usb ports are working

Post by catweazel »

iffuw wrote: Sat Mar 17, 2018 4:02 am Hi,
I am currently running my Linux Mint in a dual boot with Windows 10.
When running Windows, all USB ports are working properly, so I don't think it's an hardware issue.
Currently only a wireless mouse and a wired keyboard are plugged. There are 11 unused slots, and only one of them
(the only usb 3.0) is working.
Check your BIOS for XHCI hand-off and enable it.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
iffuw

Re: Only very few usb ports are working

Post by iffuw »

Thanks for the tip, but the XHCI hand-off was enabled...
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Only very few usb ports are working

Post by catweazel »

iffuw wrote: Sat Mar 17, 2018 5:33 am Thanks for the tip, but the XHCI hand-off was enabled...
Ok, well, my next suggestion is to update your BIOS. You don't have the latest version installed.

After that, try a different kernel. Perhaps the newest 4.10 or 4.4. You will probably have to get to the grub menu by holding down the shift key during boot. If you haven't done this before it can be a bit tricky to catch. If the shift key doesn't work, Esc should. Once you get to the grub menu, select the older kernel. You'll have to do it this way because grub will, by default, start the latest kernel.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Only very few usb ports are working

Post by thx-1138 »

iffuw wrote: Sat Mar 17, 2018 5:33 am Thanks for the tip, but the XHCI hand-off was enabled...
...out of curiosity, is IOMMU available / enabled in your BIOS?
You might wanna have a look here...

Similar Gigabyte-related thoughts & suggestions here & here...
iffuw

Re: Only very few usb ports are working

Post by iffuw »

Thank you very much guys!
The links from thx-1138 resolved this and another problem concerning the WLAN.
The solution was:
- enable XHCI hands-off
- enable EHCI hands-off
- endable IOMMU controller
all in the UEFI.
Furthermore:
in /etc/default/grub
Add the line:
GRUB_CMDLINE_LINUX="iommu=soft"
Save, rebuild grub config with
sudo update-grub.

No everything works fine!
Tanks again!
Locked

Return to “Hardware Support”