View previous topic :: View next topic |
Author |
Message |
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 5:30 pm Post subject: mice not in /dev/input/eventX ????? |
|
|
I am trying to run a program that requires the use of a mouse (micd) According to its documentation it searches for mouse devices on /dev/input/eventX but when i browse it looks like my mice are in /dev/input and I don't even have an eventX folder. I haven't received any support from the software maker yet, is there anything I can do to get this program to recognize my mouse? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 5:38 pm Post subject: |
|
|
whammoed,
Mice are normally in /dev/input/mice the /dev/input/event interface is generalised and needs a kernel module. I'm not sure if you get mouse events there if you build the module.
I would try a symbolic link first. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 5:45 pm Post subject: |
|
|
thanks for the quick reply...I am new, what is a symbolic link? Is it like a shortcut. are you suggesting I make an eventX directory there and make a "shortcut" back to /dev/input? How do I create this link?
thanks again |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 5:55 pm Post subject: |
|
|
whammoed,
Do the following
Code: | cd /dev/input
ln -s mice eventX | Change the X to the number of your choice.
A symbolic link creates a new name for a file by creating a file with the new name that 'points' to the real file. This is different to a hard link, when all the names for a file (on *NIX the same file can have many names) are indistinguisable. There is no primary file name. Such a file is only removed from the filesystem when all it names are deleted.
You have lots of symbolic links already. Try to see some and the names of the files they point to. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 6:25 pm Post subject: |
|
|
I tried cd /dev/input
ln -s mice event0
but it still won't recognize the mice, any other suggestions?
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 6:53 pm Post subject: |
|
|
whammoed,
Delete the symlink then, since its no use to you and build the event interface in the kernel. The following is for 2.6.7, other will be similar.
Run make menuconfig (or make xconfig if you have X) to reconfigure your kernel
Choose
Code: | Input device support
->Event interface (INPUT_EVDEV) | and choose to build the code as a module. Quit, saving the new configuration.
do Code: | make modules
make modules_install |
Lastly, to load the module.
You should now have a /dev/input/event0 and maybe more.
If this works, add evdev to /etc/modules.autoload.d/<kernel_version> to load the module at boot time. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 8:06 pm Post subject: |
|
|
Well, I did this when configuring kernel:
<M> Event Interface
installed kernel and copied appropriate things to /boot after mounting /boot
when I modprob evdev i get:
FATAL: Module evdev not found
when i lsmod nothing is listed
I also tried compiling event interface in kernel which gave me some eventx listings in /dev/input but this did not help the program
any ideas? I probably did something wrong i suppose |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 8:09 pm Post subject: |
|
|
also, i made a event0 directory in /dev/input before I "knew" what i was doing. Also made a symbolic link there by accident. I deleted the directory using rm -r but when I reboot it shows back up???? How do I get rid of that thing? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 8:49 pm Post subject: |
|
|
whammoed,
If evdev is compiled in, you don't modprobe it because its in /boot/bzImage rather than /lib/modules/<kernel_ver>/..
It won't show in lsmod either becuase its not a module.
I don't know how to get rid of manually created entries in /dev. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 8:52 pm Post subject: |
|
|
yes, I know, but when that didn't work i tried to compile it as a module as you suggested, that is when It doesn't show up with lsmod
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 9:00 pm Post subject: |
|
|
whammoed,
You did do the make modules_install ?
Do Code: | cd /usr/mod/<kernel_ver/
find iname evdev* | if its there, that will find it.
Repeat in the kernel tree - it should be there too.
You may need to remove the hid bits and pieces that are driving the mouse now, so that evdev can get them. Thats tricky because they are in use. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 10:33 pm Post subject: |
|
|
its not there...I even recompiled again...I removed some stuff I was using just to make sure I was compiling correctly, sure enough its not there anymore but still have nothing when i lsmod |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sat Jul 03, 2004 10:43 pm Post subject: |
|
|
whammoed,
I got the find command wrong, sorry. It should be
or did you spot that? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sat Jul 03, 2004 11:00 pm Post subject: |
|
|
didn't matter, don't even have a mod directory
I am doing a fresh install because I don't like those folders that keep coming back...each time I install i learn a little more so no big deal
I will try it both ways again, compiled into kernel and as module(if i can get that way to work)
I will post again if I run into more problems.
thank you so much for your help, I have learned alot!
D |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Sun Jul 04, 2004 1:07 pm Post subject: |
|
|
whammoed,
Damm - tab completion does not work in posts. Sorry.
mod should have been modules.
/lib/modules/<kernel_ver> are where your modules are kept. There is a seperate copy for each differently named kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Sun Jul 04, 2004 10:44 pm Post subject: |
|
|
Well, i got it to work both ways: compiled in and as module. the both give me event entries...i know it has mice in there because when i plug in another, another event entry pops in.
could i be missing something else????
Maybe this isn't a gentoo problem anymore???? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Mon Jul 05, 2004 6:28 pm Post subject: |
|
|
whammoed,
Now you have some /dev/input/eventX entries, see if the mouse/mice are actually sending any events to them.
Try cat /dev/input/event0 etc. Moving the mouse, scrolling wheels, pressing buttons etc should get you gibberish in the terminal window, if the mouse is reporting things there.
You may need to stop using the HID layer for mice, since it will send events to /dev/input/mice etc. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Grayman Apprentice
Joined: 25 Feb 2004 Posts: 186 Location: South Africa
|
Posted: Mon Jul 05, 2004 7:34 pm Post subject: |
|
|
Hi I'm running a Graphire 2 that needs an event0 or event 1 to work (amongst other stuff. I had to compile the kernel (I used genkernel) with the event bit ( think it was under device drivers/input someplace) built into the kernel, and then add in the linuxwacom drivers afterwards.
Grayman |
|
Back to top |
|
|
whammoed n00b
Joined: 27 Jun 2004 Posts: 66
|
Posted: Mon Jul 05, 2004 7:48 pm Post subject: |
|
|
yep, get lots of gibberish
by the way, how do i get back to the command line????
anyway,
how do i stop using the HID layer for mice?
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Mon Jul 05, 2004 8:12 pm Post subject: |
|
|
whammoed,
ctrl-c gets you the command line back.
If you are getting gibberish, thats the mouse events, you don't need to unload the HID modules.
You need to unplug the mouse then if you want to try it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|