i7 X220 USB 3.0 not working in Linux

Linux on ThinkPads
Post Reply
Message
Author
nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

i7 X220 USB 3.0 not working in Linux

#1 Post by nxsh » Sun May 07, 2017 4:43 pm

The USB 3 port of my X220 works fine to boot from, so I gather it's working fine. But when I've actually booted into my Linux OS the port is unusable. I have it enabled in the I/O access portion of the BIOS too. Any ideas?

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#2 Post by Dekks » Sun May 07, 2017 10:21 pm

which distro? any xhci_hcd errors in dmesg or journalctl?

whats the output of lsusb?
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#3 Post by nxsh » Wed May 10, 2017 1:17 pm

Sorry for the late reply,

This is the output of lsusb:

Bus 002 Device 003: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The distro is Xubuntu and I'm fairly new to Linux so the outputs of dmesg and journalctl were a bit overwhelming, do you need to see the outputs of these also?

Thanks

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#4 Post by Dekks » Thu May 11, 2017 1:17 am

OK its a *buntu so what devices have you plugged in that don't work?

journalctl -b | grep xhci

copy and paste the above line into terminal and print output here plz.
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

alisan
Freshman Member
Posts: 75
Joined: Sun Jun 28, 2015 2:52 pm
Location: Italia, Roma

Re: i7 X220 USB 3.0 not working in Linux

#5 Post by alisan » Thu May 11, 2017 4:50 am

nxsh wrote:
Sun May 07, 2017 4:43 pm
But when I've actually booted into my Linux OS the port is unusable
What do you mean by unusable? Do you plug a pendrive and it does not get detected by the OS? According to your lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Your usb 3.0 port is correctly detected by Linux.

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#6 Post by Dekks » Thu May 11, 2017 10:16 am

alisan wrote:
Thu May 11, 2017 4:50 am
Your usb 3.0 port is correctly detected by Linux.
Yup but that has no bearing on if it's working.
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#7 Post by nxsh » Thu May 11, 2017 4:14 pm

Dekks wrote:
Thu May 11, 2017 1:17 am
OK its a *buntu so what devices have you plugged in that don't work?

journalctl -b | grep xhci

copy and paste the above line into terminal and print output here plz.
Here's the output:

May 10 17:06:01 RN-ThinkPad kernel: xhci_hcd 0000:0e:00.0: xHCI Host Controller
May 10 17:06:01 RN-ThinkPad kernel: xhci_hcd 0000:0e:00.0: new USB bus registered, assigned bus number 3
May 10 17:06:01 RN-ThinkPad kernel: xhci_hcd 0000:0e:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
May 10 17:06:01 RN-ThinkPad kernel: usb usb3: Manufacturer: Linux 4.10.0-20-generic xhci-hcd
May 10 17:06:01 RN-ThinkPad kernel: xhci_hcd 0000:0e:00.0: xHCI Host Controller
May 10 17:06:01 RN-ThinkPad kernel: xhci_hcd 0000:0e:00.0: new USB bus registered, assigned bus number 4
May 10 17:06:01 RN-ThinkPad kernel: usb usb4: Manufacturer: Linux 4.10.0-20-generic xhci-hcd

alisan
Freshman Member
Posts: 75
Joined: Sun Jun 28, 2015 2:52 pm
Location: Italia, Roma

Re: i7 X220 USB 3.0 not working in Linux

#8 Post by alisan » Thu May 11, 2017 4:45 pm

Dekks wrote:
Thu May 11, 2017 10:16 am
alisan wrote:
Thu May 11, 2017 4:50 am
Your usb 3.0 port is correctly detected by Linux.
Yup but that has no bearing on if it's working.
It does, just insert a usb device on your usb 3.0 (blue) port and run lsusb again, and you will see that it is effectively working.

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#9 Post by nxsh » Thu May 11, 2017 4:48 pm

alisan wrote:
Thu May 11, 2017 4:45 pm
Dekks wrote:
Thu May 11, 2017 10:16 am


Yup but that has no bearing on if it's working.
It does, just insert a usb device on your usb 3.0 (blue) port and run lsusb again, and you will see that it is effectively working.
Just tried that with two usb drives I know to be working, but they are still undetected by linux

alisan
Freshman Member
Posts: 75
Joined: Sun Jun 28, 2015 2:52 pm
Location: Italia, Roma

Re: i7 X220 USB 3.0 not working in Linux

#10 Post by alisan » Thu May 11, 2017 4:50 pm

nxsh wrote:
Thu May 11, 2017 4:48 pm
alisan wrote:
Thu May 11, 2017 4:45 pm


It does, just insert a usb device on your usb 3.0 (blue) port and run lsusb again, and you will see that it is effectively working.
Just tried that with two usb drives I know to be working, but they are still undetected by linux
Insert a usb device on the 3.0 port and post here lsusb, (+ lsblk if they are block devices)

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#11 Post by nxsh » Thu May 11, 2017 5:26 pm

alisan wrote:
Thu May 11, 2017 4:50 pm
nxsh wrote:
Thu May 11, 2017 4:48 pm


Just tried that with two usb drives I know to be working, but they are still undetected by linux
Insert a usb device on the 3.0 port and post here lsusb, (+ lsblk if they are block devices)
The output of lsusb even with a device inserted is the exact same as when I posted it previously, here's the output of lsblk:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 223.1G 0 part /

Here I can see it is only showing my SSD, no SDB, SDC etc. which is the whole problem, devices aren't showing or mounting when plugged into the USB 3 port

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#12 Post by Dekks » Fri May 12, 2017 3:51 am

are we talking an external drive/backup that needs power as opposed to a small flash usb drive?
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#13 Post by nxsh » Fri May 12, 2017 6:06 am

No just a flash drive, it works in both USB 2 ports

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#14 Post by Dekks » Fri May 12, 2017 6:26 am

nxsh wrote:
Fri May 12, 2017 6:06 am
No just a flash drive, it works in both USB 2 ports
From googling this issue has been reported on and off since 2014 with ubuntu and windows, fixed sometimes, sometimes not. There is a lot of chatter about early implementation of USB 3 and power feeds to the connector. See https://bugs.launchpad.net/ubuntu/+sour ... /1242321as example.

Is the BIOS patched to the latest version?

Can you boot machine without usb drive then connect drive then after a few mins run

sudo dmesg | grep -i usb
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

nxsh
Posts: 11
Joined: Sat May 06, 2017 12:28 pm
Location: Coventry, UK

Re: i7 X220 USB 3.0 not working in Linux

#15 Post by nxsh » Fri May 12, 2017 7:01 am

Dekks wrote:
Fri May 12, 2017 6:26 am
nxsh wrote:
Fri May 12, 2017 6:06 am
No just a flash drive, it works in both USB 2 ports
From googling this issue has been reported on and off since 2014 with ubuntu and windows, fixed sometimes, sometimes not. There is a lot of chatter about early implementation of USB 3 and power feeds to the connector. See https://bugs.launchpad.net/ubuntu/+sour ... /1242321as example.

Is the BIOS patched to the latest version?

Can you boot machine without usb drive then connect drive then after a few mins run

sudo dmesg | grep -i usb
BIOS is at the latest version, and I just rebooted and inserted a drive into the USB 3 port as soon as I was logged in and it mounted successfully! Unfortunately after unmounting, removing and inserting again it no longer was detected, so I'm sure the issue is just with Ubuntu. Also the link you posted is dead, do you have an updated link?

