hbr

sixaxisd and N900? Perhaps…

by jonathan on Oct.21, 2009, under general

My previous post was mentioned over at maemo.org, with some speculation as to whether sixaxisd might work on the Nokia N900.

My initial thought was that with a small modification to sixpair, it would be possible to feed it an arbitrary BD address, so I started poking around in the source – and found that the feature is already there :D

You need the BD address of the device that you want to pair with the sixaxis – get this with hciconfig – run it (on the N900 – or whatever system) and you’ll hopefully see something like this (I don’t have an N900) :

# hciconfig
hci0:   Type: USB
        BD Address: 00:1A:80:2C:BE:D0 ACL MTU: 384:8 SCO MTU: 64:8
        DOWN
        RX bytes:87170 acl:1503 sco:0 events:62 errors:0
        TX bytes:574 acl:22 sco:0 commands:21 errors:0

Plug your sixaxis into some other machine via USB, grab (and compile) sixpair.c and run it with the BD address

wget http://www.pabr.org/sixlinux/sixpair.c
gcc sixpair.c -lusb -o sixpair
./sixpair 00:1A:80:2C:BF:D3 # use your own BD addr here

And that should be about it – unplug the sixaxis, continue with the instructions from the previous post and when you press the PS button, everything should work as if by magic.

If it does not, get more magic.  Either way, leave a comment and let me know how it goes :)

:, , ,

13 Comments for this entry

  • gianni

    hey there,

    im having trouble compiling the sixpair.c file.
    ive followed the ubuntu help file but in terminal it keeps giving me an error saying no file or directory exists.

    my user file is “gianni” so i made a folder called sixaxis inside there, and i put the sixpair.c file in.

    i dont know what else i should do. im new to linux and i downloaded both the files that the help told me to. i also tried the terminal command when the sixaxis was plugged in as well.

    any help would be greatly appreciated.

    thanks,
    gianni

  • jonathan

    Try something like this in a terminal :


    mkdir sixpair_new
    cd sixpair_new
    wget http://www.pabr.org/sixlinux/sixpair.c
    gcc -o sixpair sixpair.c -lusb

  • Renesis

    For the record, on the n900 to discover your bluetooth address go into settings and select “About product”.

  • Jac

    This is not enought!!
    Even you’ll get your sixaxis paired (it is easy with Linux/Ubuntu) you’ll need more.I mean the sixaxis is owner system of Sony so you need that the device (N900 in our case) can handle the protocol to communicate with it (bluetooth hid,is the bleutooth stack ready (for example the windows mobile’s stack is incompleted and poor so dualshock3 is just and will stay a dream) .inf for describing the way to handle/maping the gamepad boutons, hidraw0 that must be created automatically in the /dev and the js0 int the /dev/input ect…) shearch more with this key words ” Dualshock3 Ubuntu 7.10 8.04 9.04 9.10″…If the N900 doesn’t all of this ready to naturally handle the sixaxis I’m afraid the road is long.

  • Jac

    @gianni
    search sixad,QtSixA 0.5.3 and falk ubuntu key word.
    Sixad is a small programm that you can add the sourcelist address or download the .deb to install.After yhat just connect usb run six add and bleuthoot click on “pair” and finish your paired the game pad.don’t forget to install the bluez-compact it provide the hid for ubuntu.
    And more easy if you have the =<9.04 : blueman is your friend for handling bleutooth (I have the 9.10 distro it is the best)
    for more see
    http://ubuntuforums.org/showthread.php?t=1190061&page=27

  • Jac

    @jonathan seems interesting does it work on N900?

  • jonathan

    @jac I would expect so, but I don’t have an N900.

  • Jac

    Same here…I don’t know wich phone bying next time my budget allows a little “follie (crazyness in french)”….iphone,xpphone or N900.Just know it will be cool to get my dualshock 3 and emulator working with the phone.. The xpphone allow this but it is too hudge/big.Ok I go to sleep now

  • Jac

    .Emulators Snes, Playstation 1, Gameboy, Sega.
    And Look @ this guys the dream comes reality 5i hope it not fake any way can use wiimote and zeemote)

    http://www.journaldugeek.com/2010/02/08/jouer-a-son-n900-avec-un-pad-ps3/

  • baron von bubba

    @ jac
    i can confirm the ps3 pad works fine with n900. the snes and master system emus are great, any game with definable keys will work afaik.
    i used a windows machine to set the BT addy in the controller.
    have had zeemote working but support very limited, old version of snes emu is all i could play with it.
    not tried wiimote as yet….

  • jonathan

    @baron Thanks for the feedback

Leave a Reply

Looking for something?