Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Microsoft IntelliMouse Optical Configuration
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Knight
n00b
n00b


Joined: 14 Aug 2002
Posts: 26

PostPosted: Tue Nov 05, 2002 11:23 am    Post subject: Microsoft IntelliMouse Optical Configuration Reply with quote

After doing long periods of searching through various mailing lists I've found a perfect configuration setup for the Microsoft IntelliMouse Optical that allows the use of all 5 buttons (the 3 buttons and the 2 side ones) along with the wheel and even got the side buttons to recognize as mouse4 and mouse5 in games. First you need to do these changes/additions to your /etc/X11/XF86Config file:

Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "7"
        Option      "ZAxisMapping" "6 7"
        Option      "Resolution" "100"
EndSection


The protocol ExplorerPS/2 is a specialized X mouse protocol that allows for the mapping of buttons beyond the 5 button limit used in IMPS/2. Once this is done the AxisMapping has to be changed from 4 5 to 6 7. However we're not quite done yet, because we changed the axis mapping we have to update xmodmap to adjust to the settings. You can do that with the following:

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


This remaps the pointer settings and detects the 2 side buttons and resets the mouse wheel so it's still usable. You have to do this setting everytime so to remove that burden place that command in either your ~/.xinitrc file or in the session config files for KDM, XDM, or GDM depending on the graphical login manager file you use. I hope this helps out!
Back to top
View user's profile Send private message
elboricua
Apprentice
Apprentice


Joined: 17 May 2002
Posts: 226
Location: Bronx, NY

PostPosted: Tue Nov 05, 2002 1:02 pm    Post subject: Use ImWheel to enable to side buttons Reply with quote

Just to expand on your tip :D You can use a little program called IMWheel to enable those side buttons. ImWheel can be found at :

http://jcatki.no-ip.org/imwheel/

Here are the steps that I used to setup IMWheel. I set the side buttons to do back and forward in mozilla. I got this info from searching the boards here, reading the imwheel docs, and trial and error.

Step 1 Edit /etc/X11/XF86Config

Section "InputDevice"

# Identifier and driver

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


Step 2 Add the following line to ~/.xinitrc. Make sure to put it before whatever line loads your window manager. You can also create a ~/.xmodmap with the same info if you use gdm, kdm or xdm.

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

That will set the scroll whell to use buttons 6 and 7. 4 and 5 are the side buttons.

Step 3 Install imwheel. Installing is your standard fair. Untar the file, cd into the new directory
./configure
make
make install
If you allow for all the defaults this will load the executable to /usr/local/bin. The config file is in /etc/X11 by default

EDIT: STEP 3 emerge imwheel (it has since become available in portage) :-D

Step 4 Now to got used to those buttons performing forward and back.
Copy /etc/X11/imwheelrc that to imwheelrc.bak.

(It has a lot of things that I just could not get to work.)

edit /etc/X11/imwheelrc with your favorite text editor to read

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


Step 5 Edit ~/.xinitrc and add the line before your window manager is loaded but after the xmodmap entry or edit your session config files for KDM, XDM, or GDM

exec imwheel -k -b "67" &

Step 6 Restart X to get the changes loaded.


Using this method will let the X server control the wheel while imwheel controls the side buttons. After installing imwheel man imwheel for more information on setting up the side buttons.
_________________
Boricua Hasta La Muerte


Last edited by elboricua on Fri Nov 15, 2002 1:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Fri Nov 08, 2002 10:48 pm    Post subject: Reply with quote

awesome. you guys are great. :D
Back to top
View user's profile Send private message
wHAcKer
Apprentice
Apprentice


Joined: 18 Oct 2002
Posts: 228
Location: Grimbergen, Belgium

PostPosted: Sun Nov 10, 2002 11:37 pm    Post subject: Reply with quote

hmm, if i put this in my startup script (the xmodmap -e pointers line) it doesn't do anything (my mousewheel still doesn't work) but if I type it manually, it works perfectly :/
i don't get this!!! :(
'nyone got an idea?[/code]
Back to top
View user's profile Send private message
wHAcKer
Apprentice
Apprentice


Joined: 18 Oct 2002
Posts: 228
Location: Grimbergen, Belgium

PostPosted: Mon Nov 11, 2002 7:27 pm    Post subject: Reply with quote

i think i solved it, damn, the feeling that you're beginning to understand a linux system rules ;)
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Nov 13, 2002 11:07 am    Post subject: Reply with quote

There appears to be an imwheel ebuild. Reduce installation to one step... emerge imwheel
Back to top
View user's profile Send private message
fishers4rus
n00b
n00b


Joined: 09 Nov 2002
Posts: 44

PostPosted: Wed Nov 13, 2002 10:50 pm    Post subject: Reply with quote

OK, get to the .xinitrc or .xmodmap files, just cant get them to work. A manual execution of the command will do it tho--like whacker did--how did you solve it?
Back to top
View user's profile Send private message
fishers4rus
n00b
n00b


