Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have a Cyborg M.M.O.7 mouse with quite a few extra buttons, and I'd like to be able to bind them to things. I've found a post here that seems to detail the process, but when I attempted to carry out the steps I noticed that there is no "etc/X11/xorg.conf.d/11-mouse.conf" file. I discovered that apparently later versions of Ubuntu use "usr/share/X11/xorg.conf.d" but there is still no 11-mouse.conf file.

# dir /usr/share/X11/xorg.conf.d/
10-evdev.conf         50-synaptics.conf  51-synaptics-quirks.conf
11-evdev-quirks.conf      50-vmmouse.conf
11-evdev-trackpoint.conf  50-wacom.conf

Can I simply create this file? Will the steps stated in the post work?

Thanks, YM

share|improve this question

Can I simply create this file?

As a general rule, when a config file is mentioned and it is found missing on the system you try to edit, there's 4 possibilities:

  1. The system you are trying to edit was replaced by another one, e.g. RC files -> systemd
  2. The structure changed with an update
  3. The file is superseeded elsewhere e.g. Xorg.conf and xorg.conf.d/stuff.conf
  4. The file is only required if you change the default configuration e.g. system/default = /usr/share/X11/xorg.conf.d/, configured = /etc/X11/xorg.conf.d/

As for what to put in it, this should work:

Section "InputClass"
Identifier "Mouse Remap"
MatchProduct "Saitek Cyborg M.M.O.7 Gaming Mouse"
MatchDevicePath "/dev/input/event*"
Option "ButtonMapping" "1 2 3 4 5 6 7 2 9 10 11 12 0 0 0"


EDIT: I tested it with at least Gentoo (I was going to do some compiler flags testing with a new CPU and I remembered to test the mouse) and it works fine. I suppose that it works with pretty much any Linux-based Distribution.

I hope it helps you understand!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.