LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-19-2002, 03:16 AM   #1
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Rep: Reputation: 38
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.
 
Old 05-19-2002, 08:29 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If they are different buttons from the wheel, you can add the as buttons 7 and 8
 
Old 05-19-2002, 10:26 AM   #3
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Original Poster
Rep: Reputation: 38
where at do I make these modifications?

thanks!
ben.
 
Old 05-21-2002, 04:49 AM   #4
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
good question. I've got one too and having functionality of them would be nice.
 
Old 05-21-2002, 06:59 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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.
 
Old 05-23-2002, 12:25 AM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
Old 05-24-2002, 01:19 AM   #7
Brion
Member
 
Registered: May 2002
Location: Belgium
Distribution: LinuxFromScratch
Posts: 85

Rep: Reputation: 15
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
 
Old 05-24-2002, 01:42 AM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Your welcome
I first had a look at it about three months age but got distracted by kde 3.
 
Old 07-09-2002, 06:49 PM   #9
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
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?
 
Old 07-09-2002, 07:08 PM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
It will only work if you use the correct protocol.
 
Old 07-09-2002, 10:41 PM   #11
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
So, will that protocol work w/ a USB mouse?
 
Old 07-09-2002, 11:24 PM   #12
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
Old 07-09-2002, 11:53 PM   #13
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
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....
 
Old 07-10-2002, 12:17 AM   #14
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
/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.
 
Old 07-10-2002, 06:49 AM   #15
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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
 
  


Reply

Tags
mouseconfig



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.1 and Intellimouse Optical side buttons STuPiDiCuS Linux - Hardware 1 09-23-2004 10:23 PM
side mouse buttons on intellimouse Slack10 Earth Slackware 7 07-18-2004 11:50 AM
Intellimouse side buttons (yet again?) Toker Linux - Newbie 7 10-05-2003 01:55 AM
Intellimouse AND Side Buttons, HOW TO- Alternate Caoster Linux - Hardware 0 07-18-2003 04:53 AM
side-buttons. intellimouse ! sapilas Linux - Distributions 2 05-24-2002 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration