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 just started using Ubuntu instead of Windows, my initial reaction was "omg this is awful", but after a while it grew on me, and I don't plan on going back to Windows. However I have an Apple Mighty Mouse which I was given today, and the buttons on it don't quite work.

Left and right click work, so does scrolling right and down, also the back button works. However the forward button goes back, and the scroll up button sometimes scrolls down, scrolling left just doesn't work.

Is there a way to fix this? Like remap the buttons? I'm not entirely sure how the driver thing works in Ubuntu?

share|improve this question
Is this the "Apple Magic Mouse"? Could you provide a link to the device? Us being Ubuntu/Linux users we know little about such crazy things :) – Marco Ceppi Jun 5 '11 at 0:17
@Marco Ceppi, it's a different mouse. I think he's talking about this one: – Christopher Kyle Horton Jun 5 '11 at 5:08
Yes I mean what WarriorIng64 linked to. – Jonathan. Jun 5 '11 at 9:50
What I would do is get a regular PC mouse that supports USB... and use that... yes it will work... I know you Mac People thrive off your one button, but Ubuntu is designed for 2+ mouse buttons and you will find it a lot easier to use, IMHO. – TheXed Apr 23 '12 at 19:31

If I was in your place, I'd probably buy another mouse (costs something like $10).

However if you insist, you might try to map the keys manually.

You can use xev to find the keycodes. Open a terminal, type xev and press enter and a small window will appear. Put the cursor there and do the special keystrokes. You will find the keycodes in the terminal. Then use these codes in the keymapper of your Ubuntu.

BTW, what Ubuntu do you use?

share|improve this answer
I have the latest Ubuntu (I'm pretty sure) 11.04, what do you mean by keymapper? – Jonathan. Jun 5 '11 at 9:49
Using XEV, I get the forward and backward buttons both returning button 8?? Is a GUI to change the mouse buttons. – Jonathan. Jun 5 '11 at 10:06
mmm there seems to be the issue. You would expect to get button 1 (left), button 2 (scroll-wheel) and button 3 (right) Keymapper is the utility that can re-assign keys or shortcuts (sometimes this is a file to edit, but Gnome and KDE use a GUI software to do this). From what you have said, I believe that you have the Unity desktop. I don't have this, so refer to its documentation or add the tag "unity" to your question to attract specialists on that. However most probably you would have something in the menu's or icons such as system, control panel, keyboard, ... – Philippe De Brouwer Jun 5 '11 at 22:17
Btw (1) if both buttons of the mouse give button 8 with xev, then I would tend to believe that the thing is faulty – Philippe De Brouwer Jun 5 '11 at 22:18
Btw (2) It might be that unity allows you to map a key to an action without knowing the keycode (in that case--sorry--the info from xev is not necessary). – Philippe De Brouwer Jun 5 '11 at 22:20

The side buttons are just one physical button, meant to be squeezed from both sides. It does indeed show up as button 8.

share|improve this answer

This is a persistent Kernel bug reported since Ubuntu 7:

There seems to be some versions of Kernel that work well with the Apple Mighty Mouse while others do not.

For me the Ubuntu 13.04 Kernel: vmlinuz-3.8.0-31-generic supported the Mighty Mouse with proper button functions while; Ubuntu 13.10 Kernel: vmlinuz-3.11.0-12-generic did not. This bug is still seen in 13.10

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.