Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 had logitech marble mouse on my laptop, and I used this tutorial, successfully, to make my trackball work properly (middle click, scroll, back button...)

Now I am back to normal mouse which has just two extra buttons for back and forward, but it is not working properly. So now the mouse works, with the left and right click and scroll, but nothing else. The biggest problem is that now middle click is not working, which is extremely useful for copy/paste, and also two extra buttons that I have are not working (for back and forward).

Can anybody help me with this problem? I tried a few things, searched Google, but nothing helps... It is probably something about settings for trackball, but I don't know how to put everything back to state before installing trackball.

I am using ubuntu 12.04...

share|improve this question

OK, just to report that I fixed problem after reading some tutorials and a lot of experimenting, and I hope somebody will find this useful.

Problem was that, after installing trackball, somehow mapping for buttons for any mouse was changed (or I just made some mistake while installing trackball). So, I only had to do remapping. First I found device with

xinput list

then run

xinput get-button-map <device id>

and remember numbers (output) of this command. Then I used


to check which number is assigned to which function and then I replaced those numbers with my required button mapping, using:

xinput set-button-map <device id> 1 9 3 4 5 6 7 2 8

You might need to play around and see what configuration works best for you.

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.