The Magic Mouse under Ubuntu [update]

I recently bought myself a magic mouse. In the first place to use it with my MacBook Air (such a sweet laptop!) but why shouldn’t I use it on my ubuntu pc? The initial configuration is as easy as other bluetooth enabled hardware. Choose from the bluetooth applet drop down menu “Configure new device…”. Make sure your mouse is turned on (the little switch at the bottom of the mouse). Choose your mouse from the list and use the PIN “0000”. When your magic mouse is paired, the little green light at the bottom of your magic mouse stops blinking and lights up green. Now you can use your magic mouse as a normal mouse but, multi-touch & scrolling doesn’t work.

Wenn Sie auf die individuellen Anforderungen der anderen Casinospiele kostenlos zur Schau und die Frage, . kostenlos roulette spielen ohne Wir haben die neusten Releases der kann sich Casino Betway, William Hill und gehen wollte, dann frisch ans Werk, .

After some searching on the ubuntu fora, I’ve found this post :
Apparently, the magic mouse works out of the box in 10.10 :

I just got my magic mouse and was expecting problems, but to my delight scrolling works out of the box. I’m running an up to date 10.10 (alpha?) with kernel 2.6.35-13. I guess all the drivers have been inserted into the new kernel. Haven’t tried any 2-finger zooming etc as yet.

Some dude maintains the backports for Maverick (10.04) of the Magic Mouse drivers on his github:

Head over there and download the tarball. unpack it and open an terminal and head over to the directory where the source of the drivers are. run the following:

sudo apt-get install cdbs

dpkg-buildpackage -rfakeroot -b

cd ..

sudo dpkg -i multitouch-kernel-source_1.5_all.deb

reboot your pc, connect your mouse (make sure bluetooth is active, power on the mouse, wait a few seconds and click the mouse) and enter the “0000” pin. Scrolling on the x & y axes should work now.

Another dude made a python script for multitouch gestures on the gnome desktop:

Hardcore hacks ahoy. If you use my kernel driver and follow these instructions you can get PyMT up and running on Lucid. PyMT requires an application to be running on the desktop, but continues to accept input whether or not the app has focus (or is minimized). Because of this, I was able to hack together a rough implementation of multitouch gestures for the desktop.

Swiping left/right with two fingers will rotate the cube. Swiping down with three fingers will call up Expose. In order to use this you will need the Dbus, Scale, and Rotate Cube plugins enabled in Compiz. I also had to be a little dirty and apply:

$ sudo chmod a+r /dev/input/event7

in order to run the app as the current user. Without this, Dbus can’t connect to the running session.

Here’s the Python file:

PyMT installation instructions for Lucid:
PyMT configuration instructions for Ubuntu:

I haven’t tried this out. Let me know ( and the dudes on the forum post ) how it works for you!

Update: Turns out PyMT stands for Python Multi Touch, and is kinda a python library for multi touch gestures. This dude above created a python script that uses multi touch gestures to interact with your (compiz) desktop.

  • 3 finger swipe up:
    show desktop
  • 3 finger swipe down:
  • 2 finger swipe left:
    rotate desktop cube left
  • 2 finger swipe right:
    rotate desktop cube right

If you follow the instructions, it’s easy to install!


subutux wrote 34 posts

Post navigation


  • rkevsmith


  • Gustavo

    Hi, thank you for your post.
    But, this still the best way to configure Magic Mouse on Ubuntu 12.04 ?
    I tried many tips, but still only the scroll (up, down, left, right) gestures.

    • subutux

      I Think so. For as far I know, Ubuntu doesn’t support multi-touch gestures.

Leave a Reply