View previous topic :: View next topic |
Author |
Message |
dvink n00b
Joined: 12 Apr 2003 Posts: 55
|
Posted: Wed Apr 16, 2003 1:52 pm Post subject: usb mouse with devfs |
|
|
Get a kernel message whenever my usb mouse is being plugged in or taken out. Have the dirs /dev/mice and /dev/input, but both are empty. My devfs.conf mentions someting like ^input/mous0 etc. What should I do to get it running. The documentation is extremely vague, please help me out here.
Cheers! |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Apr 16, 2003 3:37 pm Post subject: |
|
|
I assume the ^input/mous0 was a typo.
My part of devfs.conf looks like this:
Code: | # Create /dev/mouse
LOOKUP ^mouse$ CFUNCTION GLOBAL mksymlink misc/psaux mouse
REGISTER ^misc/psaux$ CFUNCTION GLOBAL mksymlink $devname mouse
UNREGISTER ^misc/psaux$ CFUNCTION GLOBAL unlink mouse
# Manage USB mouse
REGISTER ^input/mouse0$ CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER ^input/mouse0$ CFUNCTION GLOBAL unlink usbmouse
REGISTER ^input/mice$ CFUNCTION GLOBAL mksymlink $devname usbmouse
UNREGISTER ^input/mice$ CFUNCTION GLOBAL unlink usbmouse
|
Also, do you have devfs starting at boot. If using lilo should have this line in /etc/lilo.conf : ( append=" devfs=mount" )
Code: | # Linux bootable partition config begins
image = /boot/bzImage-2.4.20
root = /dev/hdb2
label = Gentoo
append=" devfs=mount"
read-only |
In my /dev/input folder I have devices mice and mouse0 , but don't have a /dev/mice folder.
If none of that helps, what modules (if loading as modules) do you have loaded? Like: input usb-uhci, hid, mousedev . |
|
Back to top |
|
|
dvink n00b
Joined: 12 Apr 2003 Posts: 55
|
Posted: Thu Apr 17, 2003 7:28 am Post subject: |
|
|
Thanks for your reply.
Well, actually, my settings are identical to yours. First of all, I mount devfs at boot. In fact, the file /dev/.devfsd exists and proves that devfs has been mounted. Secondly, I have also the devfsd daemon running. At this stage, I have compiled the USB support in the kernel, just for convenience so that I don't need to think about loading modules. I know, this is dirty. Anyway, it seems that most settings are correct, but I do fear some kernel paremeters to be incorrect. What are necessary kernel parameters in addition the ones specified at
http://www.linux-usb.org/USB-guide/x194.html ?
I repeat once again.
At this stage I do have an entry /dev/usbmouse, and the kernel logs messages. Devfs is mounted at boot and the deamon is running. However, when I do cat > /dev/usbmouse, no garbage appears while moving the mouse. Am I missing something crucial? |
|
Back to top |
|
|
|
|
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
|
|