LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-22-2003, 01:52 PM   #91
Ferenan
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0

hey, I fixed it...

In fact I can do different things with the buttons and with different programs... for example, on all programs I have the small button do "enter" and the large button do "close" ... but with mozilla i set it up for the large button to do "ctrl+w" which instead of closing the entire program it closes just the current tab very useful for quick browsing.


I left pre5 installed just that in the .imwheelrc I have

"^Mozilla"
None, Left, Return
None, Right, Ctrl_L|W

".*"
None, Left, Return
None, Right, Alt_L|F4

and also I had to put these

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"

in the ~/.xsession

Hope that helps! I have full control of the mouse now, and searching for help I manage to work the keyboards extra buttons too

Now if I could get this Lexmark z23 printer to work... >.>
 
Old 10-06-2003, 01:53 AM   #92
Toker
Member
 
Registered: Sep 2003
Distribution: Mandrake9.1
Posts: 92

Rep: Reputation: 15
I'm running kde3.1.0, XFree4.3 and Mandrake9.1

My XF86Config-4 mouse section:

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/psaux"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

I have a file 'Autostart' in the Autostart directory of .kde that has:

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

and I have /home/me/.imwheelrc with:

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

I can't get any side button events to show in xev, I have tried both IMPS/2 and ExplorerPS/2 protocalls, with no results.

Any fresh ideas?

**Edit**
I noticed a file in /etc/X11/imwheel/ that was imwheelrc, but that seems to be more of a configuration example/template file... Am I correct? I really didn't understand what was being said about the thumb buttons, and everything I'm seeing in this thread is with people that have the buttons working, but want to re-map them...

Last edited by Toker; 10-06-2003 at 02:06 AM.
 
Old 10-23-2003, 12:15 PM   #93
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
I read the entire post a bunch, and I still can't get it to work...I'm very new so a lot fo this is hard for me...
Its a microsoft explorer, in a PS/2 slot

Anyway, here is the relevent section of the XF86 config

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "6 7"
Option "Buttons" "7"
Option "Emulate3Buttons" "no"

Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "6 7"
Option "Buttons" "7"
Option "Emulate3Buttons" "no"
EndSection


(sorry im not sure which is the right one)

I made a .xinitrc file in /home and in /root ...I wasn't sure which was the right one

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

then i installed the imwheel and created .imwheelrc in my home directory


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

All 7 buttons check out in xev...........the side buttons are 4/5 and wheels are 6/7

but now, the side buttons scroll, and the wheel buttons do nothing!

What did I do wrong?
 
Old 10-23-2003, 12:58 PM   #94
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
with a bit of experimentation...i found that both wheel buttons act as a left mouse button!
Curious and Curiouser!
 
Old 10-23-2003, 01:30 PM   #95
Tyir
Member
 
Registered: Sep 2003
Distribution: Slackware 9.1 with fluxbox
Posts: 259

Rep: Reputation: 30
I ran the command xmodmap -e "pointer = 1 2 3 6 7 4 5" manually........and now the scroll works, but the side buttons do nothing, and sev says they are buttons 6&7.....
 
Old 10-24-2003, 03:10 PM   #96
kkant
LQ Newbie
 
Registered: Oct 2003
Posts: 8

Rep: Reputation: 0
AAAAARGH!!!!!! After many hours of fruitless tweaking, I was about ready to toss the whole freaking computer out the window--before I chanced across this thread. I FINALLY have it working, with imwheel 1.0.0pre5. Thanks to everyone in this thread for all the pointers. The key was to use "Left" and "Right" instead or "Up" and "Down" in the imwheelrc. Here's the configuration I have:

imwheel 1.0.0pre5
MS Intellimouse Explorer USB (plugged into the USB port)
Redhat 9 (un-updated) along with whichver XFree86 came with RH9

And here's what I did to the files:

~/.imwheelrc:

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




/etc/X11/XF86Config:

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


