Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 19th, 2005   #1
James Brown
First Cup of Ubuntu
 
James Brown's Avatar
 
Join Date: Apr 2005
Location: Earth
Beans: 8
HOWTO: 5 button mouse working on firefox (back/forward buttons)

Hi
I've got it here (for Xandros):

http://www.adamfranco.com/?site=afra...22&action=site

It works for me in Ubuntu. I've made some corrections...

1. Edit /etc/X11/xorg.conf

replace

Section "InputDevice"
Identifier "mouse.usb"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Emulate3Buttons" "YES"
Option "ZAxisMapping" "4 5"
EndSection

with

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

2. Install IMWheel via apt

3. put the following lines in the .xsession file in your home directory:**

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

4. put the following lines at the bottom of /etc/X11/imwheel/imwheelrc

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

"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

5. hit CTRL+ALT+BACKSPACE to restart X and log back in. Your back/forward buttons should now work in Firefox.

** this don't worked for me in Ubuntu. So I made a script file called "mouse", like the following, and put it on /home/"login"/.kde/Autostart, and in "Sessions">"start programs" on Gnome. Don't forget to make it executable (chmod +x mouse)

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

Last edited by James Brown; April 19th, 2005 at 11:40 PM..
James Brown is offline   Reply With Quote
Old April 20th, 2005   #2
dyle
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 6
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

Thanks! Worked for me in firefox. Didn't read the last part so my X session crashed on me when I made the .xsession file...oops!

Anybody know how to have this work with Epiphany? I'd rather use that browser but I'm really missing this feature for my mouse (MX500)
dyle is offline   Reply With Quote
Old April 20th, 2005   #3
dyle
First Cup of Ubuntu
 
Join Date: Apr 2005
Beans: 6
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

Found it!

Just edited /etc/X11/xorg.conf

Option "ZAxisMapping" "6 7"
Option "Buttons" "9"

Then edited the mouse script to reflect this

exec xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 " &
exec imwheel -k -b "67" &
exec $REALSTARTUP

Works with a Logitech MX500
dyle is offline   Reply With Quote
Old April 20th, 2005   #4
Gustav
Dipped in Ubuntu
 
Gustav's Avatar
 
Join Date: Apr 2005
Location: Sweden
Beans: 523
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

For me it was enough to do the editing of xorg.conf part.
Although I had to set the ZAxisMapping to "4 5" instead of "6 7".

So I recommend that you try without installing IMWheel and editing .session and if it still doesn't work after restart of X, do the rest of the stuff.

(I'm using a Intellimouse Explorer in Gnome)
__________________
Hackers of the world, unite!
Gustav is offline   Reply With Quote
Old April 20th, 2005   #5
Skaman
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 24
Send a message via ICQ to Skaman Send a message via MSN to Skaman
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

Quote:
Originally Posted by dyle
Found it!

Just edited /etc/X11/xorg.conf

Option "ZAxisMapping" "6 7"
Option "Buttons" "9"

Then edited the mouse script to reflect this

exec xmodmap -e "pointer = 1 2 3 6 7 4 5 8 9 " &
exec imwheel -k -b "67" &
exec $REALSTARTUP

Works with a Logitech MX500
great! I have a mx 510 (i'll try as soon as i can..)
u did all the process upthere or just edited this few lines in xorg.conf???
Skaman is offline   Reply With Quote
Old April 20th, 2005   #6
woifi
Just Give Me the Beans!
 
Join Date: Dec 2004
Location: Austria (Upper Austria)
Beans: 54
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

http://www.ubuntuforums.org/showthread.php?t=3828

... works in hoary too
woifi is offline   Reply With Quote
Old April 20th, 2005   #7
Gnobody
Gee! These Aren't Roasted!
 
Gnobody's Avatar
 
Join Date: Dec 2004
Location: Nova Scotia, Canada
Beans: 195
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Gnobody
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?
Gnobody is offline   Reply With Quote
Old April 20th, 2005   #8
woifi
Just Give Me the Beans!
 
Join Date: Dec 2004
Location: Austria (Upper Austria)
Beans: 54
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

Quote:
Originally Posted by Gnobody
I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?
I want to get the buttons work with nautilus too, I'm working on that
woifi is offline   Reply With Quote
Old April 20th, 2005   #9
Skaman
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 24
Send a message via ICQ to Skaman Send a message via MSN to Skaman
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

Quote:
Originally Posted by Gnobody
I have known about this hack for a while, but is there anyway to get the extra buttons to work with Nautilus and Konqueror?
i did it and in conqueror the buttons work great!
the only problems ar with scrolling buttons (tey go back and forward if there is the possibility to do it) and with the 9th button that simply doesnt work.....

for the rest works great!

anyway i don'use those buttons
Skaman is offline   Reply With Quote
Old April 20th, 2005   #10
hobnob
5 Cups of Ubuntu
 
hobnob's Avatar
 
Join Date: Apr 2005
Location: Oxford, UK
Beans: 30
Re: HOWTO: 5 button mouse working on firefox (back/forward buttons)

I have a USB Optical IntelliMouse, and only needed to edit xorg.conf as follows to get the side buttons working in Firefox.
Code:
	Option		"Protocol"		"ExplorerPS/2"
	Option          "Buttons"               "7"
	Option		"ZAxisMapping"		"4 5"
KISS in action
hobnob is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:11 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry