Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 2:58 pm    Post subject: USB problem Reply with quote

Hi,

Recently I installed Gentoo on HP 15-bs020nd laptop.

After following the USB Guide, plugged in devices do not show up.

I tested USB storage of 8gb, and USB mouse, both in USB 2.0 and USB 3.0 ports, but all I get from the mouse is red laser light lasting around half a second and then it stops.

The USB storage doesn't show any signs of life, although it does work on other PCs.

tail -f /var/log/dmesg doesn't print any message when I plug it in or out

Any ideas how to make this work?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Tue Sep 05, 2017 3:14 pm    Post subject: Reply with quote

Hi,

I do not know the details of your laptop but some Usb controllers need
Code:
<*> OHCI HCD support

and not
Code:
< > UHCI HCD support

You can activate both even if you need only one of the two. It just take a little more space in the kernel image. Note that Usb support can be compile as modules for a lot it's options unless you intend to boot from a Usb device.
_________________
Paul
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 3:22 pm    Post subject: Reply with quote

Thanks for the answer Logicien,

Just checked the kernel, and I have enabled all * HCD options including OHCI and UHCI in the USB Support section

P.S. This is the output of lspci -v | grep USB

Code:
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI])
   Subsystem: Hewlett-Packard Company Sunrise Point-LP USB 3.0 xHCI Controller


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Tue Sep 05, 2017 3:28 pm    Post subject: Reply with quote

It may be because your using a Usb device not of the same version of USB than the laptop port it's plugged in. Even if USB 1 ,2 and 3 are compatible, I would check is the device and the ports versions are the same.

For the mouse support, you may not only need Usb mouse support even if your mouse is a Usb one. You may have to look in the character devices section and activate what concern a least the mouse as a character device.
_________________
Paul
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 3:51 pm    Post subject: Reply with quote

The USB drive is USB version 3.0 the same like the ports that I am using to plug it in.

In the character devices section, I couldn't find anything related.

Do you know which options should be turned on for mouse support?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Tue Sep 05, 2017 4:12 pm    Post subject: Reply with quote

Use
Code:
lspci -k
to see if the driver is loaded. And please use code tags to post code.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1369
Location: Montréal

PostPosted: Tue Sep 05, 2017 4:14 pm    Post subject: Reply with quote

If you use
Code:
make menuconfig

to configure your kernel you can use the / to make a search in the options and use the keyword mouse in the dialog box to know the full path of all related mouse kernel options from the root kernel configuration tree.
_________________
Paul
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 4:47 pm    Post subject: Reply with quote

Jaglover wrote:
Use
Code:
lspci -k
to see if the driver is loaded. And please use code tags to post code.


I just tried lspci -k, and it seems like the USB driver is loaded, but it still doesn't work

Code:
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
   Subsystem: Hewlett-Packard Company Skylake Host Bridge/DRAM Registers
   Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
   Subsystem: Hewlett-Packard Company HD Graphics 520
   Kernel driver in use: i915
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
   Subsystem: Hewlett-Packard Company Skylake Processor Thermal Subsystem
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
   Subsystem: Hewlett-Packard Company Skylake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP USB 3.0 xHCI Controller
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP Thermal subsystem
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP CSME HECI
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP SATA Controller [AHCI mode]
   Kernel driver in use: ahci
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
   Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
   Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP LPC Controller
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP PMC
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP HD Audio
   Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP SMBus
   Kernel driver in use: i801_smbus
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
   Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
   Kernel driver in use: r8169
02:00.0 Network controller: Intel Corporation Device 24fb (rev 10)
   Subsystem: Intel Corporation Device 2110
   Kernel driver in use: iwlwifi
   Kernel modules: iwlwifi
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Tue Sep 05, 2017 5:24 pm    Post subject: Reply with quote

Code:
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
        Subsystem: ASRock Incorporation Sunrise Point-H USB 3.0 xHCI Controller
        Kernel driver in use: xhci_hcd


^^ Here you see the driver loaded.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 8:46 pm    Post subject: Reply with quote

Jaglover wrote:
Code:
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
        Subsystem: ASRock Incorporation Sunrise Point-H USB 3.0 xHCI Controller
        Kernel driver in use: xhci_hcd


^^ Here you see the driver loaded.


It is loaded, but when I check dmesg, i only get entries for USB 1.1 and USB 2.0, but not USB 3.0 ( xHCI ). Could this be the problem?

Code:
dmesg | grep USB

[    0.543709] ACPI: bus type USB registered
[    0.781528] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.781558] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.781582] uhci_hcd: USB Universal Host Controller Interface driver
[    0.883014] usbhid: USB HID core driver
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Tue Sep 05, 2017 9:04 pm    Post subject: Reply with quote

concerned,

That's exactly it. Your system is USB 3 only.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 9:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
concerned,

That's exactly it. Your system is USB 3 only.


That is strange, because according to the specs it has 2 x USB 3.0 and 1 x USB 2.0, although none works.

P. S. What else I noticed is that the USB flash drive blinks until the kernel starts loading, at that moment it just turns off completely.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Tue Sep 05, 2017 9:41 pm    Post subject: Reply with quote

concerned,

You only have USB 3 (xHCI) in your lspci output.
Its possible that you have another PCI bus thats not being found but that is very very rare.

Put your kernel .config file onto a pastebin site please.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Tue Sep 05, 2017 9:57 pm    Post subject: Reply with quote

NeddySeagoon wrote:
concerned,

You only have USB 3 (xHCI) in your lspci output.
Its possible that you have another PCI bus thats not being found but that is very very rare.

Put your kernel .config file onto a pastebin site please.


Neddy, here is a copy of my .config file https://pastebin.com/8ZHKZF2C
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Tue Sep 05, 2017 11:23 pm    Post subject: Reply with quote

as needed recommend run
Code:
emerge  usbutils lshw wgetpaste
lsusb | wgetpaste -t
lshw | grep -i driver wgetpaste -t

post the url's returtned pls
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Tue Sep 05, 2017 11:45 pm    Post subject: Reply with quote

The driver is not loaded as can be seen on his lspci -k output. I posted mine so the difference could be seen. Probably the new kernel was not installed properly and the box boots old kernel still.
Code:
uname -a

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Wed Sep 06, 2017 1:58 am    Post subject: Reply with quote

I do not believe the lack of ehci, uhci, ohci, usb2 controllers, or usb1 controllers in lspci -k is necessarily significant.
My lspci -k shows only 3 usb3.0 hubs and 1 usb 3.1 hub:
Code:
I7-6700K ~ # lspci -k | grep -i -A1 usb
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
   Subsystem: ASRock Incorporation Sunrise Point-H USB 3.0 xHCI Controller
   Kernel driver in use: xhci_hcd
--
01:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
   Subsystem: SUNIX Co., Ltd. uPD720201 USB 3.0 Host Controller
   Kernel driver in use: xhci_hcd
--
03:00.0 USB controller: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller
   Subsystem: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller
   Kernel driver in use: xhci_hcd
--
05:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller
   Subsystem: ASRock Incorporation ASM1142 USB 3.1 Host Controller
   Kernel driver in use: xhci_hcd

My lsusb shows usb 2.0 and 3.0 hubs and devices:
Code:
I7-6700K ~ # lsusb
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 19d2:1353 ZTE WCDMA Technologies MSM
Bus 001 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 001 Device 002: ID 1b1c:0c09 Corsair
Bus 001 Device 006: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 0e8d:1956 MediaTek Inc. Samsung SE-506 Portable BluRay Disc Writer
Bus 005 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

lshw contains only the xhci_hcd driver
Code:
 I7-6700K ~ # lshw | grep -i driver=xhci
                configuration: driver=xhci_hcd latency=0
                configuration: driver=xhci_hcd latency=0
             configuration: driver=xhci_hcd latency=0
                configuration: driver=xhci_hcd latency=0
I7-6700K ~ # lshw | grep -i driver=uhci
I7-6700K ~ # lshw | grep -i uhci
I7-6700K ~ # lshw | grep -i driver=ehci
I7-6700K ~ # lshw | grep -i driver=ohci
I7-6700K ~ # 
https://paste.pound-python.org/show/SqDhXAJSCAoqRhOFULSM/ to see all lshw found drivers
This does seem consistent and compatible with claims (I think I remember) of backward compatibility for usb3 to usb2 and usb1 and xhci having uhci/ohci drivers builtin.
_________________
Defund the FCC.


Last edited by DONAHUE on Wed Sep 06, 2017 2:39 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 06, 2017 2:21 am    Post subject: Reply with quote

His running kernel lacks xHCI. And he has only USB 3 controller.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Wed Sep 06, 2017 8:01 am    Post subject: Reply with quote

DONAHUE wrote:
as needed recommend run
Code:
emerge  usbutils lshw wgetpaste
lsusb | wgetpaste -t
lshw | grep -i driver wgetpaste -t

post the url's returtned pls


lsusb returns error "unable to initialize libusb: -99"

this is the result of lshw

https://paste.pound-python.org/show/S4c8qi2Xdut8uky7cNt6/

Jaglover wrote:
The driver is not loaded as can be seen on his lspci -k output. I posted mine so the difference could be seen. Probably the new kernel was not installed properly and the box boots old kernel still.
Code:
uname -a


Linux localhost 4.12.5-gentoo #1 SMP Sun Sep 3 03:26:48 CEST 2017 x86_64 Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz GenuineIntel GNU/Linux

---------------

Just to test I booted with the minimal install Gentoo image, and there the USB works fine. I did lspci -k, and I can see a difference

This is the installed not working lspci -k

Code:
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP USB 3.0 xHCI Controller


And this is the live image with working USB

Code:
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
   Subsystem: Hewlett-Packard Company Sunrise Point-LP USB 3.0 xHCI Controller
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci


Kernel driver and Kernel modules lines are missing on the installed system.
Back to top
View user's profile Send private message
concerned
n00b
n00b


Joined: 05 Sep 2017
Posts: 35

PostPosted: Wed Sep 06, 2017 11:23 am    Post subject: Reply with quote

I just found out that I didn't mount the /boot partition while recompiling the kernel.. After doing that, now everything works.

Thanks everyone for the support!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum