LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Microsfot Intellimouse - Side Buttons? (https://www.linuxquestions.org/questions/linux-hardware-18/microsfot-intellimouse-side-buttons-21303/)

bkeating 05-19-2002 03:16 AM

Microsfot Intellimouse - Side Buttons?
 
Was wondering if anyone knew how to get the side buttons working on the Intelli Mouse. They served as the "bacl" button and "forward" button for directory and web browsing.

Thanks!
Ben.

DavidPhillips 05-19-2002 08:29 AM

If they are different buttons from the wheel, you can add the as buttons 7 and 8

bkeating 05-19-2002 10:26 AM

where at do I make these modifications?

thanks!
ben.

fatgod 05-21-2002 04:49 AM

good question. I've got one too and having functionality of them would be nice.

Thymox 05-21-2002 06:59 AM

I think it's got something to do with mapping in your /etc/X11/XF86Config-4 file. You should check out threads around already on mapping buttons 3 and 4. Should be similar process.

Aussie 05-23-2002 12:25 AM

Yes you can use the side buttons. I've just finished setting up my five button optical mouse after reading this post this morning and doing a bit of googling on the subject.
First you need to set up your mouse in XFree86 (version 4.2.0 is what I use), this is my pointer section,
Code:

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

Then you need to do "xmodmap -e "pointer 1236745" I have a script in .kde/Autostart to do this when ever I startx but you can put the line in your .xdefaults as well.
Code:

#!/bin/sh

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

Once you have verified that your wheel works you can test to see if the extra buttons are seen by X with "xev" (place the pointer in the square and click the buttons to see the events).
Next you need to download and install imwheel (1.0.0pre1) and create .imwheelrc in your home directory with the following,
Code:

".*"
 None, Up, Alt_L|Left
 None, Down, Alt_L|Right

Next start imwheel with imwheel -k -b "67" I use another script in /kde/Autostart for this as well,
Code:

#!/bin/sh
imwheel -k -b "67"

So far it's working well in konqueror, mozilla 1.0rc2 and netscape 7 pre1.

Brion 05-24-2002 01:19 AM

Quote:

Originally posted by Aussie
[B]Yes you can use the side buttons. I've just finished setting up my five button optical mouse after reading this post this morning and doing a bit of googling on the subject.

<SNIP>

thank u so much, it works perfectly
i've always wondered how to get this to work but never really got into it

Aussie 05-24-2002 01:42 AM

Your welcome :)
I first had a look at it about three months age but got distracted by kde 3.

bax 07-09-2002 06:49 PM

USB Intellimouse
 
I followed the above instructions exactly but I didn't change my mouse's protocol since it's USB. Here's my config:
Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"


This is what happens when I run xmodmap: xmodmap "pointer = 1 2 3 6 7 4 5"
xmodmap: unable to open file 'pointer = 1 2 3 6 7 4 5' for reading
xmodmap: 1 error encountered, aborting.
What am I doing wrong here? Anyone map the side buttons to fwd and back like on WIndows?

Aussie 07-09-2002 07:08 PM

It will only work if you use the correct protocol.

bax 07-09-2002 10:41 PM

So, will that protocol work w/ a USB mouse?

Aussie 07-09-2002 11:24 PM

Just because your mouse connects via usb does not mean it needs a usb protocol, you need to use ExplorerPS/2 if you want to get the side buttons working with either usb or ps/2 connections. You might need to change the device however.

bax 07-09-2002 11:53 PM

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

This brought about the exact same xmodmap error. I have Googled quite a bit and from what I have seen this SHOULD work. But it isn't....

Aussie 07-10-2002 12:17 AM

/dev/psaux is your problem now, psaux is for a mouse connected to the ps/2 port and you have a usb mouse. Have a look in /dev and see what /dev/mouse is a symlink to, and you may need to change your device to that target.

dorward 07-10-2002 06:49 AM

Righty, I have a Intellimouse Explorer hocked up to the USB port and I use the side buttons. This works perfectly.

From XF86Config-4
Code:

Section "InputDevice"
        Identifier      "USB Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "6 7"
        Option          "Buttons"              "7"
EndSection

From ~/.xsession (the script that runs when I log in to X or run startx):
Code:

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

Note the "-e" part, it won't work without it.

From ~/.imwheelrc (the config file for imwheel which deals with the side buttons):
Code:

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right



All times are GMT -5. The time now is 07:53 AM.