LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-08-2023, 06:35 AM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
No USB device detected


I got a new (to me) computer. I installed Slackware, built a new kernel on the machine. It fails to detect any USB device, which includes my only keyboards and mice. I figured this out by putting lsusb (and dmesg and lsmod) in rc.M, saving the output to a file. lsusb lists only the hubs, no attached devices. I forced loading of the relevant modules; they load, but do nothing because they see no devices. When I boot from a USB drive they work. What is failing to happen?
 
Old 09-08-2023, 07:12 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,667

Rep: Reputation: Disabled
Quote:
Originally Posted by RandomTroll View Post
I got a new (to me) computer. I installed Slackware, built a new kernel on the machine. It fails to detect any USB device, which includes my only keyboards and mice. I figured this out by putting lsusb (and dmesg and lsmod) in rc.M, saving the output to a file. lsusb lists only the hubs, no attached devices. I forced loading of the relevant modules; they load, but do nothing because they see no devices. When I boot from a USB drive they work. What is failing to happen?
There is a comprehensive list of functionalities for USB devices in kernel configuration, also for HID. You want us to guess what you have missed (I will not) or you will drop your kernel conf into a pastebin site for us to look at it?
 
Old 09-08-2023, 11:13 AM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by Emerson View Post
There is a comprehensive list of functionalities for USB devices in kernel configuration, also for HID. You want us to guess what you have missed (I will not) or you will drop your kernel conf into a pastebin site for us to look at it?
I started with the same kernel config that works on this computer with the same keyboard, mouse, and usb drives. Then I enabled every item that deals with usb keyboard and mouse input and built a clean kernel. It misses my bluetooth adaptor and smartphone, too, every device I have. The BIOS finds them. They worked in a Win 95 partition that I wiped out when I formatted the disk. When I boot from the USB drive it sees the keyboard (but lacks a mouse driver module) and drives.

The dmesg from when it doesn't work finds every USB hub but no connected device. I think there's something more basic wrong. I wouldn't think of subjecting others to reading my kernel config, but if anyone wants to https://pastebin.com/tLUPCLgP
 
Old 09-09-2023, 04:35 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I built the kernel with a bunch of USB facilities built in, rather than as modules (I prefer to make everything a module) and building some new facilities which I don't know I have, and it works. I'd still like to know what makes the difference.
 
Old 09-09-2023, 01:56 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I narrowed it down to:

Quote:
1898a1899,1902
>
> #
> # Host-side USB support is needed for USB Network Adapter support
> #
2982c2986
< CONFIG_HID=y
---
> CONFIG_HID=m
3106c3110
< CONFIG_USB_HID=y
---
> CONFIG_USB_HID=m
3127c3131
< CONFIG_USB_COMMON=y
---
> CONFIG_USB_COMMON=m
3131c3135
< CONFIG_USB=y
---
> CONFIG_USB=m
3151c3155
< CONFIG_USB_XHCI_HCD=y
---
> CONFIG_USB_XHCI_HCD=m
3153c3157
< CONFIG_USB_XHCI_PCI=y
---
> CONFIG_USB_XHCI_PCI=m
3155,3156c3159,3160
< CONFIG_USB_XHCI_PLATFORM=y
< CONFIG_USB_EHCI_HCD=y
---
> CONFIG_USB_XHCI_PLATFORM=m
> CONFIG_USB_EHCI_HCD=m
3159c3163
< CONFIG_USB_EHCI_PCI=y
---
> CONFIG_USB_EHCI_PCI=m
3165c3169
< CONFIG_USB_UHCI_HCD=y
---
> CONFIG_USB_UHCI_HCD=m
I haven't tried to narrow it down further. The BIOS sees these devices before I load the kernel; why can't Linux? I have no UHCI devices, so it's probably irrelevant. My laptop has EHCI but no XHCI. I build EHCI as modules on it, and they work. So maybe it's just XHCI. Is there a problem with expecting their modules to load?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 05:24 AM
usb mouse NOT detected, but usb keyboard IS detected mr.anderson Slackware 16 04-26-2006 09:09 PM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration