LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to get Intellimouse 5 buttons in fedora (https://www.linuxquestions.org/questions/fedora-35/how-to-get-intellimouse-5-buttons-in-fedora-156527/)

toolshed 03-11-2004 08:49 PM

Fedora howto: 5 button mouse, triple display, link to alsa how to
 
First off, someone needs to add this to a howto or something...this is a common question I see alot, but it seems people dont answer it fully. I think I answer it fully, but if I don't then mod it and fix it or reply to it and say hey loser...this is wrong.

Well here goes, it has taken a while to get 5 buttons to work in fedora, so i am going to give my information, so maybe it will help someone else?

First off I am running Fedora Core 1, and 2.6 kernel

I used imwheel version 1.0.0.pre1. imwheel

/etc/X11/XFConfig Input Device section
Code:

Section "InputDevice"
                                                                               
        # Modified by mouseconfig
        # Modified by mouseconfig
                                                                                 
        Identifier  "Mouse0"
        Driver      "mouse"
        #2.6 kernel, device changed...if u run 2.4 leave "Device as is"
        Option      "Device" "/dev/input/mice"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Emulate3Buttons" "no"
        #Option    "ZAxisMapping" "4 5"
        Option "ZAxisMapping" "6 7"
        Option "Buttons" "7"
EndSection

create a script to start when x does to map the mouse
/etc/X11/xinit/xinitrc.d/mouse
Code:

#!/bin/sh
 xmodmap -e "pointer = 1 2 3 6 7 4 5"


~/imwheelrc file
Code:

"mozilla*"
 None, Up,  Alt_L|Left
  None, Down, Alt_L|Right
 
 "XTerm"
 None, Up,  Alt_L|Control_L|S
 None, Down, Alt_L|Control_L|T
 
"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
 
 # this should be last
 ".*"
 None, Up,  Alt_L|Control_L|P
 None, Down, Alt_L|Control_L|O


run this...or put in a script for startup
/usr/local/bin/imwheel -k -b "67"

it should work now...it was a bitch to figure out..so here is a link..that helped me



intellimouse 5 buttons more mods and howto

toolshed 03-12-2004 10:26 AM

Well, I thougt I would like the page to here for sound on Fedora Core 1 with kernel 2.6

First off I tried the rpm for 2.6/Fedora Core 1 and they did not work.

I then found this on the forum and follow his instructions:

D/l what they say and follow the install from their link on Alsa webpage.

If you read both directions carefully, you will have np installing.

Btw alsa-conf is in the alsa-util dir.


ALSA/Fedora/2.6 kernel

toolshed 03-12-2004 10:28 AM

I am in such a helping mood over the past two days I thought I would also show you my "triple display" /etc/X11/XFConfig file. I use 1 nvidia agp card and 2 shitty pci cards.



Code:

####start here#########
##### KEYBOARD SETUP #####
##### MOUSE SETUP #####
##### MODULES SETUP #####
##### MONITORS #####
##### VIDEO CARD DEVICES #####
##### MAP DEVICES TO MONITORS (SCREENS) #####
##### MAP SCREENS #####
##### ENABLE DRI #####


Section "Files"
        FontPath    "unix/:7100"
EndSection

Section "Module"

#Load "GLcore" # OpenGL support
#Load "dri" # Direct rendering infrastructure
#Load "glx" # OpenGL X protocol interface
# Load "pex5" # PHIGS for X 3D environment (obsolete)
# Load "xie" # X Image Extension (obsolete)
# You only need the following two modules if you do not use xfs.
# Load "freetype" # TrueType font handler
# Load "type1" # Adobe Type 1 font handler
        Load  "dbe" # Double-buffering
        Load  "extmod" # Misc. required extensions
        Load  "v4l" # Video4Linux
        Load  "record" # X event recorder-SHANE uncommented this
EndSection

Section "ServerFlags"
        Option            "allowmouseopenfail"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"

        # Modified by mouseconfig
        # Modified by mouseconfig
       
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Device" "/dev/input/mice"
        Option            "Protocol" "ExplorerPS/2"
        Option            "Emulate3Buttons" "no"
        #Option            "ZAxisMapping" "4 5"
        Option "ZAxisMapping" "6 7"
        Option "Buttons" "7"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Unknown"
        ModelName    "Unknown"
        HorizSync    30.0 - 96.0
        VertRefresh  50.0 - 160.0
EndSection

Section "Monitor"
        Identifier  "Monitor1"
        VendorName  "Unknown"
        ModelName    "Unknown"
        HorizSync    30.0 - 80.0
        VertRefresh  50.0 - 160.0
EndSection

Section "Monitor"
        Identifier  "Monitor2"
        VendorName  "Unknown"
        ModelName    "Unknown"
        HorizSync    40.0 - 96.0
        VertRefresh  50.0 - 90.0
EndSection

Section "Device"

        #Option            "DPMS" "on"
        Identifier  "Nvidia Card"
        Driver      "nv"
        BoardName  "Unknown"
        BusID      "PCI:1:5:0"
EndSection

Section "Device"
        Identifier  "Matrox Card"
        Driver      "mga"
        BoardName  "Unknown"
        Option            "sw_cursor"
        Option            "DPMS" "on"#Screen 1
        BusID      "PCI:0:13:0"
EndSection

Section "Device"
        Identifier  "S3"
        Driver      "s3"
        BoardName  "Unknown"
        Option            "sw_cursor"
        BusID      "PCI:0:15:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Nvidia Card"
        Monitor    "Monitor0"
        DefaultDepth    16
        SubSection "Display"
                Depth    16
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device    "Matrox Card"
        Monitor    "Monitor1"
        DefaultDepth    16
        SubSection "Display"
                Depth    16
                Modes    "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen2"
        Device    "S3"
        Monitor    "Monitor2"
        DefaultDepth    16
        SubSection "Display"
                Depth    16
                Modes    "800x600" "640x480"
        EndSubSection
EndSection


Section "DRI"
        Mode        0666
EndSection

Section "ServerLayout"
        Identifier    "Layout1"
        Screen 0        "Screen0"
        Screen 1        "Screen1" LeftOf "Screen0"
              Screen 2        "Screen2" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        Option            "Xinerama" "on"
EndSection


LinuxLala 03-13-2004 11:34 PM

Awesome bud. :)

