Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Looking for help with side buttons on MS Intelimouse 3.0a
New Posts  All Forums:Forum Nav:

Looking for help with side buttons on MS Intelimouse 3.0a

post #1 of 11
Thread Starter 
I'm looking for some help with configuring the side buttons on the MS Intelimouse 3.0a.

How do I get them to work with Linux?

Thanks!
post #2 of 11
Can you post your xorg.conf file please.
You can see what it by typing: cat /etc/X11/xorg.conf

Its pretty long, but that way I can help you better in telling you what needs to be changed and added.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #3 of 11
Thread Starter 
-----xorg.conf file output-----


blairellis@blairellis-desktop:~$ cat /etc/X11/xorg.conf
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
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" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7300 GT]"
Driver "nvidia"
Busid "PCI:7:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
EndSection

Section "Monitor"
Identifier "EN-5200ei"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7300 GT]"
Monitor "EN-5200ei"
Defaultdepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "stylus" "SendCoreEvents"
Inputdevice "cursor" "SendCoreEvents"
Inputdevice "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection
blairellis@blairellis-desktop:~$
post #4 of 11
I would definitely like to know my way around the mouse section of X11
Do you know of any good guides/api-type things?
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #5 of 11
I guess I'll write up a FAQ for it then. The only way I know it is from when I did a lot of messing around with Xorg in FreeBSD.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #6 of 11
I wish there was a :grovel: smiley

I just can't find a good resource for X11 configurations. Last time I searched everything was whatever came before X11 (I forget - it's before my time)
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #7 of 11
Thread Starter 
Quote:
Originally Posted by dangerousHobo View Post
I guess I'll write up a FAQ for it then. The only way I know it is from when I did a lot of messing around with Xorg in FreeBSD.
Awesome Thanks alot!
post #8 of 11
Quote:
Originally Posted by rabidgnome229 View Post
I wish there was a :grovel: smiley

I just can't find a good resource for X11 configurations. Last time I searched everything was whatever came before X11 (I forget - it's before my time)
XFree86

Please give me some time to write it though, as there is more than one way around the issue, and some work and some don't.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #9 of 11
The more time it takes the better

Part of the reason that I had trouble finding a good resource was the sheer amount of stuff xorg handles
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #10 of 11
There is more than one way to getting your extra mouse buttons to work in Linux. However the results vary from mouse to mouse, and there is no guarantee that any of these tricks will work.

First off if you like to use those extra side buttons to navigate in a browser( Example: back and forward). Then you might find that firefox already does this for you. This is because firefox has that feature hardcoded in. So it may work from the start for you. If not then here is something you can try.

You will have to make some edits to your xorg.conf file.

So open up a terminal and type: sudo gedit /etc/X11/xorg.conf

Find the section that looks like this:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection


It should look something like that.

First thing you can change is to comment out the line that says Option "Emulate3Buttons" "true". Since your mouse probably has a scroll wheel.
So it would now look like this: B]#Option "Emulate3Buttons" "true"[/B]

Next, make sure the Driver Xorg is using is the “mouse” driver. This is already correct in the above example code.

You can leave the Option “CorePointer” there, and the same with the Option “Device”. You do NOT want to change this if your mouse is already working. However, if your mouse is not working then you would want to change the location path (Example of other location paths you might try: /dev/mouse, /dev/input/mouse)

The next thing you will want to change is the Option “Protocol”. You will want to replace “ImPS/2” (or what ever is there) with “ExplorerPS/2”.
So the line would look something like this: Option "Protocol” “ExplorerPS/2”

Now you want to add the follow option in with the others:
Option “Buttons” “7”
The number of buttons depends on the number of buttons on your mouse, but remember that the scroll wheel counts as 3.

Make sure the option “ZAxisMapping” is present and has the parameter “4 5”.

If your mouse has two scroll wheels or a mouse that has a scroll that tilts side to side then you can try the parameter “4 5 6 7”. So either:
Option “ZAxisMapping” “4 5”
-OR-
Option “ZAxisMapping” “4 5 6 7”
(depending on your needs)

Also one other thing you can add is the resolution, that is if your mouse supports a high resolution, like most current gaming mice do.

Just add: Option “Resolution” “1800” (the 1800 can be what ever the highest you mouse can support, for mine thats 1800).


That is all for the xorg.conf file so save it, but before you restart Xorg, you still should do a few more things to make your life easier.

Using you favorite simple text editor (Example: vi, vim, nano, gedit, kate) open a new text document and type: pointer = 1 2 3 4 5 6 7
Now save this text file as .xmodmap and save it in your home directory (Example: /home/username).(Remember “username” needs to be replaced by your real username)

Now if your a KDE user, you can do the following:

Add the following into a new text file: xmodmap ~/.xmodmap

and save it as startup.sh is the following directory: /home/username/.kde/Autostart
And in a terminal type: chmod +x /home/username/.kde/Autostart/startup.sh

Now the command: xmodmap ~/.xmodmap, is run everytime you log into KDE.


For Gnome users, you should be able to do the same instructions for the KDE users, but just change the location where you save the file startup.sh. However I am not that similar with Gnome, so I am not sure if there is an Autostart folder or not.

If you are not a KDE user and a confused Gnome user, then you can try the following.

See if the file .xinitrc exist in one of the two following locations: /root , or /home/username

To see if its there, try running the following two commands in the terminal:
sudo ls -a /root/ | sed -n /.xinitrc/p <-need to be root, so thats why sudo is added.
ls -a ~/ | sed -n /.xinitrc/p <-run as your normal user

If one of these locations has the .xinitrc file then open it in your favorite text editor: (NOTE: If the file .xinitrc is in both of these locations, then you can either edit both of them or the one that is in the users account home that you log into the most. Changing it in one location doesn't change it in the other).

Example (in a terminal): kate /path/.xinitrc (add sudo to the front if .xinitrc is in the directory /root)

Now add the following line to .xinitrc: xmodmap /path/to/file/.xmodmap

Save .xinitrc. The file .xinitrc is ran everytime Xorg is started.


NOTE: If you are a KDE user and you have a .xinitrc file, then it does not matter which of the above methods you choose. Just don't add it to both.



Now that this is all done you can restart Xorg (either by login out and then back in or by pressing <ctrl>+<alt>+<backspace key>).

Now in a web browser you should hopefully be able to use the thumb buttons on your mouse as back and forward buttons.

If you wanted to use the extra mouse buttons to execute a program then look into a program called IMWheel.

Home Page: http://imwheel.sourceforge.net/

Some one else's Howto on it can be seen here: http://legroom.net/howto/mouse

I didn't feel like writing anything up on that since I have little experience with IMWheel.

Some thing that might help you if you want to use IMWheel: http://imwheel.sourceforge.net/imwheelrc

Again I just want to say that there is no guarantee that any of the above will work, but I am able to have my thumb buttons on my mouse work as back and forward. Mouse is a Logitech MX518.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Looking for help with side buttons on MS Intelimouse 3.0a