I screwed up the mouse config during install

Ok, here's the deal. I was installing LINUX and apparently screwed up when configuring my mouse, because it doesn't work (ATT ALL) when booted to LINUX but is fine in Windows. My question is, can I fix this without completely reinstalling LINUX? I tried to get to mouseconfig...but it appeared to be useless when I got there. I'm just wondering. If I must, I will just reinstall.
Amanda012600Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
freesourceConnect With a Mentor Commented:
Make sure you have this file:

/dev/mouse  it should be symlinked to the serial port the mouse is on like this:

/dev/mouse -> ttyS0

Then you may want to run gpm if you use the console.  On my system it runs like this:

 /usr/sbin/gpm -m /dev/ttyS0 -t ms -l "a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377"


It uses /dev/ttyS0 directly, sets the mouse type to ms (default for gpm) and the charset is defined with -l.  Look at "man gpm."

Now for X Windows you need to edit the XF86Config file.

Something like this:

Section "Pointer"                                                      
   Protocol        "Microsoft"                                        
   Device          "/dev/mouse"
   BaudRate        1200                                                    
   Emulate3Timeout 50                                
   Resolution      100
   Buttons         3                                                        
   Emulate3Buttons                                                        
EndSection    

see "man XF86Config" where it discusses the pointer section. The important this to realize is that /dev/mouse points to /dev/ttyS0 ... it could have been done this way to:

Device    "/dev/ttyS0"

You also need to specify what protocol your mouse uses.  The Microsoft protocol works fine for my cheap clone mouse.  To get the third button I press 1 and 3 together.  Here are the protocols.
                    Auto
                    BusMouse
                    GlidePoint
                    GlidePointPS/2
                    IntelliMouse
                    IMPS/2
                    Logitech
                    Microsoft
                    MMHitTab
                    MMSeries
                    Mouseman
                    MouseManPlusPS/2
                    MouseSystems
                    NetMousePS/2
                    NetScrollPS/2
                    OSMouse
                    PS/2
                    SysMouse
                    ThinkingMouse
                    ThinkingMousePS/2
                    Xqueue

You can read about the rest of the options in the manpage.  After you edit the /etc/X11/XF86Config file stop X Windows, and start it over.  You may have a strange mouse, you may have to tinker around, but eventually you will get it to work.  And I am here to help.
0
 
joe_hCommented:
Does your mouse not work in text consoles or in X Windows ?

There is rarely a need to reinstall Linux...
0
All Courses

From novice to tech pro — start learning today.