LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   hid and usbhid modules not found (http://www.linuxquestions.org/questions/slackware-14/hid-and-usbhid-modules-not-found-4175431681/)

the_penguinator 10-11-2012 09:45 AM

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!

kikinovak 10-11-2012 09:50 AM

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

Didier Spaier 10-11-2012 10:00 AM

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?

the_penguinator 10-11-2012 10:44 AM

Quote:

Originally Posted by Didier Spaier (Post 4803060)
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?

Didier Spaier 10-11-2012 11:04 AM

I would try to reinstall the kernel-modules package. Be careful to select the X86-64smp version.

the_penguinator 10-11-2012 11:14 AM

Quote:

Originally Posted by Didier Spaier (Post 4803134)
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

Didier Spaier 10-11-2012 11:24 AM

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.

the_penguinator 10-11-2012 01:19 PM

Quote:

Originally Posted by Didier Spaier (Post 4803152)
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...

Didier Spaier 10-11-2012 01:23 PM

Quote:

Originally Posted by the_penguinator (Post 4803242)
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?

the_penguinator 10-11-2012 03:17 PM

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

Didier Spaier 10-11-2012 03:54 PM

Quote:

Originally Posted by the_penguinator (Post 4803332)
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 :scratch:

Quote:

Originally Posted by the_penguinator (Post 4803332)
.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


All times are GMT -5. The time now is 12:51 AM.