redratio1 04-04-2004 01:59 AM

Hey toolshed, nice post.
I modified XF86Config, but I haven't been able to get it to work.

:scratch:

Nevermind guys, I think I've got it figured out.

arnyswart 05-08-2004 02:22 AM

Question
 
I have changed my XF86config file and then the buttons on either side did do left and right. I inputted the bash script and it automatically does everything at startup.

However my two buttons on either side suddenly switched off.

Help.

EDIT *Forget it, I installed from the link imwheel and this fixed my problems.

Arny!

LinuxLala 05-08-2004 02:59 AM

You mean that you got your mouse and it's buttons working but you boot your computer one day and found that your mouse was not working?

Could you post your /etc/X11/xfconfig file? Just do

less /etc/X11/XFconfig and copy it here.

arnyswart 05-08-2004 03:03 AM

Sorry it is all fixed. Although I have a bugger of an config file since it was rewritten by ATI when I installed my graphics card drivers.

Arny!

LinuxLala 05-08-2004 10:17 PM

Ok. Good.

Cheers.

David_g17 05-14-2004 06:16 PM

Help! please! this is driving me nuts!!!

i've been trying to do the same thing toolshed did, but i am having lots of problems.

i'm in Fedora Core 1, with a microsoft intellimouse. The wheel works (scrolls), but the side buttons don't work quite right.

the following are excerpts from files:
from /etc/X11/XF86config

Code:

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

from /etc/X11/xinit/xinitrc.d/mouse
(i think i'm supposed to make this file and i think it loads when x starts).
Code:

#!/bin/sh
 xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

and I created (or maybe modified, can't remember now) a file named imwheelrc at the following location:
/etc/X11/imwheel/imwheelrc
contents of that file are:
Code:

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


i know the buttons on the side of the mouse are being noticed, xev detects them, and in mozilla, the left button works as "page up" and the right button works as "page down"
:scratch:

any help would be greatly appreciated.

arnyswart 05-14-2004 06:27 PM

yeah I had the same problem but then I installed imwheel from the link in the first post of this thread.

http://jcatki.no-ip.org/imwheel/file...0.0pre1.tar.gz

Also do make the mouse bash file and it stops having to type it in. forget about making an imwheel file.

after rebooting it worked perfectly

Arny!

David_g17 05-14-2004 07:25 PM

thanks for the reply,

i tried removing version 6 of imwheel, and installing version 1 (as in the original post), rebooted, and it does the same thing.

any other ideas?

arnyswart 05-15-2004 12:46 AM

Have you gone into the mozilla preferences and looked at mouse options. There is a option down the bottom to match what the buttons do and it sounds like this option is inputted wrongly.

Let me get this straight.

1. Your mouse wheel works
2. the left and right buttons of the mouse wheel work
3. They are not going forward and back in terms of pages
4. You have definitely created the file mouse in the
/etc/X11/xinit/xinitrc.d/ folder
Not just the xint folder?

Arny!

David_g17 05-24-2004 02:23 PM

sorry about the long down time. had a lot to do at work lately.

1. yes. the mouse wheel scrolls up and down.
2. yes. xev gives output showing that the left and right buttons are recognized.
3. correct. the buttons paste highlighted text to the URL field in my browser.
4. yep. the text below is definitely in the file /etc/X11/xinit/xinitrc.d/mouse

Code:

#!/bin/sh
 xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

any ideas?:scratch:

thanks again for the help.

arnyswart 05-25-2004 04:46 AM

Bugger
 
ok it sounds like one of two problems.
1. IMWheel is not working properly.

here is a link to the mst current version of imwheel.
http://jcatki.no-ip.org/imwheel/file...0.0pre6.tar.gz

Make sure before you unpack it that you:
1. Run the "imwheel -k" command in your terminal to counteract your mouse file loader.
2. You delete the directory called imwheel from the X11 folder
3. You delete any other directories called imwheel from the X11 folder after you have uninstalled them. If you don't know how just delete them and run the imwheel it will overwrite them anyway.


2. Mozilla is incorrectly configured.
Goto Edit>>>Preferences>>advanced>>mouse Wheel
make sure you have the Alt, Control and Shift configured to move backwards and forwards while browsing.

Hope this helps

Arny!


All times are GMT -5. The time now is 05:23 AM.