Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to disable the 3rd button emulation in ubuntu 9.10. Normally, I'd just change the option in xorg.conf and it would go away - but how do I deal with an autodetected mouse?

For example, I've got a mouse I connect to USB and it has the emulation enabled by default. How do I change it in that case?

share|improve this question


share|improve this answer
It works, but I won't upvote a post containing only a link to a massive wiki article. Please copy relevant information here. – viraptor May 22 '10 at 20:13
What's the point in duplicating content? – Florian Diesch May 22 '10 at 21:04
wikis change. Besides you have to read above the anchor you provided too to know how what are .fdi file and where to put them. – viraptor May 22 '10 at 21:49
That's about the same as why I prefer to link this page: It gets updated for newer versions of Ubuntu so you know where to look if you upgrade to a newer version, and the page has all the information you need while I may forget something that's obvious to me (but maybe not to you) when paraphrasing or copying the text. – Florian Diesch May 22 '10 at 23:40
up vote -1 down vote accepted

As described in, this can be achieved via the hal policy configuration in ubuntu 8.10 -- 9.10. All .fdi files in /etc/hal/fdi/policy will affect the device being plugged in, if the specific match succeeds.

Current properties of a device can be checked via lshal | less. A mouse device will most likely contain a line like:

info.capabilities = {'input', 'input.mouse'} (string list)

In order to remove the 3rd button emulation, the following content has to be saved as an .fdi file in the policies folder:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_options.Emulate3Buttons" type="string">no</merge>

Although the wiki lists other changes as well (like setting the driver to "mouse"), it does not always work and may cause xorg crash or hang completely. This is the minimal file needed to only disable the button emulation. The option will be changed after the device is plugged in again.

share|improve this answer
I don't think that's good manners. – Florian Diesch May 26 '10 at 12:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .