LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting up a ps/2 mouse for x (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-a-ps-2-mouse-for-x-147713/)

behmjose 02-18-2004 03:51 PM

setting up a ps/2 mouse for x
 
I was wondering what the device file was for a ps/2 mouse. i set up lfs and loaded xfree86 4.3.0 and i can't seem to figure out how to get my mouse to work. please help me, thanks,

behmjose

shanenin 02-18-2004 04:44 PM

when you run the program xf86config you will choose IMPS/2 . To make your mouse wheel work manually add Option "ZAxisMapping" "4 5" to your /etc/X11/XF86Config file

below is part of my XF86Config file

Code:

#Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"

I myself did not have the patience to install my X system by hand. I stopped my lfs project after I was able to surf the web using links. Congrats

dfowensby 02-18-2004 04:44 PM

if you have root access, and can bring up /etc/X11/XF86Config with your editor, this is how i have my optical wheelmouse setup (these are the lines that are uncommented/#) in the Core Pointer section:

Identifier "Mouse1"
Driver "mouse"
Option Protocol "IMPS/2" #use PS/2 if you have a ball mouse
Option "ZAxisMapping" "4 5" #enter this only if you do use an optical/IR mouse
Option "Device" "/dev/mouse"

read the comments included on this file, as they can help if you aren't using a common ps/2 ball mouse.
hope this helps.
-O.

dfowensby 02-18-2004 04:48 PM

oops. quotes around "Protocol"

shanenin 02-18-2004 04:50 PM

Quote:

Option "ZAxisMapping" "4 5" #enter this only if you do use an optical/IR mouse
I do not have an optical mouse, but that option is needed to make your scroll wheel work for any mouse. I am not sure what an IR mouse is..

dfowensby 02-18-2004 04:53 PM

my doing two things at atime is messy. what shanenin said is what your file should look like almost to a T. just put in PS/2 (the default config) if you have a non wheel mouse.
luck!

behmjose 02-18-2004 05:39 PM

well thanks for all the reply's
i however do not have a /dev/mouse, and i was wondering what it is a symlink to. sorry for not being clear.

thanks,
behmjose

behmjose 02-18-2004 06:27 PM

hi again i figed it out
/dev/psaux

thanks for you help though
its a good thing people respond to you in the open source world

thanks agian,
joe

trickykid 02-21-2004 10:17 PM

Moved: Not a LFS specific question so moved. Regards.

abs 02-24-2004 03:33 AM

i've added the ZAxis line. but i stil don't have the scroll functionality for my mouse. any ideas?

dfowensby 02-27-2004 03:40 PM

hmmm. you DID put a space between the 4 and the 5, right?
if so, the only things i can recommend are to go to console, do xff86config, click thru the whole mess, then go to the editor, check xf86.conf and see if it worked, and plug in the right script if not, reboot, and see if the mouse scrolls then. if this doesn't do it, i suggest you see if the thing is a hardware glitch (check it on another box, or switch mice).
if this doesn't work, you can buy a very reasonably priced sledgehammer from toolsRus and have a very satisfying stress-release session....'cause i'm outa ideas.
good luck -O.


All times are GMT -5. The time now is 06:26 AM.