NOTE: One thing to watch out for is the line "Identifier "Mouse0"". You have to make sure this identifier corresponds to the other line in XF86Config which references "Mouse0" (it is in section "ServerLayout" in my XF86Config file). The reference in ServerLayout (or whatever) may be different from Mouse0--in which case you have to set the identifier above to whatever that is.






startup script (~/.kde/Autostart/blahblah.sh, .xsession, .xinitrc, or whatever else gets run automatically):

xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b "67"






Finally, I also copied ~/.imwheelrc to /etc/X11/imwheel/imwheelrc, but I don't think this is necessary.

Last edited by kkant; 10-24-2003 at 03:13 PM.
 
Old 10-27-2003, 03:53 PM   #97
Ferenan
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Gnome!

I got my mouse to work for kde, but I would like to get it to work on gnome

I did the same thing as in kde but it doesnt work, has anyone succeded in making the side buttons work in gnome?

Note: the buttons work in some applications like amsn o.0 I have no idea why they do there but not normally...
 
Old 11-01-2003, 04:48 PM   #98
Menteco
LQ Newbie
 
Registered: Nov 2003
Location: Salto, Uruguay
Distribution: Debian Sid
Posts: 1

Rep: Reputation: 0
Intellimouse side buttons + Debian + Genome

Hi, I am using Debian Sid, gdm and Gnome 2.4. I got tired of trying every hack mentioned in this thread just to have both Intellimouse side buttons perform a page_up action.
I search the forums and other sites for "debian intellimouse" and no one seems to have the problem I have so I guess it's time to ask.
The wheel works fine, the problem are the side buttons.
None of .xinitrc, .xdefaults, .Xdefaults, rc.local, .xsession, .imwheelrc, imwheel, etc at their respective locations seem to be used when I start my session. The only way I could launch the xmodmap and imwheel commands is through a script file I launch from "startup programs" in Gnome session manager, and I juts get the page_up action on both side buttons.
I tried deleting /etc/X11/imwheel/imwheelrc, leaving ~/.imwheelrc, and creating /etc/imwheel. None worked.
My current configuration is this:
nano /etc/X11/XF86Config-4
-------------------
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mouse1"
# Option "Protocol" "ImPS/2"
Option "Protocol" "ExplorerPS/2"
# Option "Emulate3Buttons" "true"
Option "Buttons" "7"
# Option "ZAxisMapping" "4 5"
Option "ZAxisMapping" "6 7"
EndSection
-------------------

//create script file to be launch in session startup
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -p -b "67"
//make script file executable
chmod u+x file
//add the script to gnome session manager
applications > desktop preferences > advanced > sessions > startup programs
/home/menteco/docs1/debian/imouse
nano /home/menteco/docs1/debian/imouse

~/.imwheelrc
----------
".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right
----------
chmod a+x .imwheelrc

I'll welcome your help :-)
 
Old 11-05-2003, 03:49 AM   #99
aton111
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 8.0
Posts: 2

Rep: Reputation: 0
Has ANYONE gotten this crap to work? I still cant get it to work after trying everyones suggestions. All of my buttons worked to begin with, I could scroll up and down with the wheel, however the side buttons just were mapped to forward and backward in mozilla or anything for that matter. Can I just remap those to buttons somewhere? Ive been messing with linux for about 4 days so go easy on me please.

Thanks for any help

Last edited by aton111; 11-05-2003 at 03:59 AM.
 
Old 11-05-2003, 08:45 PM   #100
mattsday
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian/Sarge
Posts: 3

Rep: Reputation: 0
I've been trying to get this to work, and like so many others, I can only get it to pageup/pagedown.

Here's my config:

XF86Config
Code:
Section "InputDevice"
	Driver "mouse"
	Identifier "Mouse0"
	Option "ButtonNumber" "7"
	Option "Device" "/dev/input/mice"
	Option "InputFashion" "Mouse"
	Option "Name" "USB-Mouse"
	Option "Protocol" "ExplorerPS/2"
	Option "ZAxisMapping" "6 7"
	Option "Buttons" "7"
