You are not logged in.

#1 2006-05-01 15:42:44

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Buttons on my mouse is screwed

Hi

Since yesterday, I have had some problems with my mouse. The scrollwheel won't work, and right button is the middle button, and the middle button is the   right button. I have tried this thread but that didn't work.

I am the owner of a Logitech MX1000 mouse, and my configuration is as followed.

/etc/X11/xorg.conf:

    Identifier    "EvdevMouse"
    Driver    "evdev"
    Option "CorePointer"
#    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/event1"
    Option "Dev Phys"    "isa0060/serio1/input0"
    Option "Dev Name"    "PS2++ Logitech MX Mouse"
#    Option "ZAxisMapping" "31 32"
    Option "Buttons"     "32"

xmodmap:

...
xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 4 5" &
...

/proc/bus/input/devices:

I: Bus=0011 Vendor=0002 Product=0002 Version=000f
N: Name="PS2++ Logitech MX Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1 
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=143

Can somebody help?

[edit]
Oh, and I forgot to say, that my mouse works perfectly under XGL
[/edit]


Arch - It's something refreshing

Offline

#2 2006-05-01 16:26:39

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Buttons on my mouse is screwed

The world has changed... I feel it in the water, I feel it in the earth, I smell it in the air.

They changed again something how the Xorg controls the mouse hmm
My additional mouse buttons refuse to work now too, after updating libx or something similar.

Offline

#3 2006-05-01 16:33:22

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Buttons on my mouse is screwed

Could it might be a problem related to, that I'm using PS/2 instead of USB?


Arch - It's something refreshing

Offline

#4 2006-05-01 17:53:26

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Buttons on my mouse is screwed

Try to set default buttons:
xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"

Offline

#5 2006-05-01 18:57:07

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Buttons on my mouse is screwed

No change. sad


Arch - It's something refreshing

Offline

#6 2006-05-01 20:00:03

MAC!EK
Member
Registered: 2005-09-27
Posts: 267

Re: Buttons on my mouse is screwed

I'll try to figure out what should be changed to make it work again.
My xorg.conf which worked before:

Section "InputDevice"                                                           
    Identifier "Mouse1"                                                         
    Driver "mouse"                                                              
    Option "Protocol" "ExplorerPS/2"                                            
    Option "Device" "/dev/input/mouse0"                                         
    Option "Buttons" "9"                                                        
    Option "ZAxisMapping" "4 5 6 7"                                             
EndSection                                                                      

Important are:
Buttons - number of buttons on your mouse
ZAxisMapping - buttons which are responsible for scrolling ( scrolls)
Protocol - Explorer.. a read that its better then other(as I can remember)


Short How To...
1. Run there to clean all the button settings.

$ xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32"

2. Run xev and by pressing on the white area you get the button number.

ButtonRelease event, serial 31, synthetic NO, window 0x3400001,
    root 0x81, subw 0x0, time 4052651905, (90,115), root:(94,527),
    state 0x110, button 1, same_screen YES

3. Try to discover which number have your scrolls and mayby write a table like this:

Which button has which number

For my (9 button) mouse the numbers are:
1- LeftMouseButton
2- ScrollButton
3- LeftMouseButton
4- First Scroll UP
5- First Scroll DOWN
6- Secound Scroll UP
7- Secound Scroll DOWN
8- Left Additional Button
9- Right Additional Button
10- *nobutton*
11- *nobutton*
12- *nobutton*
13- *nobutton*

4. Place scroll button numbers in /etc/X11/xorg.conf in Option "ZAxisMapping"
I have:

Option "ZAxisMapping" "4 5 6 7"

5. restart X
6. to run xmodmap -e "button_nujmber ... "
you need to know which button should be in which order:

xmodmap field meaning
xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13"

1- LeftClick
2- CenterClick
3- RightClick
4- ScrollUP
5- ScrollDOWN
6- Previous Page? ( firefox )
7- Next Page? ( firefox )
8- something like LeftClick mixed with RightClick (strange?)
9- something like LeftClick mixed with RightClick (strange?)
10- something like LeftClick mixed with RightClick (strange?)
11- something like LeftClick mixed with RightClick (strange?)
12- something like LeftClick mixed with RightClick (strange?)
13- something like LeftClick mixed with RightClick (strange?)

7. Try to match those xmodmap fields with your buttons
For exmaple:
My scroll buttons are: 4 5 6 7
So I place 4 5 in the ScrollUP and ScrollDOWN field(fourth and fifth) in xmodmap:

$ xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13"

Nothinh special, because it's the same smile But mayby you would like the 6 and 7 button to scroll so you run it like this:

$ xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 10 11 12 13"

Now additional buttons:
mine are button 8 and 9 and I want them to move Next and Previous Page in firefox so I place them in the sixth and seventh field in xmodmap command:

$ xmodmap -e "pointer = 1 2 3 4 5 8 9 6 7 10 11 12 13"

8. If everything is OK you can place the settings for xmodmap in/etc/X11/xinit/.Xmodmap

! Additional Mouse buttons
pointer = 1 2 3 4 5 8 9 6 7 10 11 12 13

Offline

#7 2006-05-01 21:14:40

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Buttons on my mouse is screwed

Allright I can make a list of the mouse buttons:

Mouse buttons

1. Left button
2. Right button
3. Middle button
4. Scrollwheel up
5. Scrollwheel down
6. Tilt right
7. Tilt left
8. Previous page
9. Next page
10. Scrollbutton down
11. Scrollbutton up
12. Middle side button

[edit]
Now I have changed my /etc/X11/xorg.conf to this:

    Identifier  "EvdevMouse"
    Driver      "evdev"
    Option "CorePointer"
#    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/event1"
    Option "Dev Phys"    "isa0060/serio1/input0"
    Option "Dev Name"    "PS2++ Logitech MX Mouse"
    Option "ZAxisMapping" "4 5 10 11"
    Option "Buttons"     "12"

And it seems to work. I don't even need to use xmodmap. I have the same features as before without.
[/edit]


Arch - It's something refreshing

Offline

Board footer

Powered by FluxBB