View previous topic :: View next topic |
Author |
Message |
hq4ever Apprentice
Joined: 15 Aug 2004 Posts: 167
|
Posted: Mon May 16, 2005 6:49 pm Post subject: Can't scroll with the mouse's middle button |
|
|
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
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 |
|
|
jdgill0 Veteran
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Mon May 16, 2005 6:54 pm Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon May 16, 2005 6:58 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
keli Apprentice
Joined: 18 Jul 2003 Posts: 210 Location: TgMures, RO
|
Posted: Mon May 16, 2005 7:00 pm Post subject: |
|
|
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 |
|
|
hq4ever Apprentice
Joined: 15 Aug 2004 Posts: 167
|
|
Back to top |
|
|
hq4ever Apprentice
Joined: 15 Aug 2004 Posts: 167
|
Posted: Thu May 19, 2005 12:49 pm Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu May 19, 2005 5:56 pm Post subject: |
|
|
@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 |
|
|
hq4ever Apprentice
Joined: 15 Aug 2004 Posts: 167
|
Posted: Thu May 19, 2005 8:43 pm Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri May 20, 2005 3:15 am Post subject: |
|
|
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 |
|
|
hq4ever Apprentice
Joined: 15 Aug 2004 Posts: 167
|
Posted: Fri May 20, 2005 1:49 pm Post subject: |
|
|
lead to Roma, not to mouse.4x
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri May 20, 2005 5:03 pm Post subject: |
|
|
I understand now what you mean
I dont know a better way to work around this, but as a temporary solution you could use the next ugly thing:
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... |
|
Back to top |
|
|
D33T n00b
Joined: 15 Apr 2002 Posts: 38
|
Posted: Mon May 30, 2005 7:01 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|