Joined: 09 Nov 2002
Posts: 44

PostPosted: Wed Nov 13, 2002 10:59 pm    Post subject: Reply with quote

And i cant seem to locate the imwheel ebuild with emerge -s imwheel....
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Thu Nov 14, 2002 9:00 am    Post subject: Reply with quote

It is a very new package. Just look at the Changelog:
Quote:

*imwheel-1.0.0_pre2 (13 Nov 2002)

13 Nov 2002; Nick Hadaway <raker@gentoo.org>
imwheel-1.0.0_pre2.ebuild, files/digest-imwheel-1.0.0_pre2,
files/imwheel-1.0.0_pre2-gentoo.diff :
New ebuild.
Back to top
View user's profile Send private message
wHAcKer
Apprentice
Apprentice


Joined: 18 Oct 2002
Posts: 228
Location: Grimbergen, Belgium

PostPosted: Thu Nov 14, 2002 1:06 pm    Post subject: Reply with quote

i just added it in the file that i use to start programs automatically when i log in in X
Back to top
View user's profile Send private message
elboricua
Apprentice
Apprentice


Joined: 17 May 2002
Posts: 226
Location: Bronx, NY

PostPosted: Fri Nov 15, 2002 1:06 pm    Post subject: Reply with quote

HeeHee Cool IMWheel is now in portage

emerge -s imwheel
Searching...
[ Results for search key : imwheel ]
[ Applications found : 1 ]

* x11-misc/imwheel
Latest version available: 1.0.0_pre2
Latest version installed: [ Not Installed ]
Size of downloaded files: 470 kB
Homepage: http://jcatki.dhs.org/imwheel/
Description: mouse tool for advanced features such as wheels and 3+ buttons

I am going to have to edit the tip :-D
_________________
Boricua Hasta La Muerte
Back to top
View user's profile Send private message
elmie
Tux's lil' helper
Tux's lil' helper


Joined: 12 Sep 2002
Posts: 123
Location: Brisbane - Australia

PostPosted: Wed Nov 20, 2002 3:15 am    Post subject: Reply with quote

THis is great stuff.. thank you..
I guess this $100 mouse is not a waste after all!!!

Great guide, but I still can't the 2 side thumb buttons to work...
what am I doing wrong??
I did everything like you said..
Back to top
View user's profile Send private message
elboricua
Apprentice
Apprentice


Joined: 17 May 2002
Posts: 226
Location: Bronx, NY

PostPosted: Wed Nov 20, 2002 5:47 pm    Post subject: Reply with quote

Did you edit /etc/X11/imwheelrc to have only

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


and do you have exec imwheel -k -b "67" set to startup with X somewhere?
_________________
Boricua Hasta La Muerte
Back to top
View user's profile Send private message
sev_
n00b
n00b


Joined: 26 Sep 2002
Posts: 64
Location: California

PostPosted: Thu Nov 21, 2002 2:30 am    Post subject: Reply with quote

awesome. thanks for the guide 8)
i couldn't get it to start up by sticking it in .xsession, so i just created a simple shell script to do it for me, and then dropped that into .xsession (i use gdm).
Code:
#! /bin/bash

/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/bin/imwheel -k -b "67"
Back to top
View user's profile Send private message
canthus13
n00b
n00b


Joined: 06 Dec 2002
Posts: 5

PostPosted: Mon Jan 20, 2003 6:57 am    Post subject: .xinitrc?? Reply with quote

