Skip to content


PS3 SIXAXIS as joystick and mouse on Nokia N900

Although N900 USB port does not support host mode and you cannot connect USB mouse, keyboard or joystick you may connect peripherals using bluetooth. Unfortunately N900 does not come with joystick and mouse support in kernel. I had to recompile kernel to get support for joystick device – and as I was already there, I added mouse support too.

You may get already built kernel and modules from this archive: kernel-2.6.28+joydev+mousedev.tar.bz2
Unfortunately the tool to package the kernel is not available, you need to install the kernel manually. Put the *.ko in kernel modules directory on the device and then reflash the kernel:

/home/user # mv *.ko /lib/modules/2.6.28-omap1/
$ sudo flasher-3.5 -f -k sbhome/..../kernel-2.6.28/arch/arm/boot/zImage -R

If you want to compile the kernel yourself, you will find the .config patch in the archive.

[sbox-MaemoKernel: ~/maemo_kernel/kernel-2.6.28] > patch .config < ../rx51_defconfig+mouse+joystick.diff
[sbox-MaemoKernel: ~/maemo_kernel/kernel-2.6.28] > make EXTRAVERSION=-omap1 oldconfig

Then follow the standard Maemo kernel compilation instructions.

Next step is to connect the joystick. Owning a PS3 it is natural to me, to connect the SIXAXIS controller.

SIXAXIS needed to be paired with N900. You need to know the BT address of the phone.

# hciconfig
hci0:   Type: UART
        BD Address: 34:7E:39:4A:37:XX ACL MTU: 1017:4 SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:87170 acl:1503 sco:0 events:62 errors:0
        TX bytes:574 acl:22 sco:0 commands:21 errors:0

Then you need to connect PS3 SIXAXIS to your Linux PC with the USB cable and use the sixpair tool:

wget http://www.pabr.org/sixlinux/sixpair.c
gcc sixpair.c -lusb -o sixpair
./sixpair 34:7E:39:4A:37:XX   # your N900 BD address

Almost there. The next step is described by Jonathan. I found that if you have BT on, you just need to launch the sixaxisd, no needing to setup hci0. I was nicely surprised that sixaxisd is even able to light “1″ LED on the controller – the usual flashing was annoying when I connected SIXAXIS to PC.

Once the SIXAXIS is connected, the /dev/input/js0 device will appear.

~ $ ls /dev/input/
event0     event2     event4     keypad     mouse0     ts
event1     event3     js0        mice       pwrbutton  uinput

To test the joystick you may install joystick package from Xiaoka APT Repository.

/home/user # jstest /dev/input/js0

You will see a live preview of all joystick buttons and axes values.


Posted in Maemo.

Tagged with , , , , , .


15 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. jonathan says

    Good to see you got it working :D

  2. pupnik says

    I am so happy. I don’t know what to type.

  3. Gadgety says

    I don’t even game, but what you’ve accomplished is very impressive. Love the idea of using a mouse with the N900!

  4. lazer epilasyon says

    In this issue I’m having continuous problems, please provide more detailed information.

  5. jroc says

    So i have done everything but i think i need to reflash the kernel but sudo flasher-3.5 isnt working. do i need to get it from somewhere? im really new to linux terminal so plz someone help!!

  6. Tomasz Sterna says

    See http://wiki.maemo.org/Updating_the_tablet_firmware

  7. anim1 says

    i just cant this thing to work no matter wat i try to do. i want it to work so bad

Continuing the Discussion

  1. XOrg joystick support for Maemo – Aberration linked to this post on 2 February 2010

    [...] part of the puzzle is in. You may get xserver-xorg-input-joystick package from Xiaoka APT [...]

  2. Play games on Nokia N900 with PS3 Sixaxis controller – Aberration linked to this post on 3 February 2010

    [...] This is an excerpt of an earlier post. [...]

  3. Pinguins Móveis » Blog Archive » Borbulhantes de Maemo linked to this post on 5 February 2010

    [...] Medo do dia: PS3 SIXAXIS como joystick e mouse do N900. [...]

  4. SNES auf dem Nokia N900 - COLLUSOR.net linked to this post on 6 February 2010

    [...] Eine Anleitung, wie man das Linux-Handy für die Benutzung mit Gamepad und sogar Maus präpariert, findet man hier. SNES-Emulatoren lassen sich problemlos und legal aus dem Internet laden. Anders sieht das bei den [...]

  5. Nokia N900 mit einem PS3 Controller gesteuert | mobilelivingroom.de linked to this post on 6 February 2010

    [...] Tomasz Sterna hat sich die Mühe gemacht und eine Steuerung für das Nokia N900 und einen wireless PS3 Controller gebastelt. Schaut euch den Clip an. Ich finde (mal abgesehen davon, dass das Talent für SuperMario nicht gerade vorhanden ist) sieht das Ergebnis doch super aus [...]

  6. » N900 controllato con il controller della PS3 » Guide, Hack, Maemo, News, - MaemoWorld.it linked to this post on 7 February 2010

    [...] Qua trovate la guida per configurare i controlles senza fili della PS3. [...]

  7. Nokia N900 controlled by PS3 Sixaxis controller « Specs, Reviews and Prices - MobileWhack.com linked to this post on 8 February 2010

    [...] via Related PostsNokia N900 Rover Available for Pre-order in Germany and ItalyGerman and Italian customers interested in that hot Nokia Internet Tablet, the N900 Rover, can now p…Nokia N900 Available for Pre-order in the USAJust like we told you a few days ago, Nokia is already offering its brand new Internet Tablet to tho…Is this this Nokia’s newIs this this Nokia's new Nokia N900 Tablet PC? Hot on the heals of the recent Nokia N800 announ…Is this this Nokia’s newNokia N900 on Amazon.com for $480AKPC_IDS += "49402,";Popularity: unranked [?] Share and Enjoy: [...]

  8. PlayStation 3 Wireless Sixaxis Controller | PS3 On Sale linked to this post on 28 May 2010

    [...] PS3 SIXAXIS as joystick and mouse on Nokia N900 | Aberration [...]



Some HTML is OK

or, reply to this post via trackback.