The output of 'sudo dmesg | grep -i usb' is:
[ 0.745525] ACPI: bus type USB registered
[ 0.745538] usbcore: registered new interface driver usbfs
[ 0.745544] usbcore: registered new interface driver hub
[ 0.745557] usbcore: registered new device driver usb
[ 1.365518] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.365612] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 1.383926] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 1.384012] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.384013] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.384014] usb usb1: Product: EHCI Host Controller
[ 1.384015] usb usb1: Manufacturer: Linux 4.10.0-20-generic ehci_hcd
[ 1.384016] usb usb1: SerialNumber: 0000:00:1a.0
[ 1.384207] hub 1-0:1.0: USB hub found
[ 1.384437] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 1.403919] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 1.404014] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.404015] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.404016] usb usb2: Product: EHCI Host Controller
[ 1.404017] usb usb2: Manufacturer: Linux 4.10.0-20-generic ehci_hcd
[ 1.404017] usb usb2: SerialNumber: 0000:00:1d.0
[ 1.404251] hub 2-0:1.0: USB hub found
[ 1.404395] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.404413] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.404513] xhci_hcd 0000:0e:00.0: new USB bus registered, assigned bus number 3
[ 1.404868] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.404869] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.404870] usb usb3: Product: xHCI Host Controller
[ 1.404871] usb usb3: Manufacturer: Linux 4.10.0-20-generic xhci-hcd
[ 1.404872] usb usb3: SerialNumber: 0000:0e:00.0
[ 1.405050] hub 3-0:1.0: USB hub found
[ 1.405137] xhci_hcd 0000:0e:00.0: new USB bus registered, assigned bus number 4
[ 1.408099] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.408112] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.408112] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.408113] usb usb4: Product: xHCI Host Controller
[ 1.408114] usb usb4: Manufacturer: Linux 4.10.0-20-generic xhci-hcd
[ 1.408115] usb usb4: SerialNumber: 0000:0e:00.0
[ 1.408266] hub 4-0:1.0: USB hub found
[ 1.711846] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 1.735889] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 1.860786] usb 1-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.860787] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.861092] hub 1-1:1.0: USB hub found
[ 1.884202] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.884207] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.884832] hub 2-1:1.0: USB hub found
[ 2.147932] usb 1-1.3: new full-speed USB device number 3 using ehci-pci
[ 2.258071] usb 1-1.3: New USB device found, idVendor=147e, idProduct=2016
[ 2.258073] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.258074] usb 1-1.3: Product: Biometric Coprocessor
[ 2.258075] usb 1-1.3: Manufacturer: UPEK
[ 2.335960] usb 1-1.4: new full-speed USB device number 4 using ehci-pci
[ 2.450057] usb 1-1.4: New USB device found, idVendor=0a5c, idProduct=217f
[ 2.450058] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.450059] usb 1-1.4: Product: Broadcom Bluetooth Device
[ 2.450060] usb 1-1.4: Manufacturer: Broadcom Corp
[ 2.450061] usb 1-1.4: SerialNumber: 60D819BE52B6
[ 2.528016] usb 1-1.6: new high-speed USB device number 5 using ehci-pci
[ 2.643064] usb 1-1.6: New USB device found, idVendor=04f2, idProduct=b217
[ 2.643065] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.643066] usb 1-1.6: Product: Integrated Camera
[ 2.643067] usb 1-1.6: Manufacturer: Chicony Electronics Co., Ltd.
[ 4.905062] usbcore: registered new interface driver btusb
[ 4.935202] input: Integrated Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/input/input16
[ 4.935293] usbcore: registered new interface driver uvcvideo
[ 4.935293] USB Video Class driver (1.1.1)
[ 18.713317] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 18.737128] usb 4-1: New USB device found, idVendor=0781, idProduct=5580
[ 18.737134] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 18.737137] usb 4-1: Product: Extreme
[ 18.737140] usb 4-1: Manufacturer: SanDisk
[ 18.737143] usb 4-1: SerialNumber: AA010615131121461793
[ 19.279215] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 19.279323] scsi host6: usb-storage 4-1:1.0
[ 19.279414] usbcore: registered new interface driver usb-storage
[ 19.281565] usbcore: registered new interface driver uas
[ 47.206189] usb usb4-port1: cannot disable (err = -32)
[ 47.206202] usb 4-1: USB disconnect, device number 2
[ 50.041096] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 50.065197] usb 4-1: New USB device found, idVendor=0781, idProduct=5580
[ 50.065203] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 50.065206] usb 4-1: Product: Extreme
[ 50.065209] usb 4-1: Manufacturer: SanDisk
[ 50.065212] usb 4-1: SerialNumber: AA010615131121461793
[ 50.066275] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 50.066931] scsi host6: usb-storage 4-1:1.0
[ 59.848707] usb usb4-port1: cannot disable (err = -32)
[ 59.848719] usb 4-1: USB disconnect, device number 3
[ 170.998624] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 171.022809] usb 4-1: New USB device found, idVendor=0781, idProduct=5580
[ 171.022815] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 171.022819] usb 4-1: Product: Extreme
[ 171.022822] usb 4-1: Manufacturer: SanDisk
[ 171.022824] usb 4-1: SerialNumber: AA010615131121461793
[ 171.024056] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 171.025841] scsi host6: usb-storage 4-1:1.0
[ 255.001972] usb usb4-port1: cannot disable (err = -32)
[ 255.001985] usb 4-1: USB disconnect, device number 4
[ 260.006405] usb 4-1: new SuperSpeed USB device number 5 using xhci_hcd
[ 260.030849] usb 4-1: New USB device found, idVendor=0781, idProduct=5580
[ 260.030855] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 260.030859] usb 4-1: Product: Extreme
[ 260.030862] usb 4-1: Manufacturer: SanDisk
[ 260.030864] usb 4-1: SerialNumber: AA010615131121461793
[ 260.031964] usb-storage 4-1:1.0: USB Mass Storage device detected
[ 260.032339] scsi host6: usb-storage 4-1:1.0
[ 335.884596] usb usb4-port1: cannot disable (err = -32)
[ 335.884609] usb 4-1: USB disconnect, device number 5

Dekks
Junior Member
Junior Member
Posts: 484
Joined: Thu Jun 26, 2014 9:38 am
Location: Birmingham, UK

Re: i7 X220 USB 3.0 not working in Linux

#16 Post by Dekks » Fri May 12, 2017 11:37 pm

https://bugs.launchpad.net/ubuntu/+sour ... ug/1242321

Do you have intel VT-d or VT-X enabled in BIOS? How do you have power management configured?

Plug in the drive and run lsusb -t? Could you pastebin the whole journal from the time you booted with drive plugged in.
Home Win10/i5 Arch//Openbox R61//GNOME 3 X201i/X230 Tablet //Spectrwm T61/X61/X61 Debian 9.2/X32/T60p
Work - Win7/X220T BunsenLabs/Debian 9 T43
Retired T60/X30/X31/X61S RIP T400/T21/X61T/X200T

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 5 guests