EndSection
.imwheelrc
Code:
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
I run the following commands upon starting X:
Code:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b -p "67"
(Yes, I have tried it manually). I am using 1.0Pre5, although have tried using pre1 too - pre5 at least lets me pageup/pagedown pre1 doesn't seem to give any output at all. I have an intellimouse explorer 3.0.

--Matt
 
Old 11-05-2003, 11:15 PM   #101
aton111
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 8.0
Posts: 2

Rep: Reputation: 0
Thats EXACTLY what I have, but my mouse is the intellimouse optical not the explorer. I've given up for now though. My wheel worked before I even tried this and it still works in my current config. Im just trying to get the two side buttons to work. After about 2 hours of messing, when i run xev the button codes for the side buttons have switched to 2 and 3 and the wheel still works. I have no idea I'll mess with it more after I learn linux a little bit better.

Laterz
 
Old 11-06-2003, 03:29 AM   #102
mattsday
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian/Sarge
Posts: 3

Rep: Reputation: 0
Strangely, in some applications, this works as left + right. NOT alt-left/alt-right, but just the plain keyboard strokes...

This is driving me nuts! Perhaps it's related to the XFree version?

I'm running 4.3.0...

--Matt
 
Old 11-19-2003, 06:26 PM   #103
Hwulex
LQ Newbie
 
Registered: Nov 2003
Distribution: Ubuntu 12.10
Posts: 4

Rep: Reputation: 0
Well, this is half working, but like many others, I'm getting Page Up and Page Down rearing their ugly heads.

My problem you see is that i'm using a Logitech iFeel MouseMan, which is only a 6 button mouse. So, I logically edited the settings written here for 6 buttons (ie, leave out the forward) but they were all over the place.

At the moment, after some fiddling, I have
Scroll Up = Page Up
Scroll Down = Page Down
Thumb Button = Back

Obviously, this is 'ok' because they all do do what they're supposed to. Thing is, page up and down are a nuisance, especially when surfing (Opera).

These are my settings:

Code:
XF86Config Section

        Identifier      "Mouse1"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "ZAxisMapping"          "5 6"
        Option          "Buttons"               "6"
Code:
~/.kde/AutoStart/sidebuttons (chmod 755)

#!/bin/sh
xmodmap -e "pointer = 1 2 3 5 6 4"
imwheel -k -b "564"
Code:
~/.imwheelrc

".*"
 None, Up, Alt_L|Left


However. If I run from the CLI:
root@luigi: xmodmap -e "pointer = 1 2 3 5 6 4"
root@luigi: imwheel -k -b 56

Then they become:
Scroll Up = Page Up
Scroll Down = Normal Up
Thumb = Back

Weird.


Any help would be greatly appreciated, especially from those experienced with a 6 button mouse.


Running KDE on Slackware 9.1, with default Kernel.

Last edited by Hwulex; 11-19-2003 at 06:40 PM.
 
Old 11-23-2003, 01:49 PM   #104
jim-j
LQ Newbie
 
Registered: Nov 2003
Location: Sioux Falls SD USA
Distribution: CentOS 7
Posts: 27

Rep: Reputation: 15
How to enable the side buttons in Fedora Core 1 default Gnome install

How to enable the side buttons in Fedora Core 1 default Gnome install.

A lot of my text is just copied from earlier posts. The one new thing I had to do was add the "-f" switch to my imwheel command. Without this it wouldn't work. Below are all the steps I followed to enable my USB "Microsoft Trackball Optical" side buttons to allow me to go forward and back in Mozilla Firebird.

************Summary Steps************
1. Download and install imwheelrc
2. Edit "/etc/X11/XF86Config"
3. Create ".imwheelrc"
4. Manually run and test imwheelrc
5. Run imwheelrc automatically at login



************Detailed Step 1************
1. Download imwheel-1.0.0pre5.tar.gz from http://jcatki.dhs.org/imwheel/
2. tar xzvf imwheel-1.0.0pre5.tar.gz
3. cd imwheel-1.0.0pre5
4. ./configure
5. make
6. make install
Note that you must be root before running step 6. If you run into trouble in the earlier steps you may want to try them as root too. Run "su -" to get root privileges.



************Detailed Step 2************
In the mouse section in "/etc/X11/XF86Config" I had to replace:
Option "Protocol" "IMPS/2"
with
Option "Protocol" "ExplorerPS/2"

Note that my trackball is plugged into a USB port.

I also had to replace:
Option "ZAxisMapping" "4 5"
with
Option "ZAxisMapping" "6 7"

The last edit I made was to add this line:
Option "Buttons" "7"

So my complete "Mouse0" section now looks like this:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
Option "Emulate3Buttons" "no"
EndSection



************Detailed Step 3************
Create a file in your home directory called ".imwheelrc" with this text in it:
".*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right



************Detailed Step 4************
Run these two commands:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -f -b 0067

You should now be able to use your forward and back buttons in Mozilla (and Firebird).

If you receive a long error message like this:
INFO: current pid 8872 is imwheel.
WARNING: imwheel pid file could not be removed.
Perhaps you want the -p option.
Or chown root and chmod u+s the imwheel executable...
: Operation not permitted
ERROR: Couldn't write pid to pid file
Perhaps you want the -p option to avoid this...
Otherwise you may SUID root the imwheel executable.
: Permission denied

then you need to run (as root):
chown YOURUSERNAME /tmp/imwheel.pid

For example, if you username is bob you would run
chown bob /tmp/imwheel.pid

Now try running "imwheel -k -f -b 0067" again. If the side buttons still don't work in Mozilla you'll have to keep on searching for help, the rest of this post won't be of any use to you.



************Detailed Step 5************
Now that you've gotten the side buttons to work the only thing left to do is to get it to run automatically at login.

Create a file called "imwheelstart.sh" in your home directory with these commands in it:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -f -b 0067

Make the file executable
chmod u+x imwheelstart.sh

You should now be able to run this file from your home directory by running "./imwheelstart.sh".

Add the file to Gnome "Startup Programs" list by going to:
-RedHatStartMenu->Preferences->More Preferences->Sessions
-Chose the "Startup Programs" tab
-Click the "+Add" button
-Browse to the file we made above "imwheelstart.sh"
-Click "OK", "OK", "Close" to save and exit out of the Sessions program

Your side buttons should work now automatically whenever you login.



************The End************
Although I haven't experimented with it yet, you can enable the side buttons to do different actions for each program you run. The file "/etc/X11/imwheel/imwheelrc" has lots of examples on how to do this. If you wanted to use all the settings in this file simply overwrite your home ".imwheelrc" file with this one.
 
Old 11-24-2003, 10:35 AM   #105
Datalus
LQ Newbie
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Mandrake
Posts: 7

Rep: Reputation: 0
Unhappy

Please hellp me with something else!
I need to map keyboard buttons to the side buttons!!!!
"Zaxismapping" is all I've been reading the past two months!
I just want them to be Ctrl and Alt...
 
  


Reply

Tags
mouseconfig



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.1 and Intellimouse Optical side buttons STuPiDiCuS Linux - Hardware 1 09-23-2004 10:23 PM
side mouse buttons on intellimouse Slack10 Earth Slackware 7 07-18-2004 11:50 AM
Intellimouse side buttons (yet again?) Toker Linux - Newbie 7 10-05-2003 01:55 AM
Intellimouse AND Side Buttons, HOW TO- Alternate Caoster Linux - Hardware 0 07-18-2003 04:53 AM
side-buttons. intellimouse ! sapilas Linux - Distributions 2 05-24-2002 04:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration