5 button mouse

Mandrake 9.0 the problem . Trust ami 250 sx optical mouse.ps/2 It has 3 buttons wheel and a further 2 side buttons. I have got it all to work, these are the pertinent lines in XF86Config-4 Section "InputDevice" Identifier "Mouse1" ...




Topic Options
#1557 - 03/24/03 08:22 PM 5 button mouse
blueworm Offline
member

Registered: 03/02/03
Posts: 169
Mandrake 9.0
the problem . Trust ami 250 sx optical mouse.ps/2
It has 3 buttons wheel and a further 2 side buttons.
I have got it all to work, these are the pertinent lines in XF86Config-4

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/psaux"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

This causes a slight inconvenience, it switches the wheel scrolling to the side buttons.
I tried Options "ZAxisMapping" "4 5"
But this does'nt work and switches off the side buttons.

Ok fixed it with xmodmap as follows

xmodmap -e "pointer 1 2 3 6 7 4 5"

Problem solved...
Almost
this means I have to execute this manually before I use mozilla or any other program which
permits scrolling.
In fact I made it a script and execute it via an Icon on the desktop.
What I would like to know is how can I get it to start automatically?
Tried /etc/rc.local
but does'nt work, I imagine because it executes before Xfree86.
Any Ideas

Top
Advertisement
#1558 - 03/25/03 12:34 AM Re: 5 button mouse
EgoWarrior Offline
stranger

Registered: 05/26/02
Posts: 20
put this line in a file called .Xmodmap in your home folder:

Code:
pointer = 1 2 3 6 7 4 5


Then it'll automatically set the buttons up when you log in, if you want it to be a global setting then put that line in /etc/X11/Xmodmap instead.

Top
#1567 - 03/25/03 03:13 PM Re: 5 button mouse
blueworm Offline
member

Registered: 03/02/03
Posts: 169
Thanks
But it is still no go . I tried both methods user and global but nothing.
What is it that I'm overlooking.
the only way it works so far is by fiscally executing # xmodmap -e "pointer = 1 2 3 6 7 4 5"
or using an icon to execute the script which contains the above line.

Top
#1575 - 03/26/03 02:22 PM Re: 5 button mouse
EgoWarrior Offline
stranger

Registered: 05/26/02
Posts: 20
Thats odd, it works perfectly for me, if that doesn't work I don't know any other way of helping you, sorry.

Top
#1578 - 03/26/03 08:38 PM Re: 5 button mouse
blueworm Offline
member

Registered: 03/02/03
Posts: 169
Thanks again for your time.
I tried the same with my laptop.Mandrake 9.0 2.4.20 vanilla kernel(instead of 2.4.19-16mdk) using balckbox( instead of kde.)
but the same frustrating result.
Could you tell me which distro, kernel version, window manager you are running.
Thinking of giving slackware a go on the laptop.

Top
#1582 - 03/27/03 01:07 AM Re: 5 button mouse
EgoWarrior Offline
stranger

Registered: 05/26/02
Posts: 20
I use redhat 7.3 with kernel 2.4.18-3. I'm using sawfish as my window manager but those tips are taken directly from xfree86.org so they shouldn't be dependant on kernel, distro or WM, its purely X settings.

/etc/X11/Xmodmap and ~/.Xmodmap are called by xdm and startx so it should work straight away.

I got my 4 button logitech mouse working without any hassle following the instructions from www.xfree86.org, sorry I can't be much more help.

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Thank you for your help
by guaiguai
12/11/09 07:29 AM
What the problem is?
by guaiguai
12/11/09 05:09 AM
Need an database for Dictionary
by shaanspecial
12/09/09 10:19 AM
Who's Online
0 Registered (), 133 Guests and 36 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91341 Members
24 Forums
59013 Topics
189526 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22