LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-11-2012, 09:45 AM   #1
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Rep: Reputation: 25
hid and usbhid modules not found


Running 64current with Alien's multilibs installed on a Compaq V5000 laptop. I can't get Xsane to run. Debugging this points to permissions on the usb device being wrong. However /proc/bus/usb does not exist. lsmod shows only usblp module installed, no hid or usbhid. I'm thinking this may be the problem. Doing insmod for hid, hid_generic and usbhid gives "no such file or directory" error.
Clues happily read!
 
Old 10-11-2012, 09:50 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
If you use an initrd, these are the kind of modules you have to add explicitly to the MODULES line in /etc/mkinitrd.conf. Here's what mine looks like on this PC for example:

Code:
SOURCE_TREE="/boot/initrd-tree"
CLEAR_TREE="1"
OUTPUT_IMAGE="/boot/initrd.gz"
KERNEL_VERSION="$(uname -r)"
KEYMAP="fr_CH-latin1"
MODULE_LIST="ext4:usb-storage:pcmcia_core:pcmcia:mmc_core:ssb:ehci-hcd:ohci-hcd"
ROOTDEV="/dev/sda3"
ROOTFS="ext4"
RESUMEDEV="/dev/sda2"
RAID="0"
LVM="0"
UDEV="1"
MODCONF="0"
WAIT="1"
Use the /usr/share/mkinitrd/mkinitrd_command_generator.sh to know what particular modules you have to add explicitly.

Cheers,

Niki
 
Old 10-11-2012, 10:00 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
That looks strange as both HID and USB_HID are among the kernel modules shipped in Slackware 14. Did you customize your kernel or do you use stock kernel & kernel-modules packages?
 
Old 10-11-2012, 10:44 AM   #4
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by Didier Spaier View Post
That looks strange as both HID and USB_HID are among the kernel modules shipped in Slackware 14. Did you customize your kernel or do you use stock kernel & kernel-modules packages?
Other than the use of Alien's multilib files, it's just a stock install. Maybe I should slackpkg reinstall kernel...? perhaps something got left behind?
 
Old 10-11-2012, 11:04 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
I would try to reinstall the kernel-modules package. Be careful to select the X86-64smp version.
 
Old 10-11-2012, 11:14 AM   #6
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by Didier Spaier View Post
I would try to reinstall the kernel-modules package. Be careful to select the X86-64smp version.
yes this is strange...looked in /lib/modules and both hid.ko and usbhid.ko are there, modprobed both and neither appears in lsmod output after a reboot
going to eat/think and then reinstall the kernel-modules
 
Old 10-11-2012, 11:24 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
If you could load it with the modprobe command, just uncomment the line
Code:
#/sbin/modprobe usbhid
in /etc/r.d/rc.modules. Both modules will be loaded at next system startup.
 
Old 10-11-2012, 01:19 PM   #8
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by Didier Spaier View Post
If you could load it with the modprobe command, just uncomment the line
Code:
#/sbin/modprobe usbhid
in /etc/r.d/rc.modules. Both modules will be loaded at next system startup.
weird...uncommented, rebooted, neither showed up in lsmod listing

looking through the a/ directory on a slack mirror and see only "kernel-modules-3.2.29-x86_64-1.txz" no SMP option...
 
Old 10-11-2012, 01:23 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
Quote:
Originally Posted by the_penguinator View Post
weird...uncommented, rebooted, neither showed up in lsmod listing

looking through the a/ directory on a slack mirror and see only "kernel-modules-3.2.29-x86_64-1.txz" no SMP option...
My mistake, I forgot that all 64 bit kernels are smp capable... Did you check that all /etc/rc.d/rc.module* files be executable?
 
Old 10-11-2012, 03:17 PM   #10
the_penguinator
Member
 
Registered: Jan 2009
Location: Canada
Distribution: slackware, OpenBSD, OSX
Posts: 233

Original Poster
Rep: Reputation: 25
Thanks Didier, it's functioning now, but I'm still left with a puzzle. I reinstalled the kernel-modules and rebooted. Xsane found the scanner and it works properly...however...

1) hid and usbhid still do not appear in lsmod output.
2) #cat /proc/bus/usb gives: no such file or directory
3) As root, #sane-find-scanner fails to find an attached USB scanner,
4) as root #scanimage -L gives: device `umax:libusb:002:002' is a UMAX Astra 2200 flatbed scanner
5) as user $sane-find-scanner gives:
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 003:001: Access denied (insufficient permissions)
6) as user $scanimage -L gives:
device `umax:libusb:002:002' is a UMAX Astra 2200 flatbed scanner

yet Xsane is finding the scanner and it works perfectly...I don't like not knowing _why_ it's working...
Cheers
 
Old 10-11-2012, 03:54 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,044

Rep: Reputation: Disabled
Quote:
Originally Posted by the_penguinator View Post
hid and usbhid still do not appear in lsmod output.
That's pretty strange as /etc/rc.d/rc.S should load it at startup, provided you uncommented the relevant line in /etc/rc.d/rc.modules and /etc/rc.d/rc.modules* be executable

Quote:
Originally Posted by the_penguinator View Post
.I don't like not knowing _why_ it's working...
Let me remind you the old saying:

« La pratique, c'est quand ça marche mais on ne sait pas pourquoi.
La théorie c'est quand ça ne marche pas mais on sait pourquoi.
Ici la pratique et la théorie sont réconciliées: ça ne marche pas et personne ne sait pourquoi ».

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Modprobe: modules unix not found in modules.dep utanja Debian 7 04-19-2014 04:18 PM
usbhid starting before the pyusb hid Frustin Linux - Hardware 0 04-17-2012 08:31 AM
usbkbd and usbhid modules daveschile Linux - Hardware 1 12-28-2006 06:28 AM
Fatal: Module HID not found. raghugs Red Hat 0 06-27-2004 11:03 PM
no working mouse (even with HID in modules file) xizar Mandriva 4 08-28-2003 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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