LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   xmodmap error (https://www.linuxquestions.org/questions/linux-hardware-18/xmodmap-error-273875/)

ZaphyR 01-04-2005 04:55 PM

where are my mouse buttons??
 
trying to set up my MX510 mouse on a SuSE box, and i am using this as a reference.

when i try to run xmodmap, i get this error:

Code:

# xmodmap -e "pointer = 1 2 3 6 7 8 9 10 4 5"
xmodmap:  commandline:0:  bad number of buttons, must have 7 instead of 10
xmodmap:  1 error encountered, aborting.

my xorg.conf looks like this:

Code:

Section "InputDevice"
  Driver      "mouse"
  Identifier  "Mouse[1]"
  Option      "Buttons" "10"
  Option      "Device" "/dev/input/mice"
  Option      "Name" "Logitech MX510"
  Option      "Protocol" "explorerps/2"
  Option      "Vendor" "Sysp"
  Option      "ZAxisMapping" "9 10"
  Option      "Resolution" "800"
EndSection

i have seen other posts regarding this kind of issues, but with no solution to my problem...

help?!?

ZaphyR 01-04-2005 06:16 PM

problem solved by doing this:

Code:

echo -e "pointer = 1 2 3 6 7 8 9 10 4 5\n" > ~/.Xmodmap

ZaphyR 01-05-2005 02:47 AM

but when I try to do the same on my Gentoo box, it fails saying

Code:

# xmodmap -e "pointer = 1 2 3 6 7 8 9 10 4 5"
xmodmap:  commandline:0:  bad number of buttons, must have 3 instead of 10
xmodmap:  1 error encountered, aborting.

I also tried

Code:

echo -e "pointer = 1 2 3 6 7 8 9 10 4 5\n" > ~/.Xmodmap
but it did not work on on the Gentoo box as it did on the SuSe box...


All times are GMT -5. The time now is 07:28 AM.