UPDATE 10/24/2007: This method using the evdev driver is now obsolete.
A newer project called btnx is MUCH easier and more feature rich.
Ubuntu how-to HERE.
Before changing to btnx, please remove the evdev device from xorg.conf and revert to the default device "/dev/input/mice". You may also need to change "protocol" to "auto".
-----------------------------------------------------------------------
Logitech has put out a GREAT product that is fully usable in Ubuntu Linux once properly configured. I've spent several frustrating hours figuring this out and hope this guide might be helpful to others.
Big thanks to to Endy at his thread: http://www.ubuntuforums.org/showthread.php?t=65471
1. Edit the xorg.conf file
First we'll tell X how to configure our G7.
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo gedit /etc/X11/xorg.conf
Scroll down until you find the mouse section, something like:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
REPLACE the entire mouse section from "Section "InputDevice"" to "EndSection" with the following:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Protocol" "evdev"
Option "Dev Name" "Logitech USB Receiver"
Option "Device" "/dev/input/mice"
Option "Buttons" "8"
Option "ZAxisMapping" "4 5 7 8"
EndSection
Save the file.
Note: If the above code doesn't work for you, read the link referenced above which describes how to find a more specific "Device" and a "Dev Phys" entry using output from "cat /proc/bus/input/devices". Note the mouse has two entries and you will have to experiment with both.
2. Restart X
First, bookmark this page because you will need to come back to finish. Then write down the following steps:
1. Log out like usual.
2. Simultaneously press "Control + Alt + Backspace"
3. If the mouse cursor moves like it should, log back in and procede to the next section.
If the mouse cursor won't move, simultaneously press 'CONTROL + ALT + F1" and type the following to restore your prior settings:
Code:
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
sudo restartx
3. Configure key-bindings
First install xvkbd and xvindkeys.
Code:
sudo apt-get install xvkbd xbindkeys
gedit ~/.xbindkeysrc
You then have two choices of code to enter. The following code will
1. Allow the mouse "back" button to go back in Nautilus.
2. Allow the left/right tilt on the scroll wheel to scroll text left and right in programs such as Firefox when applicable.
Copy and paste the following (but see note below!):
Code:
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:6
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Right]""
m:0x0 + b:7
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Left]""
m:0x0 + b:8
Change the "L" in "Left" to a capital "L" !!!
Save the file.
OR you can use my prefered code below which will
1. Allow the mouse "back" button to go back in Nautilus.
2. Allow the left/right tilt on the scroll wheel to move through open tabs in Firefox!
Copy and paste the following (but see note below!):
Code:
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:6
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Control_L]\[Page_Down]""
m:0x0 + b:7
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Control_L]\[Page_Up]""
m:0x0 + b:8
Change the "L" in "Left" to a capital "L" !!!
Save the file.
Finally, go to "System > Preferences > Sessions", click on the "Startup Programs" tab, click "+Add" and enter "xbindkeys" as a Startup Command.
Log out, then log in again and run a final test.
Bonus: You do not need the "Logitech Applet" as you can change the sensitivity settings directly on the G7 mouse by pressing the "+" and "-" buttons.
Bookmarks