View previous topic :: View next topic |
Author |
Message |
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Wed Mar 28, 2018 8:10 am Post subject: Gentoo can't use any USB devices |
|
|
I recently finished installing gentoo for the first time. On the install I can't use either my USB keyboard or mouse (the keyboard is a corsair k70 lux and the mouse is a Logitech g502). When livebooting gentoo from a USB the mouse seems to work fine and the RGB come on for the k70 (it still woulden't work though, I had to use an old PS/2 keyboard to finish the install). I also tested to see if plugging in my portable HDD through USB would work, it didn't and lsusb shows nothing so it must be an issue with USB. I tried to follow the gentoo wiki's page about USB to get it working but it seems outdated because I couldn't find some of the options it says to enable when compiling the kernel.
Last edited by Sol33t303 on Wed Mar 28, 2018 8:43 am; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31453 Location: here
|
Posted: Wed Mar 28, 2018 8:22 am Post subject: |
|
|
You can post what is configured in kernel for usb?
Code: | $ grep USB /usr/src/linux/.config | grep -v '#' |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Wed Mar 28, 2018 8:39 am Post subject: |
|
|
fedeliallalinea wrote: | You can post what is configured in kernel for usb?
Code: | $ grep USB /usr/src/linux/.config | grep -v '#' |
|
I don't have a PS/2 mouse so I can't copy and past the output and there is a lot of it (I tried compiling a lot of USB options in the kernel to see if I could from it) is there anything specific in the output I should look for? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31453 Location: here
|
Posted: Wed Mar 28, 2018 8:49 am Post subject: |
|
|
Sol33t303 wrote: | I don't have a PS/2 mouse so I can't copy and past the output and there is a lot of it (I tried compiling a lot of USB options in the kernel to see if I could from it) is there anything specific in the output I should look for? |
You can use wgetpaste and then manually copy url generated _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Wed Mar 28, 2018 9:04 am Post subject: |
|
|
fedeliallalinea wrote: | Sol33t303 wrote: | I don't have a PS/2 mouse so I can't copy and past the output and there is a lot of it (I tried compiling a lot of USB options in the kernel to see if I could from it) is there anything specific in the output I should look for? |
You can use wgetpaste and then manually copy url generated |
https://paste.pound-python.org/show/Hc70eEMyXCaCTK5pk5YI/ |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31453 Location: here
|
Posted: Wed Mar 28, 2018 9:40 am Post subject: |
|
|
Code: | Device Drivers --->
HID support --->
-*- HID bus support
<*> Generic HID driver |
This option is selected in your configuration kernel? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Mar 28, 2018 9:59 am Post subject: Re: Gentoo can't use any USB devices |
|
|
Sol33t303 wrote: | When livebooting gentoo from a USB the mouse seems to work fine and the RGB come on for the k70 (it still woulden't work though, I had to use an old PS/2 keyboard to finish the install). |
You have to get your hands back on that ps2 keyboard if you want help ; because a keyboard that doesn't work with the livecd mean the keyboard is really special and will need a special kernel module.
so:
* either someone with that keyboard model comes to help you
* or we will need lot of infos from dmesg, kernel config... and without the ps/2 keyboard ; you will probably die before we're able to find the solve. |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Wed Mar 28, 2018 9:59 am Post subject: |
|
|
Yeah it defiantly is |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Wed Mar 28, 2018 10:15 am Post subject: Re: Gentoo can't use any USB devices |
|
|
krinn wrote: | Sol33t303 wrote: | When livebooting gentoo from a USB the mouse seems to work fine and the RGB come on for the k70 (it still woulden't work though, I had to use an old PS/2 keyboard to finish the install). |
You have to get your hands back on that ps2 keyboard if you want help ; because a keyboard that doesn't work with the livecd mean the keyboard is really special and will need a special kernel module.
so:
* either someone with that keyboard model comes to help you
* or we will need lot of infos from dmesg, kernel config... and without the ps/2 keyboard ; you will probably die before we're able to find the solve. |
The keyboard worked well enough with the rest if the distros I have used (Arch, Fedora and Ubuntu). For Arch and Fedora it did have the strange issue of only being detect 50% of the time when the computer boots, but since I keep my PC on 24/7 it wasn't a big issue. So it dosn't seem like it would need anything special, it's also a fairly common keyboard in PC gaming (I think) so it should work I would think. |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
|
Back to top |
|
|
Kron4ek n00b
Joined: 23 Mar 2018 Posts: 10 Location: /dev/city
|
Posted: Wed Mar 28, 2018 10:56 am Post subject: |
|
|
Do you have CONFIG_USB_PCI enabled in kernel config? If not, enable it. It will solve your problem. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Mar 28, 2018 10:57 am Post subject: |
|
|
your dmesg enumerate an ohci and ehci controller support, but no xhci.
when the controller is found, it should then enumerate usb devices attach to it.
as example you should get something like this:
Code: | [ 0.436271] usb usb1: Product: xHCI Host Controller
[ 0.436555] usb usb1: Manufacturer: Linux 4.14.11 xhci-hcd
[ 0.761007] usb 1-9: new low-speed USB device number 2 using xhci_hcd
[ 0.890366] usb 1-9: New USB device found, idVendor=046d, idProduct=c077
[ 0.890606] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 0.890847] usb 1-9: Product: USB Optical Mouse
[ 0.891089] usb 1-9: Manufacturer: Logitech
...
|
so if you use an usb3 (name xhci) controller, and its support is not in your kernel, your dmesg is normal, if you don't, then something is weird. |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Sat Mar 31, 2018 10:07 am Post subject: |
|
|
Sorry for taking a long time to post a reply, I haven't been able to be at my PC so I wasn't able to continue finding a way to fix the issue.
I decided to try and use genkernel to compile a generic kernel from gentoo-sources. Which seems to have fixed the problem, which is strange as I tried live booting Gentoo live again as a sanity check and it seems that the keyboard still isn't working with it.
Quote: | your dmesg enumerate an ohci and ehci controller support, but no xhci.
when the controller is found, it should then enumerate usb devices attach to it.
as example you should get something like this:
Code:
[ 0.436271] usb usb1: Product: xHCI Host Controller
[ 0.436555] usb usb1: Manufacturer: Linux 4.14.11 xhci-hcd
[ 0.761007] usb 1-9: new low-speed USB device number 2 using xhci_hcd
[ 0.890366] usb 1-9: New USB device found, idVendor=046d, idProduct=c077
[ 0.890606] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 0.890847] usb 1-9: Product: USB Optical Mouse
[ 0.891089] usb 1-9: Manufacturer: Logitech
...
so if you use an usb3 (name xhci) controller, and its support is not in your kernel, your dmesg is normal, if you don't, then something is weird. |
I wasn't using USB3 ports for my keyboard and mouse so they still should have worked (there was nothing in the dmesg that had shown that it had detected them). Though it's also strange that it doesn't have USB3 support, I don't think I would have compilled it without support for USB3, I was very careful about removing things from the kernel and only did it if a knew for certain what it was and that I didn't need it. |
|
Back to top |
|
|
MaDDeePee Guru
Joined: 18 Aug 2004 Posts: 393 Location: Germany
|
Posted: Sat Mar 31, 2018 5:53 pm Post subject: |
|
|
not related to legacy USB mode in bios? |
|
Back to top |
|
|
Sol33t303 n00b
Joined: 23 Mar 2018 Posts: 65
|
Posted: Sun Apr 01, 2018 2:30 am Post subject: |
|
|
I don't think it would be, after using genkernel usb3 appears to work fine. I didn't change anything in the bios between when I was compiling my own kernel and when I started using genkernel. |
|
Back to top |
|
|
|