LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   making all mouse buttons work in slackware 10.1 (http://www.linuxquestions.org/questions/slackware-14/making-all-mouse-buttons-work-in-slackware-10-1-a-288240/)

TruANTOlogy 02-09-2005 03:31 PM

making all mouse buttons work in slackware 10.1
 
Hey all,

Running slackware 10.1 and want to utilize all buttons on my mouse.
I have a Logitech LX 750 Combo (Wireless Mouse & Keyboard).
My Mouse buttons are as follows:
Left Click, Middle Click (Scroll wheel), Right Click, Side Click#1 (Top), Side Click#2 (Bottom), & Application Button (Below the scrollwheel)
This Mouse has a 4-way scrollwheel (Up, Down, Left & Right)

My Main reason for wanting all the buttoins is so that I can navigate through webpages (Firefox) and folders/files (Konqueror) using the side buttons as "Back" and "Forward".

Any Idea How to accomplish this?

Thanks In Advance,
Patrick

ps, included is the "InputDevice" Section of my xorg.conf

Code:

Section "InputDevice"

        Identifier  "Mouse1"
        Driver  "mouse"
        Option  "Protocol"        "IMPS/2"
        Option  "Device"        "/dev/mouse"
        Option  "ZAxisMapping"        "4 5"

EndSection


Okie 02-09-2005 03:39 PM

thats what i use to make my optical wheel mouse work is what you posted, what i do that most Slackers would probably call wrong is, i delete those three xorg files in /etc/X11 and rebuild a new one by running xorgconfig from the console, then add the section for the mouse just as you have posted...

TruANTOlogy 02-09-2005 03:43 PM

Quote:

Originally posted by Okie
thats what i use to make my optical wheel mouse work is what you posted, what i do that most Slackers would probably call wrong is, i delete those three xorg files in /etc/X11 and rebuild a new one by running xorgconfig from the console, then add the section for the mouse just as you have posted...
That setting only allows the vert scroll work, i want to make the side buttons work as well

Okie 02-09-2005 03:55 PM

sounds like you have more buttons on your mouse than i do, as i only have a three button wheelmouse, i think it wont be much different something like Option "ZAxisMapping" "4 5 6 7" but i do not know the syntax exactly so i would definitly get a second opinion from someone that is more familier with configuring a mouse with 7 buttons...

coffeedrinker 02-09-2005 04:03 PM

imwheel will let you set the side buttons to whatever you want for each program

TruANTOlogy 02-09-2005 04:37 PM

Quote:

Originally posted by coffeedrinker
imwheel will let you set the side buttons to whatever you want for each program
thanks, now all i have to do is google imwheel...shouldnt be hard...will update the thread to let you all know if it works or not.

Thanks,
Patrick

xushi 02-09-2005 04:42 PM

TruANTOlogy, pleas keep this post updated with your results..

I've tried imwheel before, and was so confused where the closest i got was the side buttons going up and down a page, while the scroll button going backwards and farwards through the pages.. lol

Thanks =)

Boow 02-09-2005 09:06 PM

try this web page out its for a microsoft explorer but you can adapt it to you mouse.

http://www.groundhog1.com/mouse/MSExplorer.html

TruANTOlogy 02-09-2005 11:36 PM

::Update::

IMWheel indeed does confuse!
Will check out that link and update again...thanks again for everyones help

TruANTOlogy 02-10-2005 11:12 AM

::Update::

I FINALLY GOT ALL BUTTONS SHOWING IN XEV!!!!!

Ok people, this is where I am now...
My buttons work as I want in Firefox:
  • My Scrollwheel Works!
  • My Side Buttons Work as "Back & Forward"
Reason being is that firefox has native support for side buttons (it maps 6 & 7 to "Back & Forward" automatically)
I still don't have the ability to use the side buttons in other apps (ie; Konqueror) yet as I dont know how to configure imwheel.
Here's what I did to make it work thus far:

I first made some changes to my xorg.conf (In your case it might be XFree86.Conf) located in /etc/X11/xorg.conf:
Code:

Section "InputDevice"

        Identifier  "Mouse1"
        Driver  "mouse"
        Option  "Protocol"      "ExplorerPS/2"  # apparently the only protocol that tells X to accept more                 
        Option  "Device"        "/dev/psaux"    #than 5 buttons
        Option  "ZAxisMapping"  "6 7"          # this tells x to make buttons 6 & 7 the z axis (up&down)
        Option  "Buttons"      "7"                  # total number of buttons

EndSection

The above changes made all buttons come up when I open up "xev" in the console. However, X now thought that my scroll wheel was my side buttons, and in firefox my scrollwheel acted as Back & Forward buttons! Well, next I did some button remapping by adding a line to my xinitrc.kde script located in /etc/X11/xinit/:
Code:

# Remaps Mouse Buttons:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

# Start the window manager:
startkde

All done...things work perfectly in firefox (don't worry, the scrollwheel works everywhere else as well.
I couldn't quite get the whole IMWHEEL thing, for example, i understand that imwheel needs to be ran at every startup, but the script in the guide that boow gave us is just confusing...for example, what's this?:
Code:

[ -r /etc/sysconfig/mouse ] && . /etc/sysconfig/mouse
and this?:
Code:

BINARY=$(which imwheel)
$BINARY -p -b "67"
# imwheel ends here

If anyone knows what the above items are, please let us know

Thanks,
Patrick (TruANT)

coffeedrinker 02-10-2005 12:23 PM

Here's what I do for imwheel:

get the package from:
http://imwheel.sourceforge.net/

in your .xinitrc or .xprofile or wherever you want before your window manager starts:
xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067

in ~/.imwheelrc for individual user settings:
"Mozilla$"
None, Left, Control_L|Page_Down
None, Right, Alt_R|Left

"Konqueror$"
None, Right, Alt_L|Left

These settings get one side button going to next tab in Mozilla and the other as a back button. The konq setting gets me a back button. I don't use imwheel for anything else, but you follow the example above.

TruANTOlogy 02-10-2005 07:57 PM

w00t!!!

Got it working...here is What I did:

"/etc/X11/xorg.conf"
Code:

Section "InputDevice"

        Identifier  "Mouse1"
        Driver  "mouse"
        Option  "Protocol"      "ExplorerPS/2"  # apparently the only protocol that tells X to accept more                 
        Option  "Device"        "/dev/psaux"    #than 5 buttons
        Option  "ZAxisMapping"  "6 7"          # this tells x to make buttons 6 & 7 the z axis (up&down)
        Option  "Buttons"      "7"                  # total number of buttons

EndSection

"/etc/X11/xinit/xinitrc.kde'
Code:

# Remaps Mouse Buttons & Adds "IMWheel" functionality:
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
imwheel -k -b 0067

# Start the window manager:
startkde

"etc/X11/imwheel/imwheelrc"
Code:

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

If anyone has any questions, feel free to email me at duffboy12345@hotmail.com

Thanks Again To EVERYONE who helped get me this far!!

Peace,
TruANT

coffeedrinker 02-11-2005 01:20 AM

Glad you got it working.

You might want to remove your custom settings out of /etc/X11/xinit/xinitrc.kde and put them in .xinitrc instead. If you upgrade your kde packages in the future that file will be overwritten and you'll have to set it up again.

There is also a benefit of using .imwheelrc in your home directory too. I can make backing up custom settings easier rather than having various files in etc needing to be restored if you reinstall.

Ultimately, it still works either way though.

TruANTOlogy 02-11-2005 06:35 AM

Quote:

Originally posted by coffeedrinker
Glad you got it working.

You might want to remove your custom settings out of /etc/X11/xinit/xinitrc.kde and put them in .xinitrc instead. If you upgrade your kde packages in the future that file will be overwritten and you'll have to set it up again.

There is also a benefit of using .imwheelrc in your home directory too. I can make backing up custom settings easier rather than having various files in etc needing to be restored if you reinstall.

Ultimately, it still works either way though.

good thoughs, thanks!


All times are GMT -5. The time now is 02:13 AM.