You are not logged in.

#1 2006-02-24 14:02:52

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

xorg7 and scrolling with MX518

After upgrading to xorg7 scrolling with my mx518 doesn't work anymore.

My xorg.conf

Section "Inputdevice"

    # Logitech MX 510/518

    Identifier    "Mouse"
    Driver        "mouse"
    Option        "Dev Name"        "Logitech USB*"
    Option        "Protocol"        "IMPS/2"
    Option        "ZAxisMapping"    "9 10"
    Option        "Buttons"        "10"

EndSection

I also do a

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

in my .xinitrc

Any ideas?

Orjanp


Ørjan Pettersen

Offline

#2 2006-02-24 14:07:56

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: xorg7 and scrolling with MX518

I got

pointer = 1 2 3 6 7 4 5 8 9 10 11

in .Xmodmap ... weird because what I have read is that 4 5 need to be on the end yet scroll wheel works here ....

yet side buttons no longer work in x7 :cry:


Mr Green

Offline

#3 2006-02-24 14:30:44

polarrr
Member
Registered: 2004-09-12
Posts: 110

Re: xorg7 and scrolling with MX518

I don't know if it's gonna work, but give it a try if you have some time. I have a six button logitech mouse (that is, left, right, middle, up, left and back button). Back button used to be 4, but now xev shows it as 8 after I upgraded xorg. I couldn't get it to work at all with xmodmap. So I put this in xorg.conf

Option "Buttons" "8"

in InputDevice section. And then finally it did something. BUT the strange thing is, xmodmap wanted me to configure for 12 buttons because of that. It wouldn't let me just settle with 8, it spits out error unless it's 12, not 11 or 13, but 12.

So my xmodmap is

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

, my back button works, everything else work as it should.

I don't know but try sticking that button option thing in xorg.conf if you don't have it and see if it does anything.

Offline

#4 2006-02-24 14:37:19

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: xorg7 and scrolling with MX518

yeah its odd in x7 xmodmap wants 11 buttons so the line above is what I used ...

I'll mess around with xorg.conf & xmodmap see what happens as you say side buttons are now 8 & 9 ;-)


Mr Green

Offline

#5 2006-02-24 14:45:21

polarrr
Member
Registered: 2004-09-12
Posts: 110

Re: xorg7 and scrolling with MX518

orjanp, most likely your xmodmap isn't kicking in. After you start X, try running the same xmodmap command. It will most likely give you error and get aborted. That's probably why your buttons aren't working. It will tell you how many buttons you have to specify.

*edit* I found this while I was having the mouse button problem a few days ago. Probably nothing in it is new, but it did give me some ideas and what else can be done with it.

http://gentoo-wiki.com/HOWTO_Mouse_Nav_Buttons

Offline

#6 2006-02-25 11:28:20

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: xorg7 and scrolling with MX518

Have tested different things. Different protocol (IMPS/2, ExplorerPS/2, evdev), different device, different numbers of buttons. No luck.

No matter what I do, xev only reports three buttons. The scroll wheel click works as button 2, but there is no reaction on the scroll itself. Same goes for the '+' and '-' scroll buttons. No reactions. The 'back' and 'forward' buttone reports button 2 and button 3.

Beginning to wonder if this upgrade to xorg 7 was a good idea.


Ørjan Pettersen

Offline

#7 2006-02-25 11:47:51

polarrr
Member
Registered: 2004-09-12
Posts: 110

Re: xorg7 and scrolling with MX518

Hello again. I have a Logitech MX300 (USB optical) and my InputDevice section looks like this:

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/input/mice"
    Option "Buttons" "8"
    Option "ZAxisMapping" "4 5"
    Option "Emulate3Buttons" "false"

Two things I noticed about your xorg. One is the this section:


Option      "Dev Name"      "Logitech USB*" 

while I don't know for sure, have you tried commenting it out and see if it does anything?

Another thing is you don't have "device" specified. Try putting this instead:

Section "InputDevice"
   Identifier  "Mouse1"
   Driver      "mouse"
   Option "Protocol"     "IMPS/2" 
   Option "Device"       "/dev/input/mice"
   Option "Buttons"      "10"          
   Option "ZAxisMapping" "9 10"        
EndSection

and see if it'll respond. You could just leave ZAxisMapping as 4 5 and fiddle with the rest of buttons. When I tried to reassign scroll wheel buttons to other numbers, they got all screwy.

Notice: I don't know much. I'm just suggesting what "might" work.

Offline

#8 2006-02-25 12:41:06

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: xorg7 and scrolling with MX518

Thanks.

Have tried that with no luck.
Have anyone tested xev to see how many buttons that get registered?

Orjanp...


Ørjan Pettersen

Offline

#9 2006-02-25 16:55:58

emma
Member
Registered: 2006-02-19
Posts: 64

Re: xorg7 and scrolling with MX518

Check out evdev, as it is automatic for most things and very nice. Just install xf86-input-evdev and follow the instructions "for evdev users" here:

http://daimeria.com/linhowtos/xorg7.php

Cheers. big_smile

Offline

#10 2006-02-25 18:06:39

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 347

Re: xorg7 and scrolling with MX518

Thank you for the evdev stuff.

I'm really sorry for wasting everybodys time. I just figured out what the problem was. Below you see my ServerLayout. As some clever heads migth see, I have two CorePointer mouse things. The Mouse1 thing was an old configuration not containing the Button option. So it did use the default one, that is three buttons. The solution is simply to remove Mouse1. Problem solved. smile

And again, I'm really sorry... but thanks anyway.

Section "ServerLayout"

    Identifier  "Laptop"
    Screen "Laptop single"
    InputDevice "Mouse1" "CorePointer" # This one creates the trouble
    Inputdevice    "Mouse"    "CorePointer"
    InputDevice "Mouse2"        "SendCoreEvents"
    InputDevice "Keyboard1"        "CoreKeyboard"

EndSection

Orjanp...


Ørjan Pettersen

Offline

#11 2006-02-25 20:22:49

polarrr
Member
Registered: 2004-09-12
Posts: 110

Re: xorg7 and scrolling with MX518

Glad it worked out for you big_smile

Offline

Board footer

Powered by FluxBB