Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't scroll with the mouse's middle button
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Mon May 16, 2005 6:49 pm    Post subject: Can't scroll with the mouse's middle button Reply with quote

It's funny I know, but that just doesn't work and its very annoying.
I can't scroll web pages or nothing.

here is the output of xev, as you can see the kernel sees the second button.
but when I try to see if it gets the "scroll" signal i get nothing.

Code:
$ xev | grep -A 3 'Button*'
ButtonPress event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x2600002, time 512303054, (50,41), root:(58,131),
    state 0x10, button 1, same_screen YES

--
ButtonRelease event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x2600002, time 512303142, (50,41), root:(58,131),
    state 0x110, button 1, same_screen YES

--
ButtonPress event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x0, time 512313326, (72,99), root:(767,357),
    state 0x10, button 2, same_screen YES

ButtonRelease event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x0, time 512313462, (72,99), root:(767,357),
    state 0x210, button 2, same_screen YES

--
ButtonPress event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x0, time 512315727, (64,70), root:(759,328),
    state 0x10, button 3, same_screen YES

--
ButtonRelease event, serial 28, synthetic NO, window 0x2600001,
    root 0x40, subw 0x0, time 512315847, (64,70), root:(759,328),
    state 0x410, button 3, same_screen YES

X connection to :0.0 broken (explicit kill or server shutdown).


and here is my xorg.conf InputDevice section

Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
#       InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
EndSection


It's funny because I before I did a reinsall to the system (gentoo also) all worked ok.

Don't ask me for "mouse vendor" I have no idea, it's a generic mouse that should have 3 buttons and a scroll option :D

Anyone trying to help - thank you.
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm


Last edited by hq4ever on Mon May 16, 2005 7:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Mon May 16, 2005 6:54 pm    Post subject: Reply with quote

hq4ever,

You need an Option "ZAxisMapping" "4 5" for your mouse.
_________________
Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Mon May 16, 2005 6:58 pm    Post subject: Reply with quote

Hi, hope this helps. This is how that section should look:

Code:

Section "InputDevice"

        Identifier      "Mouse0"
        Driver          "mouse"
        Option          "Protocol" "ImPS/2"
        Option          "Device" "/dev/psaux"
        Option          "Buttons" "9"
        Option          "ZAxisMapping" "4 5 6 7 8 9"
        Option          "Emulate3Buttons" "false"

EndSection


Change your protocol to ImPS/2. You can set your Buttons to any number that your mouse has, the most important setting is the ZAxisMapping one, you need to set it, at least to "4 5". '4' and '5' are the two buttons that represent the scroll. '1', '2' and '3' are the two classic buttons and the middle click, so '4' and '5' are wheel up and wheel down.

Just in case it causes any trouble make sure that the Emulate3Buttons is off. :wink:
Back to top
View user's profile Send private message
keli
Apprentice
Apprentice


Joined: 18 Jul 2003
Posts: 210
Location: TgMures, RO

PostPosted: Mon May 16, 2005 7:00 pm    Post subject: Reply with quote

Code:

        Option      "Protocol" "imps/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "4 5"


You might try to copy more lines over, but AFAIK
Code:
Option      "ZAxisMapping" "4 5"
should solve your issue by itself.

All these of course into the Section "input device" with the mouse ;)
_________________
"The future masters of technology will have to be lighthearted and intelligent. The machine easily masters the grim and the dumb."
Marshall McLuhan, 1969
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Mon May 16, 2005 7:03 pm    Post subject: Reply with quote

Really? Don't remember setting this before, also don't remember seeing it in the xorg.conf man page.
Oh well, thank you all.

Will try to see if that worked as soon as I can get out of X, i'm kinda in the middle of something : https://forums.gentoo.org/viewtopic-t-338000-start-0-postdays-0-postorder-asc-highlight-.html
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Thu May 19, 2005 12:49 pm    Post subject: Reply with quote

Strangely enough adding Option "ZAxisMapping" "4 5" worked.
Thank you.


Could someone please point me to the correct man page about this?
I did
Code:

$ man -K ZAxisMapping
/usr/share/man/man4/mouse.4x.gz?
but it found me nothing useful for X.
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu May 19, 2005 5:56 pm    Post subject: Reply with quote

@hq4ever, as you can see the heading of that page is:

Quote:

MOUSE(4x) MOUSE(4x)



NAME
mouse - Mouse input driver

SYNOPSIS
Section "InputDevice"
Identifier "idevname"MOUSE(4x) MOUSE(4x)



NAME
mouse - Mouse input driver

SYNOPSIS
Section "InputDevice"
Identifier "idevname"
Driver "mouse"
Option "Protocol" "protoname"
Option "Device" "devpath"
...
EndSection

Driver "mouse"
Option "Protocol" "protoname"
Option "Device" "devpath"
...
EndSection


That's what you are looking for. "mouse" is the driver that you load in xorg.conf, if you scroll down a bit you will see the different protocols and the available options for them. :)

Regards and glad you got all working at the end.
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Thu May 19, 2005 8:43 pm    Post subject: Reply with quote

Stupid me.

After it found me something for mouse from section 4, I simply did man 4 mouse and it gave me of curse the Physical specifications of the mouse & it's protocols.

How do I view the x mouse driver man page? man 4 mouse.4x doesn't work I'm afraid.
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri May 20, 2005 3:15 am    Post subject: Reply with quote

Usually simple man mouse lead you to that page, but in case you have any page with the same name in other section just type 'man 4 mouse' and all should be fine. Anyway with 'man -K ZAxisMapping" that page is found and the query gives you the option to open it. All ways are good.
Back to top
View user's profile Send private message
hq4ever
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 167

PostPosted: Fri May 20, 2005 1:49 pm    Post subject: Reply with quote

Quote:
All ways
lead to Roma, not to mouse.4x :wink:

When I do man 4 mouse I get "MOUSE(4) Linux Programmer's Manual".
For man 4x mouse, man mouse.4x, man mouse-4x I get an error,
so yes with man -K ZAxisMapping I can find the correct man page and view it but it would be nice to know how to launch it without causing unneeded strain on the system.

Thank you for help me so far.
ppl you're wonderful.
_________________
"God doesn't play dice with the universe",
Albert Einstein.

sig: http://www.jr.co.il/humor/signatur.txt
avatar: david lanham, http://www.dlanham.com/goodies.htm
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri May 20, 2005 5:03 pm    Post subject: Reply with quote

I understand now what you mean :wink:

I dont know a better way to work around this, but as a temporary solution you could use the next ugly thing:

Code:

man -a mouse


That should bring the man page for mouse, then press q one time, and the man page for 4x should come. The only wrong thing is that, almost for sure, you will have to press q another 2-3 times to exit, since probably man will find any more match for mouse in your system.

Is the fastest and cleanest thing I can think of now.

You can, alternatively, just rename the mouse.4x.gz file, to something like mousex.4.gz, then just do 'man mousex' to see that page.

New ways to Roma, I think... :wink:
Back to top
View user's profile Send private message
D33T
n00b
n00b


Joined: 15 Apr 2002
Posts: 38

PostPosted: Mon May 30, 2005 7:01 pm    Post subject: Reply with quote

On a similar note, how can I make the "back" button on my mouse work to go back in web browser history and such? Would also be a nice thing to use in the Konquerer file browser.

Thanks!
_________________
bling bling
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum