On Thu, Jul 04, 2002 at 22:36:25 -0600, Jeremy Nickurak wrote:
> Your GPM config is fine.
> In XF86Config-4, change the Protocol to ExplorerPS/2.
>
Ahah! That did it. I don't know how you figured out to use
ExplorerPS/2 as the protocol, but it works. I didn't know that was one
to try because the man page doesn't list it and I didn't find any
mention of ExplorerPS/2 when googling.
> I've also been able to get all 4 non-scroll buttons working with the
> following:
>
> Option "ZAxisMapping" "5 6"
>
> This will make the scroll wheel be buttons 5 and 6. To fix this:
>
> In /etc/X11/Xmodmap:
>
> pointer = 1 2 3 6 4 5
>
> You should be warned however that /etc/X11/Xmodmap doesn't seem to be
> called all the time recently. So in a Xsession or gdm Session .xsession
> or .xinitrc (or whatever you choose), you should call "xmodmap
> /etc/X11/Xmodmap"
>
> You'll now have buttons 4 and 5 for scrolling again, and button 6 as an
> extra, for whatever you'd like.
>
I tried using xmodmap like you suggested, but couldn't get it to work.
It kept causing X to crash at startup. Just to be sure, here is my
/etc/X11/Xmodmap:
! /etc/X11/Xmodmap
pointer = 1 2 3 6 4 5
And here is my .xsession file (with rwx permissions):
#!/bin/bash
xmodmap /etc/X11/Xmodmap
If I move the .xsession file to .xsession-bak, then X starts up fine.
Then if I run ./.xsession-bak everything seems to work OK, except that
scrolling up in an Xterm causes a beep, but it does scroll OK. So for
some reason, when X calls my .xsession file at startup, it causes it to
crash. However, if I run it after start it works OK (apart from the
beeping in an Xterm).
So I have just gotten rid of the .xsession file and changed the
ZAxisMapping line in /etc/X11/XF86Config-4 to:
Option "ZAxisMapping" "4 5"
So now this is what the whole section looks like:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/gpmdata"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "6"
Option "ZAxisMapping" "4 5"
EndSection
And that seems to work perfectly. However I would be grateful if you
would point out where I am going wrong with the xmodmap command, and
whether you get any beeping in an Xterm when you scroll.
Nb. It doesn't beep for me in Xterm now that I have stopped running
xmodmap and changed the ZAxisMapping back to "4 5"
Cheers and thanks heaps for the help as I certainly wouldn't have tried
that ExplorerPS/2 protocol without your help.
Mark.
Attachment:
pgp7IxuPQSnL7.pgp
Description: PGP signature