View previous topic :: View next topic |
Author |
Message |
Black Zer0 Tux's lil' helper
Joined: 03 Feb 2007 Posts: 131 Location: Almonte Ontario Canada
|
Posted: Sun Dec 02, 2007 2:59 am Post subject: module mouse missing |
|
|
all of A sudden, all three of my mouses stopped working, usually my touchpad and other built in mouse are working out of the box.
Recently I updated my kernel because the makefile was missing(now im running 2.6.20r10 instead of r5 because any later kernel doesnt support my wlan)
now when I go into graphics mode the mouse doesn't move, and usually when I'm in shell and the screen turns off I can move the mouse to bring it back on but i cant do that either
When I modprobe mouse it says the module doesnt exist I tried emerging xf86-input-mouse but it didn't do anything, I tried emerging it again with -auvDN but for some reason I wanted to reinstall nvidia but a way newer version that isnt compatible with my vidcard
My .xsession errors doesnt say anything about the mouse
any suggestions? _________________ Fluxbox ROX!!!
Tux has way too many lil' helpers in my opinion. |
|
Back to top |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Sun Dec 02, 2007 7:09 am Post subject: |
|
|
no module mouse. In the console you want gpm if it is installed then try "/etc/init.d/gpm start"
As for X, a few things to check.
I am going to make some assumptions and please correct me if I'm wrong
You say you have a touchpad and a mouse. I'm going to assume, you are using a laptop with a builtin touchpad and a USB mouse. If this is the case then your touchpad is probably not a mouse device, it is a synaptics device and your mouse is a USB HID event device(evdev). Two things that are commonly missed when configuring your kernel.
Sooo, In my kernel(2.6.22-suspend-r2) the required are as follows
Code: |
Device Drivers->HID Devices->USB Human Interface Device (full HID) support --- Build this right into the kernel.
the above could alternatively be found under "Device Drivers->USB Support" instead
Device Drivers->Input device support->Event Interface --- Also build this right into the kernel.
and if your mouse is a PS/2 mouse then also:
Device Drivers->Input device support->Mice->PS/2 Mouse --- Again built into the kernel not as a module.
|
Next, check your INPUT_DEVICES variable in /etc/make.conf
mine is:
Code: |
INPUT_DEVICES="evdev event keyboard mouse mice synaptics"
|
Note that evdev and event are essentially the same thing evdev is just what X calls an event interface. Also, the last one there is the touchpad used in just about every laptop or external kb with a builtin touchpad anymore.
If you made any changes to your kernel or your input devices variable now would be a good time to rebuild the required stuff
Kernel:
Code: |
cd /usr/src/linux
make && make install (replace make install with whatever method you used to put your kernel in /boot)
reboot
|
X11, etc... (This will just rebuild any packages that use the INPUT_DEVICES var)
Code: |
emerge -avuDN world
|
After that, if your input devices still aren't working then check your /etc/X11/xorg.conf
Here is the section of mine that defines my touchpad. Note: there are a lot of settings that can be put in here but the following works fine for most and defines the touchpad with all 4 corner "buttons" enabled and with vertical and horizontal-scroll enabled.
Code: |
Section "InputDevice"
Identifier "Mouse0"
Driver "synaptics"
Option "Protocol" "Auto"
Option "Device" "/dev/input/event4"
Option "ZAxisMapping" "4 5 6 7"
EndSection
|
As for the mouse, I don't have one set up right now, but I'll look around and see if I can find a my old one I had set up, but truth be told as long as your user is part of the plugdev group most usb mice should just work automagically as long as you have X built with evdev support.
Hope some of this helps.
EDIT: Oh, also, if you're wondering where synaptics is in the kernel, the synaptics driver uses the Event Interface. _________________ Mmmm.... Brains! |
|
Back to top |
|
|
Black Zer0 Tux's lil' helper
Joined: 03 Feb 2007 Posts: 131 Location: Almonte Ontario Canada
|
Posted: Mon Dec 03, 2007 12:11 am Post subject: |
|
|
earlier I set the kernel to debug input events, and now dmesg prints the mouse events of all three of my mouses, the touchpad, the logitech usb one, and the wierd joystick-like one in the middle of the keyboard
But X doesn't seem to notice the mouse, right now I'm going to try to recompile xorg-server and xorg-x11, but I don't think that will help much
I would print my xorg.conf but I cant figure out how to without my mouse :/
EDIT: I found out that gpm works, thanks btw I was wondering how you could have a mouse in the shell I didnt know gpm was how you did so
EDIT: It seems it was a problem of when I upgraded to xorg-x11 7.3 so I tried downgrading to 7.2 and now the mouses are responding, but they are acting all spazzy and not moving in the direction I ask them to AT ALL so what is wrong with it now? _________________ Fluxbox ROX!!!
Tux has way too many lil' helpers in my opinion. |
|
Back to top |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Sat Dec 08, 2007 3:52 am Post subject: |
|
|
Sorry this for the delay, I've been really busy lately. Anyhow, a few more details would be nice, i.e. your xorg.conf, maybe the output of emerge --info.
Also, brand, model#?
The main thing though is, like I said, xorg really needs to be set to access the event devices not the mouse devices. _________________ Mmmm.... Brains! |
|
Back to top |
|
|
Black Zer0 Tux's lil' helper
Joined: 03 Feb 2007 Posts: 131 Location: Almonte Ontario Canada
|
Posted: Sat Dec 08, 2007 4:08 pm Post subject: |
|
|
The only way I could think of to show it to you would be this
xorg.conf
emerge --info
There you are _________________ Fluxbox ROX!!!
Tux has way too many lil' helpers in my opinion. |
|
Back to top |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Wed Dec 12, 2007 8:19 am Post subject: |
|
|
Hmm. Yeah, your config is all jacked up.
1) Don't use the "AlwaysCore" directive. EVER. It has jacked mice since it's inception. Replace that with "CorePointer".
2) Don't configure your USB mouse. Delete all traces of that from your xorg.conf. It isn't a static device, therefore should not be hard-configured. Let your computer handle that one on it's own. Just make sure you have HAL installed and enabled. Oh, and while you're at it get rid of the Serial and PS/2 mouse sections.
3) Don't use /dev/input/mice or /dev/input/mouseX these are for serial and ps/2 mice only. They allow only a limited set of functions through. Instead, look at /proc/bus/input/devices to see which event device your touchpad is assigned then use that instead. Look at the InputDevice section I posted above. Yours should look something like that, specifically, note the protocol. Due to some weird glitch it needs to be set to "Auto" for some touchpads... Don't ask me why, but every other setting for me caused it to either not work at all or act funny(like moving the cursor in the wrong direction)
4) Your InputDevice directive in the ServerLayout section points to your USB Mouse. Change that to point to your touchpad. _________________ Mmmm.... Brains! |
|
Back to top |
|
|
Black Zer0 Tux's lil' helper
Joined: 03 Feb 2007 Posts: 131 Location: Almonte Ontario Canada
|
Posted: Thu Dec 13, 2007 2:51 am Post subject: |
|
|
Alright it's working now thanks alot _________________ Fluxbox ROX!!!
Tux has way too many lil' helpers in my opinion. |
|
Back to top |
|
|
ltboy Apprentice
Joined: 26 Oct 2004 Posts: 197 Location: Utah
|
Posted: Fri Dec 14, 2007 5:14 am Post subject: |
|
|
No Prob. _________________ Mmmm.... Brains! |
|
Back to top |
|
|
|