Announcement

Collapse
No announcement yet.

ms intellimouse optical

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ms intellimouse optical

    I configured my IntelliMouse Optical to function correctly by Enable Intellimouse Support. I changed my the relevant portion of these files looks like:

    NOTE: The following works for the Microsoft IntelliMouse Explorer 3.0A. It will enable full support for the forward and back side buttons (works in Nautilus, Epiphany, Firefox, Konqueror). As always, backup your files before mucking with them.

    1. Install imwheel:

    Code:
    sudo aptitude install imwheel
    2. Edit xorg.conf:

    Code:
     sudo gedit /etc/X11/xorg.conf
    3. Replace the mouse section with the following:

    Code:
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"CorePointer"
    	Option		"Device"		"/dev/input/mice"
    	Option		"Protocol"		"ExplorerPS/2"
    	Option		"Emulate3Buttons"	"false"
    	Option		"Buttons" "7"
    	Option		"ButtonMapping"		"1 2 3 6 7"
    	Option		"ZAxisMapping" "4 5"
    	Option		"Resolution" "100"
    EndSection

    4. Create .imwheelrc:

    Code:
    sudo gedit .imwheelrc
    5. Paste in the following code:

    Code:
     # Intellimouse or Mouseman's Back/Forward Buttons
     
       ".*"
       None, Up, Alt_L|Left
       None, Down, Alt_L|Right
    
    # [url]http://ubuntuforums.org/showthread.php?t=178574#5[/url] I added
    
       "(null)"
       None, Up, Alt_L|Left
       None, Down, Alt_L|Right
    6. Edit the startup file to make imwheel start with X:

    Code:
    sudo gedit /etc/X11/imwheel/startup.conf
    Find this line and change the 0 to a 1:

    Code:
    IMWHEEL_START=0
    To look like:
    Code:
    IMWHEEL_START=1
    7. Create one last file:

    Code:
    sudo gedit /etc/X11/Xsession.d/63xmodmap
    Paste in the following code:

    Code:
     killall imwheel
       xmodmap -e "pointer = 1 2 3 4 5 6 7"
       BINARY=$(which imwheel)
       $BINARY -k -p -b "6 7"
    8. Make the file executable:

    Code:
     sudo chmod 777 /etc/X11/Xsession.d/63xmodmap
    9. Finally restart X:

    CTRL + ALT + BACKSPACE


    The only problem is that I cannot use this configuration for my other users on the same computer.

    So I created IMWheel start-up script:
    Code:
    sudo mkdir /home/login
    gksudo gedit /home/login/mouse
    Then I inserted the following into this new file:
    Code:
    #!/bin/sh
    exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
    exec imwheel -k -b "6 7" &
    exec $REALSTARTUP
    I want to grant execution for everyone to this new script:
    Code:
    sudo chmod +x /home/login/mouse
    My question is how do I configure this script to be executed at start-up?
    I am using Kubuntu 7.04

    #2
    Re: ms intellimouse optical

    Wow! Nobody knows...

    Comment


      #3
      Re: ms intellimouse optical

      For us unwashed masses, what exactly is the difference between the Intellimouse optical and the MS Wheel Mouse Optical USB mouse? I have the latter, and have never touched a system file to reconfigure it -- as far as I can tell, all the functions of left, right, and center-clicking "just work" in Feisty, along with the wheel scrolling.

      Comment


        #4
        Re: ms intellimouse optical

        The Intellimouse optical and the MS Wheel Mouse Optical USB mouse are one in the same. For whatever reason, Kubuntu 7.04 feisty fawn does not recognize it correctly and I had to resort to editing some of the system files for it to function properly. But my question was how do I configure this script to be executed at start-up? Because I cannot use this configuration for my other users on the same computer.

        Comment


          #5
          Re: ms intellimouse optical

          Well, setting aside the question of why the mouse is automatically installed correctly on some systems, and not others, there is an "Autostart" folder within the hidden folder .kde in each user's home directory. I'm not the expert on running scripts, but it seems that the things in that Autostart folder are supposed to run when the user logs in.

          HTH


          p.s. you can run
          Code:
          sudo dpkg-reconfigure xserver-xorg
          and it has options for the mouse configuration -- have you tried any of those options?

          Comment


            #6
            Re: ms intellimouse optical

            The ~/.kde/Autostart folder is the correct place for scripts relating to individual users, but the appropriate place for actions that apply to all users is in the script "/etc/rc.local". That's supposed to be the last thing run during the boot process (if it's still possible to define a "last thing" with the new Upstart boot program.

            BTW, why are you using gnome-ish commands like gksudo and gedit instead of "kdesu" and "kate"?

            Comment


              #7
              Re: ms intellimouse optical

              I added in the script to "/etc/rc.local", but I still can't get my USB MS optical wheel mouse identified for my other users. I must be missing something.

              Code:
              #!/bin/sh
              exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
              exec imwheel -k -b "6 7" &
              exec $REALSTARTUP
              I was using using gnome-ish commands like gksudo and gedit instead of "kdesu" and "kate" because I was using Ubuntu forum for help. Please forgive me for my noobish ways. I promise to reform

              Comment


                #8
                Re: ms intellimouse optical

                This is the script that I have in my users "/etc/rc.local"
                Code:
                #!/bin/sh -e
                #
                # rc.local
                #
                # This script is executed at the end of each multiuser runlevel.
                # Make sure that the script will "exit 0" on success or any other
                # value on error.
                #
                # In order to enable or disable this script just change the execution
                # bits.
                #
                # By default this script does nothing.
                
                # Configure this script to be executed at startup mouse driver for all users
                #!/bin/sh
                exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
                exec imwheel -k -b "6 7" &
                exec $REALSTARTUP
                
                exit 0
                Question... Do I leave "exit 0" in there or do I need to change it?

                Thanks
                Kannedheat

                Comment


                  #9
                  Re: ms intellimouse optical

                  The exit 0 line is the normal return from a script that runs successfully. It was there originally so that the script would have an executable line and return. I'd leave it. You might want to consider any possible error returns you would like to add with exit 1 - 255 (or is it 65535?).

                  Meanwhile, is this now running properly for all users? Looking at the script, I wonder, what is $REALSTARTUP and where is it defined? Unless it is an environment variable that is defined for all users, it might not be running.

                  Comment


                    #10
                    Re: ms intellimouse optical

                    Thanks! My mouse now works properly.

                    Comment


                      #11
                      Re: ms intellimouse optical

                      most excellent!

                      Comment

                      Working...
                      X