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

Goto page Previous  1, 2, 3, 4, 5, 6  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
sprite
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2003
Posts: 143
Location: Camarillo, California (USA)

PostPosted: Sun Dec 05, 2004 3:09 pm    Post subject: Reply with quote

between the orig and 2nd post i got it working =) thanks a bunch, and tag for future refrence...
Back to top
View user's profile Send private message
floppes
n00b
n00b


Joined: 06 Jan 2005
Posts: 68
Location: Germany

PostPosted: Wed Jan 12, 2005 8:50 pm    Post subject: Reply with quote

After a few hours of playing around I finally got it working! :)
Thanks for all the info on this thread!

I am using KDE 3.3.2 and a Microsoft IntelliMouse Optical and also had the problem that the commands in the xinitrc and other files were not executed correctly (or KDE reset the settings).

Ok, this is how it works for me:

First, install imwheel with

Code:
# emerge imwheel


Files:

/etc/X11/xorg.conf (I use Xorg, if you use XF86 this is /etc/X11/XF86Config)
Code:
Section "InputDevice"
   Identifier  "intellimouse"
   Driver      "mouse"
   Option      "Buttons" "7"
   Option      "Protocol" "ExplorerPS/2"
   Option      "Device" "/dev/usbmouse"
   Option      "ZAxisMapping" "6 7"
EndSection


Because I have a laptop, the external mouse must be the CorePointer:
Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "intellimouse" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
   InputDevice    "touchpad" "SendCoreEvents"
EndSection


This file is automatically executed after you log in to KDE:
/home/myloginname/.kde/Autostart/setup_mouse (file must be executable)
Code:
#!/bin/sh

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

imwheel -k -b "67" &


/etc/X11/imwheel/imwheelrc
Code:
".*"
None, Up, Control_L|C
None, Down, Enter
Back to top
View user's profile Send private message
Karim
Apprentice
Apprentice


Joined: 13 Apr 2004
Posts: 218

PostPosted: Mon Jan 17, 2005 7:21 pm    Post subject: Into .bashrc Reply with quote

This worked fine in .bashrc:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Back to top
View user's profile Send private message
WillRiker
n00b
n00b


Joined: 16 Jan 2005
Posts: 8

PostPosted: Mon Jan 17, 2005 10:36 pm    Post subject: Re: Microsoft IntelliMouse Optical Configuration Reply with quote

Knight wrote:
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!


Tnx for the work but i can't get it to work

I get the error that buttons 7 is not allowed.
The code xmodmap won't work either :(
Am i overlooking something
Back to top
View user's profile Send private message
kwisatz
n00b
n00b


Joined: 10 Jan 2004
Posts: 3

PostPosted: Tue Jan 18, 2005 4:52 pm    Post subject: Reply with quote

After working just fine for ages, my intellimouse suddenly decides to drop both scroll and thumb button funtionality. This happened after a rather large world update emerge, and frankly I'm not sure what could have coused this.

Apparently now only 3 buttons on the mouse are recogniced.

Code:

/usr/X11R6/bin/xmodmap -pp
There are 3 pointer buttons defined.

    Physical        Button
     Button          Code
        1              1
        2              2
        3              3


Now I have this in /etc/X11/Xmodmap:
Code:

pointer = 1 2 3 6 7 4 5

and this entry in /etc/X11/XF86Config-4:
Code:
 
    Identifier  "Mouse1"
    Driver "mouse"
    Option "Protocol"   "ExplorerPS/2"
    Option "Device"     "/dev/psaux"
    Option "Buttons" "7"
    Option "ZAxisMapping" "6 7"


Should work right? If I try to feed xmodmap mappings for 7 buttons manually it gives me this error:
Code:

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

/usr/X11R6/bin/xmodmap:  commandline:0:  bad number of buttons, must have 3 instead of 7
/usr/X11R6/bin/xmodmap:  1 error encountered, aborting.

What gives? Why won't xmodmap accept more that 3 buttons?
Back to top
View user's profile Send private message
beissemj
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2005
Posts: 100
Location: Orlando, FL

PostPosted: Tue Jan 25, 2005 3:05 am    Post subject: Same problem Reply with quote

I have the same problem, i get the error 3 message, and I can't figure out why... I'll look at it some more tomorrow and let ya know what i come up with.

-beissemj

:?
Back to top
View user's profile Send private message
beissemj
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2005
Posts: 100
Location: Orlando, FL

PostPosted: Wed Jan 26, 2005 8:56 pm    Post subject: Reply with quote

kwisatz wrote:
After working just fine for ages, my intellimouse suddenly decides to drop both scroll and thumb button funtionality. This happened after a rather large world update emerge, and frankly I'm not sure what could have coused this.

Apparently now only 3 buttons on the mouse are recogniced.

If I try to feed xmodmap mappings for 7 buttons manually it gives me this error:
Code:

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

/usr/X11R6/bin/xmodmap:  commandline:0:  bad number of buttons, must have 3 instead of 7
/usr/X11R6/bin/xmodmap:  1 error encountered, aborting.

What gives? Why won't xmodmap accept more that 3 buttons?


kwisatz that is very strange indeed. Like I said before I had the same problem, but have since gotten my mouse to work. Obviously, once you changed ur xorg.conf or in your case (/etc/X11/XF86Config-4) you need to restart X so it knows about the new mouse configuration (duh).

