sixaxisd and N900? Perhaps…

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 :)

17 thoughts on “sixaxisd and N900? Perhaps…”

  1. 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

  2. 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

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

  4. 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.

  5. @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

  6. 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

  7. @ 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….

  8. Hello! @baron thk for the feedback.
    I’m back so I mad up my mind and guess what I bought?
    A N900 and everyday I love this phone! The i..phone with his locked iOSx is very far from the power of the N900 and it’s linux OS maemo. @baron yes I play with the PS3’s gamepad Drnes and other emulator.I set the sixad aviable in the repository.But there is a little probleme with the application named “HID bluetooth”. sixad and “HID bluetooth” can’t be install together.Pity coz I have a bluetooth mouse and HID bluetooth allows to handle it…But I’d like to use the gamepap too. To pair it I use a linux machine (ubuntu) and I wrotte a little scrip. A little click on a schortcut is enougth to do the job.

  9. @jonathan could you improve your application and add it in the maemo’s repositories (extra devel for exemple). For install and/or remove it is more easy than making unzip ect….May be it can “coexist” (it can live with) “HID bluetooth”…like that I can use my dualshock3 gamepad and my bluetooth mouse .

    Thk U.

  10. @Jonathan sorry to hear that…you miss something.Any way about the problem sixaxis and bluetooth HID there is the solution…the bluetooth input (part of the kernel that deal with bluetooth keyboard or mouse) is activated when “HID bluetooth” is used and not turn off after so that the sixaxis can’t be used.So here is the solution…another guy explain this better than me.
    http://forums.internettablettalk.com/showthread.php?t=58258&page=11
    May be you can include it in you application jonathan?

Leave a Reply

Your email address will not be published.