Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 28
Originally Posted by psytree Just one question: What is the meaning of 4 an 5 ( Option "ZAxisMapping" "4 5" ). Just an explanation about this option if any one ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Oklahoma City, OK
    Posts
    232

    Quote Originally Posted by psytree
    Just one question:

    What is the meaning of 4 an 5 ( Option "ZAxisMapping" "4 5" ).
    Just an explanation about this option if any one can help !

    Tks,
    A typical scrolling mouse has 5 buttons. Button 1 is left click. 2 is right click. 3 is the middle button(the one that's under the wheel it-self is 2 buttons. Button 4 is scroll up and 5 is scroll down.
    Option "ZAxisMapping" "4 5" tells the x server that the mouse has a scroll wheel and what to do with the buttons.
    OH NOOOOO!!!!!! You did it the way I said?

  2. #12
    Just Joined!
    Join Date
    May 2004
    Location
    Sintra, Portugal
    Posts
    36
    Tks! Now I know : )

  3. #13
    Linux Newbie
    Join Date
    Mar 2004
    Posts
    185
    This was a help to me as well. Thanks!


    DrCR


    __________

  4. $spacer_open
    $spacer_close
  5. #14
    Just Joined!
    Join Date
    Nov 2004
    Location
    Three Oaks, Michigan
    Posts
    49
    Sorry for bringing up the old post.. but I figured that would be better than starting a new one.

    I have a Logitech MX700, which has the five previous mentioned functions, plus forward and back buttons for browsing.. should I just edit it to look like this

    Code:
    Option "ZAxisMapping" "6 7"
    Sorry for my n00bish..


    -justin

  6. #15
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    Here's my config for my 5 button mouse (2 buttons + 1wheel, + 2 side buttons, = 7 (wheel is 3 buttons))
    Code:
    Section "InputDevice"
        #Microsoft Intellimouse Explorer (had to rmmod usbmouse to get it to work)
        Identifier   "MouseUSB"
        Driver   "mouse"
        Option "Protocol" "ExplorerPS/2"
        Option "Device"      "/dev/input/mice"
        Option "Buttons" "7"
        Option "ZAxisMapping" "6 7"
        Option "Emulate3Buttons" "no" #not needed?
    EndSection
    Then, in your ~/.xinitrc you need to add
    Code:
    xmodmap -e "pointer = 1 2 3 6 7 4 5"
    What this does is makes the mouse scroll forward, and backward cound as buttons 6 and 7. If you don't do this, the side buttons will do the scrolling :P

    If you have firefox 1.0PR if you use the side buttons, they will go forward/backward without needing any extra programs to config
    --monkey

  7. #16
    Just Joined!
    Join Date
    Nov 2004
    Location
    Three Oaks, Michigan
    Posts
    49
    I got all the code into xorg.conf, however when I do the xmodmap thing, that doesn't work in the terminal, it says I should have something with 3 buttons. I tried rebooting, but that doesn't do it. Do I have to create a file with that command in it? There are two files that are named xinitrc, and neither seem to have anything that looks like that xmod command should go into.


    -justin

  8. #17
    Just Joined!
    Join Date
    Nov 2004
    Location
    Three Oaks, Michigan
    Posts
    49
    anyone?


    -justin

  9. #18
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    I will work on this, this weekend I have the same problem with my laptop. I will see if I can come up with something

  10. #19
    Just Joined!
    Join Date
    Nov 2004
    Location
    Three Oaks, Michigan
    Posts
    49
    ok cool


    -justin

  11. #20
    Linux User
    Join Date
    Jul 2004
    Posts
    256
    Quote Originally Posted by opensourceguy
    I got all the code into xorg.conf, however when I do the xmodmap thing, that doesn't work in the terminal, it says I should have something with 3 buttons. I tried rebooting, but that doesn't do it. Do I have to create a file with that command in it? There are two files that are named xinitrc, and neither seem to have anything that looks like that xmod command should go into.


    -justin
    I can't help without seeing your log. Post this file /var/log/Xorg.0.log

    This is from the man page (man xinit)
    Quote Originally Posted by man xinitrc
    xinit will look for a file in the user's home directory called .xinitrc to run as a shell script to start up client programs.
    The file you edit is in your home directory named ".xinitrc" (Notice it is prepended by a dot.)

    It's the same thing as saying the file is ~/.xinitrc or /home/username/.xinitrc
    --monkey

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •