LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Trying to get mouse working, where to start? (https://www.linuxquestions.org/questions/linux-hardware-18/trying-to-get-mouse-working-where-to-start-210326/)

Ebel 07-27-2004 03:34 PM

Trying to get mouse working, where to start?
 
I have a wireless optical mouse with my new PC, but when I plug it in, nothing happens. I'd like to poke around, but I don't know where to start. What are the various configuration files used with mice? Are the drivers modules? Is there a general mouse howto as opposed to a USB/ button one that I keep comming across?

Finlay 07-27-2004 05:29 PM

how about you share with us the mouse:
brand
model
connection type

thanks

Ebel 07-27-2004 06:27 PM

OK. It's an Ortek wireless infrared mouse. It came with my wireless Keyboard (which alwayed worked fine). The model number of the set is MCK-9000. Both connect vie PS/2. There are batteries in the mouse. I never see anything in /var/log/messages nor dmesg. In short when I plug in the new mouse it acts like I didn't plug it in.

Finlay 07-27-2004 07:17 PM

ok
now we need to know your:
linux distribution ( your profile shows red hat)
version (your profile show 9)
are you trying to use the mouse in the console?
are you trying to use the mouse in Xwindows?
IF yes to Xwindows, what version?

Thanks,

Ebel 07-27-2004 09:55 PM

Oh, sorry, I should have included that. I'm running Fedora Core 2, with the 2.6.7 kernel (but I had to patch it to get the forcedeth driver for my nVidia ethernet thinge to work). Haven't tried using the mouse in the consol, just X. I think I've got X.org though (isn't that what FC2 comes with?) I guessed that `X -version` might be useful, so here it is:
Code:

[~]$ X -version
 
Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.21-14.ELsmp i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.7 #1 Fri Jul 23 18:40:45 IST 2004 i686
Build Date: 07 May 2004
Build Host: tweety.build.redhat.com
 
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.7 (root@localhost.localdomain) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Fri Jul 23 18:40:45 IST 2004


Finlay 07-28-2004 01:21 AM

look in your xorg.conf file
find the section titled
Section "InputDevice"
list all the lines that are not remarked, anything without a #

Ebel 07-28-2004 08:46 AM

OK here's that contents of /usr/X11R6/lib/Server/xorg.conf:
Code:

Section "InputDevice"
    Identifier        "Mouse1"
    Driver        "mouse"
    Option        "Protocol"        "Microsoft"
    Option        "Device"        "/dev/mouse"
EndSection

Section "InputDevice"
    Identifier        "Mouse2"
    Driver        "mouse"
    Option        "Protocol"        "MouseMan"
    Option        "Device"        "/dev/mouse2"
EndSection

There is also one one the keyboard and a lot of commented out mouse stuff.

I must admit that I really should have RTFM. After reading the manual, I was able to set the correct channel on the mouse, and now, when I plug it in, the mouse goes mental. It hops around the screen (tending to wind up on the right hand side of the screen), and the buttons seem to be pressed erraticly. When I don't try to move the mouse, it doesn't move, but when I move it (or press a button) it goes crazy.

Here is some the output of `tail /var/log/messages` for when the mouse was going mad:
Code:

Jul 28 14:39:12 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away.
Jul 28 14:39:17 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.
Jul 28 14:39:26 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away.
Jul 28 14:39:28 localhost last message repeated 2 times
Jul 28 14:39:31 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.
Jul 28 14:39:41 localhost last message repeated 2 times
Jul 28 14:39:43 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away.
Jul 28 14:39:45 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away.
Jul 28 14:39:53 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.
Jul 28 14:40:42 localhost kernel: psmouse.c: Mouse at isa0060/serio1/input0 lost synchronization, throwing 2 bytes away.

This happens if the mouse is on a few types of surfaces (it's an optical mouse). The reciever is just 'under' my monitor and beside my speakers (it's pretty cramped), could that be causing interference? But i've never had a problem with my keyboard, it's always gone grand. Are mice more sensitive to interference?

Finlay 07-28-2004 09:35 AM

Change: Option "Protocol" "Microsoft"
To: Option "Protocol" "IMPS/2"

If your mouse has 2 buttons and a scroll wheel add:
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"

now how does it work?

PostPCMan 07-28-2004 09:36 AM

What is in your modprobe.conf file? If your mouse has a light, is it turned on?

When I moved from RH9 to Fedora 2 (by doing an "upgrade" install), I wound up with modprobe.conf as an empty file, and several other files having been built. In particular, one called something like modprobe.conf.anaback had the configuration lines necessary for modprobe to activate my usb mouse and kb, and also my NIC. I fixed the problem by simply renaming that file to modprobe.conf, and then running modprobe.

Ebel 07-28-2004 11:54 AM

Got it!
 
Thanks Finlay, that did it! It's working fine now.

Hmm optical mice are strange and weird to use....


All times are GMT -5. The time now is 11:16 AM.