Cannot get mouse to workk under Linux

stevens

Senior member
Aug 11, 2001
792
0
0
It will only move up and down no matter which way i move it, and when i press any button on the mouse it moves the arrow to the right. The buttons will not work to click anything either, they will only move the arrow right.
 

LNXman

Senior member
Jul 27, 2000
404
0
0
I am assuming you are running X, right?
Then, you are going to have to edit your XF86Config file under /etc/X11.

After you open it with your favorite *NIX editor, search for the lines:

.
.
.
Driver "mouse"
Option "Protocol" . . .
Option "Device" "/dev/psaux"
.
.
.


And then change the line Option "Protocol" "<whatever_protocol>" to Option "Protocol" "IMPS/2".

Also, make sure you have the correct device listed as shown in the previous line above (Option "Device" "/dev/psaux").

Once you have made the changes, just re-start your X server, and you should be in busines.
 

stevens

Senior member
Aug 11, 2001
792
0
0
I cannot find XF86 config. I am very new to linux, and the first time that i have ever seen it was lastnight when i installed it, so if you could give me a little more info i would appreciate it.
 

LNXman

Senior member
Jul 27, 2000
404
0
0
the XF86Config file is that file that contains configuration options for your X server. The configuration contains options for your mouse, keyboard, monitor resolution, etc.; and it is usually found under the directory path /etc/X11.

If you cannot find it, you can try to find it by issuing the following command at a shell prompt:
find /etc -type f -name XF86Config -print

This should give you the location of where XF86Config is if it is under the /etc directory.

IF for any reason you cannot find it under the /etc directory, try to find it starting from the root (i.e. a complete search). That is, type the follwoing at a shell prompt:
find / -type f -name XF86Config -print

This proceedure might take a while, but it should definitely find it.

A couple of things to note. If you cannot find it after doing a complete search, then you did not install XFree86 correctly, and should try to re-install it. In addition, run all of the commands as root, so that you do not get a bunch of permission denies trying to traverse through directories that may contain the file.

IF you find it, then just look at my previous post, edit the file, commit the changes, and re-start the X-server.

GL

P.S. Just out of curiosity, what distribution are you using?
 

DaHitman

Golden Member
Apr 6, 2001
1,158
0
0
The file you need to edit is


/etc/X11/XF86Config

or

/etc/X11/XF86Config-4



Once you look at the file you will see its really easy to read..
 

stevens

Senior member
Aug 11, 2001
792
0
0
I am using Mandrake 8.1 and my mouse is a usb mouse. Will these setting make it work eventhough it seems that all the setting are for PS/2? and i have actually gotten the mouse to work twice. I have not idea how i did it but when i restarted both times it went back to not working. I found the file under Xwindows, but it wont let me edit it. Do i have to be in the command line interface to edit it?
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Try running the command "xf86cfg", that should properly detect your mouse.
 

Willoughbyva

Diamond Member
Sep 26, 2001
3,267
0
0
Try disabeling aurora, then see if kudzu will detect your mouse on the next boot up. If not try the hardware control panel. Before you do all that see if your mouse is supported by Mandrake 8.1. You can always get a cheap ps2 mouse to work.
 

stevens

Senior member
Aug 11, 2001
792
0
0
OK i ran xf86cfg and it detects the mouse, but the mouse still wont work. It moves up and down no matter what direction i move it in and when i click a button on the mouse, the cursor just moves right. I still cannot figure out how to edit the XF86Config file.