The other thing I had to do was emerge udev. udev, to my understandingy, is a protocal for identifying devices on your system. (http://www.gentoo.org/doc/en/udev-guide.xml) The problem I think i was having was devfs not correctly identifying my mouse so it was loading a dummy configuration. In any case it works now, and those are the only two things I did.



Give that a shot and let me know what happens.

-beissemj[url][/url]
Back to top
View user's profile Send private message
aqua26
Guru
Guru


Joined: 02 Feb 2005
Posts: 313
Location: India

PostPosted: Thu Feb 10, 2005 5:36 pm    Post subject: Reply with quote

I have a very simple Logitech Optical PS/2 wheel Mouse.

from which my wheel is not working.
i am using xorg
This is my listing or /etc/X11/xorg.conf
Code:
Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2"
    Option "Device"      "/dev/psaux"
    Option "Emulate3Buttons" "true"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "3"
# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"        "256"


But still my mouse is not working
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Thu Feb 24, 2005 1:28 pm    Post subject: Reply with quote

I have an IntelliMouse Explorer and made myself a /etc/init.d/intellimouse
Code:
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

start() {
   ebegin "Activating IntelliMouse Explorer Features"
   xmodmap -e "pointer = 1 2 3 6 7 4 5"
   imwheel -k -b "67"
   eend $?
}


then I did a
Code:
chmod +x /etc/init.d/intellimouse
/sbin/depscan.sh
rc-update add intellimouse default


Now, when booting into gentoo I get an error
Quote:
xmodmap: unable to open display ''
INFO: imwheel started (pid=6631)
could not open display, check shell DISPLAY variable, and export or setenv it!

The mouse-wheel isn't working and the buttons 3, 4 and 5 aren't working, too.

If I do these to command manually in gnome-terminal after booting, everything is allright and the mouse-wheel is working.
Back to top
View user's profile Send private message
Arainach
l33t
l33t


Joined: 08 Jul 2004
Posts: 609

PostPosted: Thu Feb 24, 2005 7:06 pm    Post subject: Reply with quote

You can't run those commands before starting X. Instead of making it an /etc/init.d service, edit your .xinitrc or your GDM/KDM session file for your Window Manager and add those commands. For GDM, it's the files in /usr/share/xsessions/
_________________
Gentoo: Stage3 w/ NPTL & udev, gcc 3.4.4 full rebuild
Kernel: 2.6.15-gentoo-r1 w/ 1G-Lowmem Patch
System: Athlon XP 2.2Ghz/1GB Corsair Value/160GB, 250GB WD IDE/128MB GeForce 6800/Sony 17" Trinitron G200 @ 1280x1024x75Hz
Back to top
View user's profile Send private message
SmokyMcPot
n00b
n00b


Joined: 12 Jul 2004
Posts: 30

PostPosted: Thu Feb 24, 2005 7:11 pm    Post subject: Reply with quote

I added it to ~/.xinitrc, that doesn't works (command seems not to be executed, although it's before "exec gnome-session").
I added it to ~/.xmodmap and when gnome starts I get an message that this will not be used and I should use keyboard-settings. But I can't find any solution?

Could someone give me a hint, please?

Here is my ~/.xinitrc:
Code:
exec modmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
exec gnome-session
Back to top
View user's profile Send private message
drivingsouth
n00b
n00b


Joined: 24 Jul 2004
Posts: 69
Location: Göteborg

PostPosted: Sun Mar 20, 2005 8:51 pm    Post subject: Reply with quote

I've got my IntelliMouse Explorer 3.0 working now. Wheel works and the two thumbbuttons work. But there is a strange thing: When I press the on of buttons for example "back" in a webbrowser it goes back one page in the history. When it now reaches the end of the history (i.e the back button in the browser becomes grey and inactive) , a link of the page is choosen and called. The same thing happens when I use the buttons in Konqueror. When the end of the history is eached, a button press just selects one file after another.

It whould be nice if there is no action in case the end of the history is reached.

my /etc/X11/imwheel/imwheelrc looks as follows:

Code:

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
Back to top
View user's profile Send private message
ILLWILLMD
n00b
n00b


Joined: 24 Jan 2008
Posts: 1

PostPosted: Thu Jan 24, 2008 5:39 am    Post subject: I DONE DECODED THE xmodmap NUMBERS! Reply with quote

I am new, and this is m first post, but i had something important to add to this discussion. i have done the proccess of elimination deal on the xmodmap pointer numbers and now have a key as to what the function of these numbers and there placement means. this project took about an hr. but with all the guessing that has been afoot i thought this info would be of interest to most of you. now i am brand spanking new to Linux and have been learning at a good rate. i can program in basic and VB, and some HTML, but thats about it. i want to learn C, C++, Pearl, Java, and the like. but anyway back to the topic.
i am running Ubuntu 7.10, and my "/etc/X11/xorg.conf" consists of: (some lines removed for space consideration)
*********************************************************************************
# xorg.conf (xorg X Window System server configuration file)
Section "Files"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "false"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
EndSection
*********************************************************************************
As far as the xmodmap numbers here we go
the actual physical buttons are as follows, and are consistant with the position. i.e. (xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 ").
1 = left mouse button.
2 = thumb button.
3 = right mouse button.
4 = scroll up.
5 = scroll down.
6, 7, 8, 9 = nothing whatsoever.
------------------------------------------------------
the function of the numbers are as follows.
1 = left button click.
2 = scroll lock.
3 = context menu (normal right click).
4 = scroll up once (as opposed to scroll lock).
5 = scroll down once (as opposed to scroll lock).
6 = back.
7 = forward.
8, 9 = nothing whatsoever.
------------------------------------------------------
i have mine set to:
xmodmap -e "pointer = 1 6 3 4 5 2 7 8 9 "
_________________
"THE LESS ONE MAKES DECLARATIVE STATEMENTS, THE LESS LIKELY THEY ARE TO LOOK STUPID IN RETROSPECT!"
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 Previous  1, 2, 3, 4, 5, 6
Page 6 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