Umm... Dunno how this is possible, but I apparently don't have any .xinitrc file. I do have .xinitrc~, which has a line put in it by enlightenment, but that's all... (Dunno if it makes any difference, but I only use root on this system, against conventional wisdom. I'm the only user on the system, so screw it. :)


Me
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 551
Location: USA

PostPosted: Wed Jan 22, 2003 9:07 am    Post subject: For Logitech users... Reply with quote

I have severel Logitech MouseMan models, including PS/2, USB, and wireless. These mice function similarly to the Intellimouse (or, more properly, I should say the Inellimouse functions similarly to Logitech mice :D ), but have only 1 thumb button. The X and imwheel config is slightly different, so here are the config options I'm using to enable Back on the thumb button. Follow the general steps above, but modify your config files to look similar to this:
Code:
/etc/X11/XF86Config:
...
Section "InputDevice"
     ...
     Option "Protocol" "ExplorerPS/2"
     Option "Buttons" "6"
     Option "ZAxisMapping "5 6"
EndSection
...


Code:
/etc/X11/imwheelrc:
".*"
None, Up, Alt_L|Left


By the way, just to try to clear up any confusion out there (I was unclear about this when reading this thread), you can enable this automatically in two ways. If you type startx to load X, create/modify your ~/.xinitrc to look similar to this:
Code:
~/.xinitrc:
xmodmap -e "pointer = 1 2 3 6 4 5"
imwheel -k -b "6"
exec startkde


If you use a display manager, you'll need to modify the session config file for whichever display manager you use. In my case:
Code:
/etc/X11/Sessions/kde-3.0.5a:
xmodmap -e "pointer = 1 2 3 6 4 5"
imwheel -k -b "6"
/usr/kde/3/bin/startkde


There may be an easier way to set that up for your display manager, but this should work.

Hopefully this will help out any Logitech users out there having trouble getting the config options modified just right. And thanks a whole lot to the original two posters of the tip. I've been wanting this for about 4 years now, ever since I got my first Mouseman and cried when I realized the Back button didn't work in Linux. :evil: Thanks!


Last edited by nitro322 on Mon Feb 24, 2003 5:39 am; edited 1 time in total
Back to top
View user's profile Send private message
Ivion
n00b
n00b


Joined: 23 Jan 2003
Posts: 45
Location: Amsterdam

PostPosted: Thu Jan 23, 2003 10:27 pm    Post subject: Reply with quote

Sorry for digging up this thread, but I got a problem.
I've configured everything like you all said, and xev confirms the mappings, but Mozilla doesn't respond to the side-buttons.
Does anyone of you have an idea?

offtopic:
I also can't change anything when I start up mozilla as a mortal (aka normal user :P). Not the skin, not the extension, etc.
I can't even reach them, because when I'm logged in as a normal user there aren't any menu's to do that... :)
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Fri Jan 24, 2003 12:54 am    Post subject: Reply with quote

you should also refer to this
thread to make your mouse smoother.

Resoltuion "100" is no way near the mouses potential.

Happy mouseing! :D
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Fri Jan 24, 2003 3:08 am    Post subject: Reply with quote

Just wanted to post my 2 € cents :wink:

If you have a "Addison Technology" optical mouse with 5 buttons + wheel, then this is the way:

Code:

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/psaux"
    Option "Buttons" "7"
    Option "ZAxisMapping" "4 5"
    Option "Resolution" "1200"

_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
S_aIN_t
Guru
Guru


Joined: 11 May 2002
Posts: 488
Location: Ottawa

PostPosted: Fri Jan 24, 2003 8:04 pm    Post subject: Reply with quote

Xmodmap is a great resource. Because you can so things like switching your caps lock with the ctrl key. It is much easier to reach.

do
Code:
man xmodmap
and you will learn more. :D
Back to top
View user's profile Send private message
Alex_K
n00b
n00b


Joined: 12 Aug 2002
Posts: 57

PostPosted: Sun Jan 26, 2003 2:50 pm    Post subject: Reply with quote

i'm useing GDM, and it's not possible for me to execute the xmodmap and imwheel command automatically.

i have tried to write these commands in following files:

~/.xinitrc
~/.Xmodmap
~/.xmodmap
~/.xsession
/etc/X11/Xmodmap
/etc/X11/gdm/Sessions/Xsession
/etc/X11/gdm/Sessions/Gnome

if i run the commands manualy it works ...

i don't know what the problem could be.
Back to top
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Sun Jan 26, 2003 3:40 pm    Post subject: Reply with quote

I just have put this line in my .xinitrc. Not as elegent but I know it works:

Code:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5" &
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Sun Jan 26, 2003 7:04 pm    Post subject: Reply with quote

I have an IntelliMouse explorer, and without IMWheel my side buttons are not recognised, so i use imwheel.
So i assigned crouch and walk to my side buttons in CS, but when i press them in game my view nudges up a little instead what i assigned them to do :/

I cant see anything in the imwheelrc file about not using the button for movement. I just want a plain old 'click' as it were....

any ideas?
Back to top
View user's profile Send private message
Alex_K
n00b
n00b


Joined: 12 Aug 2002
Posts: 57

PostPosted: Tue Jan 28, 2003 10:36 am    Post subject: Reply with quote

timmfin wrote:
I just have put this line in my .xinitrc. Not as elegent but I know it works:

Code:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5" &


i have tried that, but the problem ist, that the .xinitrc isn't executed if gdm is runnung ...
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 394

PostPosted: Tue Jan 28, 2003 2:11 pm    Post subject: Reply with quote

I have followed this tips , and get the usb mouse working , but .

During the boot , my some usb module failed to load :

Code:


Calculating module dependencies...
Loading module nvidia
Loading module usb-uhci
Loading module mousedev
Loading module hid
Failed to load hid

Loading module usbmouse
Failed to load usbmouse


but on console I type

Code:

insmod hid
Using /lib/modules/2.4.20/kernel/drivers/usb/hid.o

insmod usbmouse
Using /lib/modules/2.4.20/kernel/drivers/usb/usbmouse.o

so only with this upper line the usbmouse work .

Why during the boot hid and usbmouse module's can not be load ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
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