Who this is for:
People running Ubuntu 10.04+ who want their mouse to register a left + right click to be 2 events (left mouse and right mouse), rather than the default of emulating a middle click.
- This is very important if you play many games, or if you simply have a middle button on your mouse and don't like the default Ubuntu behavior.
This has been tested successfully with Ubuntu 10.04 alpha 3 64bit, and should work fine after Ubuntu 10.04's formal release and both platforms (32 and 64bit).
A brief back story:
The new xorg in 10.04 does not depend on /etc/X11/xorg.conf or even HAL for that matter now.
So a new system of using udev gets this working quite easily and effectively.
Ok, let's do it!:
To get it working properly, Open up a terminal, in Applications --> Accessories --> Terminal and run the following command:
Enter in your password when prompted, then copy and paste this into gedit:
gksu gedit /etc/udev/rules.d/mouse-gaming.rules
Save the file in gedit, then exit gedit.
Now all you need to do is to unplug your mouse, then plug it back in again. The settings will have come into effect and your mouse will be good to use again for lots gaming in Lucid
If you're too lazy to unplug and replug your mouse in, you may alternatively run the following from a terminal:
sudo service udev restart
To reverse this back to the way it was:
Open up a terminal, in Applications --> Accessories --> Terminal and run the following command:
Then enter in your password if / when prompted.
sudo rm /etc/udev/rules.d/mouse-gaming.rules
- I have to give thanks to pi/roman for his great tutorial here which details the process to get a touchpad working on a laptop nicely with udev.
- Restarting udev is better than disconnecting and reconnecting your mouse, with thanks to tqft for his post here
- Also this is in effect a continuation from my last thread here about getting it to work the old way with HAL
Ubuntu 10.10 note:
An easier way to do this in Ubuntu 10.10 (this may work in Ubuntu 10.04, but is untested by myself):
For every new mouse that you use on your Ubuntu 10.10 system, press the middle mouse button (which on most mice all you have to do is push down on the scroll wheel).
This tells Ubuntu that you've got a middle mouse button, and hence you have no need to emulate it for that particular mouse.
This has immediate effect - no need to restart X