PDA

View Full Version : Using PS3 SixAxis controller with N900


Pages : [1] 2 3 4

smoku
2010-01-21, 14:57
SIXAXIS-Support for Maemo

http://www.pledgie.com/campaigns/10069.png?skin_name=chrome (http://www.pledgie.com/campaigns/10069)
HOWTO: Play games on Nokia N900 with PS3 Sixaxis controller (http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/)

Sources: http://github.com/smokku/sixaxis-support
Packages: http://repository.maemo.org/extras-devel/pool/fremantle/free/s/sixaxis-support/

* Report a BUG! (http://github.com/smokku/sixaxis-support/issues) *

http://i.ytimg.com/vi/tON2gO72b1U/hqdefault.jpg (http://www.youtube.com/watch?v=tON2gO72b1U)

Note about two controllers support: http://tomasz.sterna.tv/2010/03/two-sixaxisdualshock-3-controllers-support-for-nokia-n900/

Troubleshooting: http://talk.maemo.org/showpost.php?p=618445&postcount=566
Community guide: http://talk.maemo.org/showthread.php?p=517534#post517534

Vote for Extras: http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/sixaxis-support/1.2-2/ & http://maemo.org/packages/package_instance/view/fremantle_extras-testing_free_armel/sixad/1.3.0-0maemo2/




Following is the original message that started this thread.

I made some progress with connecting PS3 SIXAXIS controller as joystick to my N900 device. :D
You may find details here: http://tomasz.sterna.tv/2010/01/ps3-sixaxis-as-joystick-and-mouse-on-nokia-n900/

Now I need to find a nice way to start/stop the sixaxisd and package it to deb.

Next step would be a tool to map joystick keys to keyboard keys, to control the console emulators similar way the wiicontrol does.

DeboX
2010-01-21, 15:39
Kudos mate!

Well done! :)

Chapbass
2010-01-21, 18:26
ohhhhh man you are just TRYING to make me be unproductive at work, arent you....

Siggen
2010-01-21, 19:12
Please say this patch is going to be put in the official maemo kernel.
I have been able to build my own kernel with custom patches since i was 12, but i still like my OS to be as clean as possible.

Pablo Diablo
2010-01-21, 19:34
excellent mate, can`t wait for the final outcome

g0dzilla
2010-01-21, 19:54
smoku

You can make a video on YouTube?

ArnimS
2010-01-21, 23:22
I made some progress with connecting PS3 SixAxis controller as joystick to my N900 device. :D

http://pupnik.de/cOOl.jpg

b-man
2010-01-22, 02:11
imagine playing your DrNoksnes/iSNES games with this.. :D

....or better, Angry Birds :D:D:D:D:D

smoku
2010-01-22, 21:00
I'm going to handle sixaxisd with a status menu widget. It will sit hidden waiting for connection, and show status menu icon and reveal itself once controller is connected. The only option of the revealed widget will be to break the controller connection. It will then hide again and start waiting for the controller connection again.

Is that a good idea, or do you have a better one?


And I'm still wondering how to approach the joystick-2-keyboard "converter". Normal application running in background? Another status-menu widget?


It would also be "nice" to notify user, that the device kernel does not support joystick device (if so). But I don't know how to detect that (yet). Do you know?

smoku
2010-01-22, 21:05
imagine playing your DrNoksnes/iSNES games with this.. :D

This is exactly my goal.
N900 connected to SixAxis and large TV, acting as a portable console. :D

bocaJ
2010-01-22, 22:44
Aside from not having rumble, is there going to be full support for DualShock 3's? Thanks for doing this - Nokia may not like releasing features for this phone, but that doesn't mean the community can't ;-)

Cadabena
2010-01-22, 22:59
There's some software I use on Ubuntu that can connect Sixaxi (:p) via bluetooth. It has support for setting LEDs, using the accelerometers, might even have rumble support but I can't remember. Maybe the guy's source would be of some help to you?

http://ubuntuforums.org/showthread.php?t=1190061

Aside from not having rumble, is there going to be full support for DualShock 3's?

As far as I know the Sixaxis and DS3, besides the obvious rumble, are identical. So your DS3 should just act as a heavy Sixaxis I believe.

Whitedeath
2010-01-22, 23:07
keeep doing it thats wil beee awesomeeee i cant wait!!!!

smoku
2010-01-23, 00:35
I have DS3 too, so I will definitely go for merging rumble support. :)
Thanks for the link.

I have a basic widget running now... :)

Siggen
2010-01-23, 00:47
I have DS3 too, so I will definitely go for merging rumble support. :)
Thanks for the link.

I have a basic widget running now... :)

Do you know how long it will be before its in the repo?

smoku
2010-01-23, 00:49
I'm running my own repo, so as soon as I get it working.

The Quote Train
2010-01-23, 01:30
This is exactly my goal.
N900 connected to SixAxis and large TV, acting as a portable console. :D

Or even better..when PS1 comes :)

DaSilva
2010-01-23, 01:55
Does DrNokSNES recognize the buttons from the controller so that you can assign them easily?

Thor
2010-01-23, 02:12
I'm not sure if having the N900 looking constantly for the controller is a great idea. Can you have settings that switch the looking on or off? And only activate when Bluetooth is switched on ? As well as the option for disabling it, such as when you go to work, you don't need the phone looking for a controller at that time.

Hope my ramblings make sense.

smoku
2010-01-24, 11:59
It does not have to actively look for the controller. It's not 80s - it's not how modern operating systems work. :)
It just sits and waits for the controller connection - a socket activity. When there is no activity, the code isn't taking CPU cycles at all.

REMFwhoopitydo
2010-01-24, 17:09
Or even better..when PS1 comes :)

oh yes indeed.

tekken 3 on the big screen!

akfo7
2010-01-25, 14:47
So.... As i understand you are working on an application that can accept wireless controllers. this include the controls of logitech ?

Ahmed360
2010-01-25, 16:55
Awesome man

Keep it up...PLEASE!!!

:)

smoku
2010-01-26, 09:56
It's progressing. Slowly because I want to do it right instead of quick and dirty hack. This means rewriting sixaxisd network layer to GIO.

DeboX
2010-01-26, 12:16
No hurry mate, no worries.

Better slow and working then fast and buggy ;)

tangs
2010-01-26, 14:25
all with you :)

s33k3rgr
2010-01-26, 16:48
I dont know what to say. I bow before you. But Nokia should have released a gamepad along with N900. Shame it didnt happen.

TooMuchMoney
2010-01-26, 23:37
I agree.

They sell all kinds of BT accesories including keyboards. I can really see a gamepad helping their cause.

iPhone maybe able to promote its multi-touch but with the right marketing games are played with real controllers!

tangs
2010-01-27, 13:53
any news Smoku ? :D

puffo83
2010-01-27, 16:27
Smoku, i viewed your guide to tomasz.sterna.tv
I know my Sixaxis MacAddress, i connect it to my Yellow Dog Linux in PS3 over USB and retrive it.
Is possible connect to my N900 directly in Bluetooth with my MacAddress?

Excuse my bad english! :D

tobylee
2010-01-27, 18:55
looking forward to this, would be very useful!

mcdull
2010-01-27, 19:08
I dont know what to say. I bow before you. But Nokia should have released a gamepad along with N900. Shame it didnt happen.

What would you do if you saw Zeemote, that Nokia used to team up with, almost went out of business?

I have yet to see a good selling mobile gamepad.
I have a Sony Ericsson gamepad, work with SE phone with port before K700, I know no one have heard of that.

And I believe the majority of N900 user are not in hardcore gaming that need a gamepad.

smoku
2010-01-28, 14:26
I know my Sixaxis MacAddress, i connect it to my Yellow Dog Linux in PS3 over USB and retrive it.
Is possible connect to my N900 directly in Bluetooth with my MacAddress?


No, it works the other way around.
PS3 controllers use device initiated connections, so you need to tell your controller which device it needs to connect to. This is what ./sixpair is for - it enters your PC (or any arbitrary given) BT address into the controller.


Sorry for the delayed answers, but the forum is not sending e-mail notifications to me, again...

smoku
2010-01-28, 14:29
What would you do if you saw Zeemote, that Nokia used to team up with, almost went out of business?


Which of the Zeemote supported devices are able to connect to TV and run thousands of games? :rolleyes: (before N900)

I guess Zeemote was ahead of times/demand.

DaSilva
2010-01-29, 08:50
Does DrNokSNES recognize the buttons from the controller so that you can assign them easily?

What about that smoku?
Thanks

smoku
2010-01-29, 10:01
IIRC DrNokSNES does not support joystick.

puffo83
2010-01-29, 16:23
Smoku, i use GlovePIE 0.30 (Windows) for setup sixaxis with MacAddress of my N900! The result:

http://imageshare.web.id/images/ncx4c3s0snze2tpjio3t_thumb.png (http://imageshare.web.id/viewer.php?file=ncx4c3s0snze2tpjio3t.png)

This message appears 5 - 6 times even if I click on OK.
After the sixaxis turn off.
In /dev/input not appears js0 :( why?

You can send me the widget you've created for the SIXAXIS which can be seen on page 2 of this discussion?

smoku
2010-01-29, 16:59
Smoku, i use GlovePIE 0.30 (Windows) for setup sixaxis with MacAddress of my N900! The result:

http://imageshare.web.id/images/ncx4c3s0snze2tpjio3t_thumb.png (http://imageshare.web.id/viewer.php?file=ncx4c3s0snze2tpjio3t.png)

This message appears 5 - 6 times even if I click on OK.
After the sixaxis turn off.
In /dev/input not appears js0 :( why?

You need to run sixaxisd on N900 first.

puffo83
2010-01-29, 17:05
You can send me the sixaxisd compiled for N900? thank very very much! send to puffo83@libero.it

DaSilva
2010-01-30, 03:30
IIRC DrNokSNES does not support joystick.

That is sad. Would it be possible to bind the buttons from the PS3 controller to keys and then to assign that key to DrNokSNES?
Example: Bind the PS3 button "X" to the keyboard character "Z" and then assign the virtual button "A" in DrNokSNES to the linked character "Z" which will be triggered by the "X" button from the PS3 controller?
Could be a nice workaround because most of the native N900 games are designed for touchscreen and a dedicated controller wouldn't be necessary but it makes sense for emulators.

puffo83
2010-02-01, 10:46
Hi Smoku,
i try to download sixaxisd from this link:

http://mail.pdaxrom.org/downloads/PS3/bootloader/src/sixaxisd-0.2.1.tar.bz2

I try to compile with Maemo SDK Image for VMWare. I extract this TAR.BZ2 and from Terminal i just type MAKE.
Now i have the compiled SIXAXISD.
I transfer to N900 in directory /usr/bin and after Permission Denied to lunch these, i type CHMOD 777 sixaxisd.
The results is this error:

/usr/bin/sixaxisd: line 1: syntax error: "(" unexpected

Where I wrong?

If you send me your compiled sixaxisd, i should not have problems? Or I miss the libraries?

smoku
2010-02-02, 00:00
If you send me your compiled sixaxisd, i should not have problems? Or I miss the libraries?

Here you are...

I also attached sixpair compiled on Ubuntu. :)

puffo83
2010-02-02, 09:28
Thanks Smoku! Your compiled sixaxisd now work.
Listening for connections state.
But when i press PS button, sixaxis try to connect to n900 for 5 - 6 time but not concluded connection.
Why?
Is possible that i jump this procedure, and not connect correctly?

[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

ToJa92
2010-02-02, 09:43
Does anyone know if this controller would work?
http://shop.01media.com/info.asp?ProductID=38339
I assume it does, but you can never be too sure.

smoku
2010-02-02, 09:59
But when i press PS button, sixaxis try to connect to n900 for 5 - 6 time but not concluded connection.

Have you "paired" your sixaxis with your N900 using sixpair?

puffo83
2010-02-02, 10:43
Yes Smoku.
The Sixaxis connect to N900 correctly but N900 not establish the connection.
To N900 appear the message that Sixaxis try to connect. Accept? Yes or No?
Even if I press Yes, it asks me continuously for 5 - 6 time.

I followed closely your guide, but I missed part of the kernel:

[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

Is possible that I avoid these 2 steps, my N900can not connect to the Sixaxis?

smoku
2010-02-02, 10:57
These steps are for the ones wanting to compile kernel themselves.

You cannot normally connect sixaxis to N900, because BlueZ 4 used by Maemo5 does not support device initiated connections yet.

You need to run sixaxisd first and press PS button after you have it listening for connections.

maxximuscool
2010-02-02, 11:00
farkkk yeah! keep it up man. would be great if you can make the bluetooth stack up more than 1 controller. :)

smoku
2010-02-02, 11:06
sixaxisd is able to handle up to 7 controllers

puffo83
2010-02-02, 11:21
Smoku,
I run sixaxisd first and press PS button after i have it listening for connections.
The 2 line of compiling kernel is necessary?
I type this line for insert and flashed the new module:

/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

First i power on the N900 with 'U' key pressed and the flasher, flashed correctly!

Smoku, il possible chat with you with MSN or IRC? I don't have Jabber :(
Very Thanks!

smoku
2010-02-02, 15:34
Another piece of the puzzle is in. :)

You may install xserver-xorg-input-joystick (http://tomasz.sterna.tv/2010/02/xorg-joystick-support-for-maemo/) driver for X to be able to get joystick events as XOrg events.

puffo83
2010-02-02, 15:59
Smoku,
I tried to install that deb file, but my problem is not resolved.
What is this package?

Great work Smoku!!

slux
2010-02-02, 16:03
I'm a bit confused, is this actually in a playable state? In any case, very cool. Maybe I'll actually be able to play with the Sixaxis instead of getting something like a Zeemote, the PS3<->N900 symbiosis seems to be pretty cool with BlueMaemo, PlayTV videos and this. :P

smoku
2010-02-02, 22:52
Yes! :D I did it.

I just played a session of Super Mario All-Stars on DrNokSnes with PS3 SIXAXIS :D Plays great. Let me get my hands on a big screen now...

I'm beaten-up and sleepy, so you need to wait for the full instruction till tommorow.

Bijiont
2010-02-03, 05:05
Can't wait to read the steps taken and instructions on how to install.

However this will mean my actual time spent work will go from 2 hours out of 10 to maybe 30 minutes lol.

Great work Smoku

Tiboric
2010-02-03, 05:23
Yes! :D I did it.

I just played a session of Super Mario All-Stars on DrNokSnes with PS3 SIXAXIS :D Plays great. Let me get my hands on a big screen now...

I'm beaten-up and sleepy, so you need to wait for the full instruction till tommorow.

Can't wait! good work Smoku.

Farooq
2010-02-03, 06:44
Yes! :D I did it.

I just played a session of Super Mario All-Stars on DrNokSnes with PS3 SIXAXIS :D Plays great. Let me get my hands on a big screen now...

I'm beaten-up and sleepy, so you need to wait for the full instruction till tommorow.

smoku do upload a video as well :) with the instructions

puffo83
2010-02-03, 09:55
Great great great Work SMOKU!!
I wait for the full instruction!
I stopped to the scratchbox step! :D

puffo83
2010-02-03, 12:01
Smoku, this is my step:

I download the file kernel-2.6.28+joydev+mousedev.tar.bz2

I copied the *.ko to /lib/modules/2.6.28-omap1/ [OK]
and i use the zImage to flasher-3.5 for flashing N900 [OK]

I JUMP the scratchbox step [NO]

I get the Bluetooth Address of N900 with command HCICONFIG [OK]
Instead using sixpair to insert into Sixaxis my N900 Bluetooth Address, i use SlovePie 0.30 with sixpair.pie that works the same way. [OK]
I download the compiled SIXAXISD for N900 posted by you and copied into /usr/bin [OK]
I update the permission to sixaxisd with CHMOD 777 SIXAXISD [OK]
And i run SIXAXISD... Listening for connection [OK]
I Press PS button to Sixaxis [OK]
Appear the message to N900 (5 - 6 time) for connect Playstation(R) 3 Controller Yes or No, i click to OK but the connection not enstablished [NO]

Why? :confused: I wait your complete guide!

smoku
2010-02-03, 12:55
Here's a teaser...
http://i1.ytimg.com/vi/tON2gO72b1U/default.jpg (http://www.youtube.com/watch?v=tON2gO72b1U)


And here's "full disclosure". ;)
http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/

tangs
2010-02-03, 14:11
OMG ! that's great ! gooooooood job smoku !
After all what you did, can i ask you a question ? do you think that it will be possible to download this as an app, i mean in the catalogue devel ? because i don't know how to use kernel and co, i'm just a regular user.

once again, amazing job !

smoku
2010-02-03, 14:16
Yes, yes... I'm working on packaging it as one (or two) app(s).

tangs
2010-02-03, 14:21
you God ahahahahah :)

BTW, is it, or will it be possible to use the joystick in the end ? and is it possible to use the "corner" direction on the pad ? i mean is it a 4 or 8 directions ?

smoku
2010-02-03, 14:35
You may access /dev/input/js0 normally.

The pad reports normal button presses. But nothing stops you from pressing two buttons at once. :D (Ex. Left + Jump)
So, if the app interprets Up + Left as UpLeft, it works.

ivgalvez
2010-02-03, 15:12
¡You are amazing!

Now I have to buy a SixAxis...

Fötus
2010-02-03, 15:16
This is so amazing. Now we only need a working PSone emulator ;-)
Thank you very much for the SixAxis Controller app!!!:D

smoku
2010-02-03, 15:22
Now we only need a working PSone emulator ;-)

Well... Uhm... http://github.com/smokku/psx4maemo :rolleyes:

titi974
2010-02-03, 15:41
wooow what a good news !!! better than a wiimote to play emulators ;)

puffo83
2010-02-03, 15:43
Smoku, i follow you new guide.
First i used your compiled sixaxisd, now i install sixad. This is the difference!

The problem is same!
Why? I disinstalled all application that use bluetooth (es. BlueMaemo, maemo-bt-plugin, ecc.) but the problem remaining.

Have you an idea for solve my problem?

smoku
2010-02-03, 15:50
No idea. This happens if you do not have sixaxisd/sixad running and is normal behavior. Once you launch the daemon it intercepts the connection.

puffo83
2010-02-03, 16:00
Thanks Smoku!
Why the SixAD daemon not found in my N900?
Is possible check why this daemon not found?
I follow your new guide 2 - 3 time today! :confused:

Is possible the conflicts with jstest program that i installed in your first tutotial?

http://codex.xiaoka.com/apt/maemo/joystick.install

( I have the last firmware for my N900 )

UPDATE:
Smoku, i check now that the system startup link of sixad not exist to /etc/init.d/ :confused:
You have this file? The sixad compiled file not exist in /usr/sbin/
Exist only sixad-bin, sixad-udev, sixad-raw and sixad-uinput-sixaxis.
If i run manually sixad-bin or sixad-uinput-sixaxis the message response is:
Running sixad-bin required 'sixad'. Please run sixad instead.
You post your sixad compiled file and/or sixad system startup link?
Thanks!

titi974
2010-02-03, 17:36
can't wait that you compile it !! do you have an idea about when it will be ready ? coz' i'm a bit scared about the "rough" method lol

smoku
2010-02-03, 19:16
Smoku, i check now that the system startup link of sixad not exist to /etc/init.d/ :confused:


Because you don't need it. sixad is started by udev when needed. It uses /usr/sbin/sixad-udev script.

smoku
2010-02-03, 20:42
As promised I made the procedure easier. You do not need N900 root access anymore. :)

Unfortunately due to https://bugs.maemo.org/show_bug.cgi?id=7972 I cannot automate kernel flashing.

j-mi
2010-02-04, 08:38
So why doesn't wiicontrol or zeemote work with SixAxis? I mean, what is the difference between Wiimote and SixAxis?

F2thaK
2010-02-04, 08:41
aaaaaaahhhhhhhhhhhhh i just bought 2 wiimotes and i dont have a wii

now u show me this!!!!!!!!!!!!! :D

F2thaK
2010-02-04, 08:48
can you use more than one controller and does analog sticks work thanks

puffo83
2010-02-04, 08:52
Smoku when i flashing your kernel the message into linux terminal is:

flasher v2.5.2 (Oct 21 2009)

USB device found found at bus 001, device address 015.
Found device RX-51, hardware revision 2101
NOLO version 1.4.14
Version of 'sw-release': <no version>
Sending kernel image (1704 kB)...
100% (1704 of 1704 kB, avg. 7443 kB/s)
Flashing kernel... done.

I remember that before doing the flash of the first your modded kernel, the 'sw-release' was not empty!
This could be a problem?

smoku
2010-02-04, 11:17
I have exactly this binary flashed and I have no problems.

F2thaK
2010-02-04, 11:21
sixaxisd is able to handle up to 7 controllers

ahhh thought ud said that earlier...... wow, i think im selling my wiimotes and getting a SixAxis~

F2thaK
2010-02-04, 11:23
Well... Uhm... http://github.com/smokku/psx4maemo :rolleyes:

working for N900 would be great, but doubtful

smoku
2010-02-04, 11:29
I have 2 controllers, so I will test the dual setup today.

F2thaK
2010-02-04, 11:33
I have 2 controllers, so I will test the dual setup today.

nice, want to know if two will work... plus if all buttons, accelerometers(?) and analog joysticks will work on sixaxis controller

smoku
2010-02-04, 11:56
jstest reports all buttons presses - analog and digital (you know - PS3 controller measures how hard you press the button), sticks movements and accelerometer axes.

How you use these it's up to you. I premade the basic configuration to play games, but for you only sky is the limit. :)

F2thaK
2010-02-04, 12:07
how hard is it to config?????? thx

smoku
2010-02-04, 12:14
http://cgit.freedesktop.org/xorg/driver/xf86-input-joystick/tree/config/50-x11-input-joystick.fdi is about as much you could find :(

smoku
2010-02-04, 12:21
working for N900 would be great, but doubtful

It's working fine on iPhone...

F2thaK
2010-02-04, 12:36
hmmmmmmmmmmmmm :D

crail
2010-02-04, 13:21
smoku when you package the apps will it just be a case of running the apps and away you go? because i dont have linux on my pc and i dont like messing with xterminal

smoku
2010-02-04, 13:31
Unfortunately due to https://bugs.maemo.org/show_bug.cgi?id=7972 I cannot automate kernel flashing.

So, don't really count on packaging everything... :(

But... Maemo flasher-3.5 works fine on Windows too.

smoku
2010-02-04, 14:04
Surprise, surprise... Nokia shared the fiasco-gen binary...
You may actually start counting... ;-)

tangs
2010-02-04, 14:29
What do you mean smoku ??? :)

twoboxen
2010-02-04, 14:38
Surprise, surprise... Nokia shared the fiasco-gen binary...
You may actually start counting... ;-)

Is there any chance now that this will be in extras-devel before saturday (a couple days)? I will be leaving on a trip that night and would LOVE to have this setup (via a package, if possible) before I leave!

Thanks for all your work!

puffo83
2010-02-04, 15:10
Smoku, you care because your guide/tutorial does not work on my N900?
I am willing to do a lot of evidence from beta testers and get it to work.
You think what I can try to work it?
How can I format all my N900 as taken from the factory, to try all over again?

F2thaK
2010-02-04, 15:25
flashed kernel and installed everything, just need to test... is there anywhere where the sixaxis app shows?? cant see it anywhere.....

twoboxen
2010-02-04, 15:26
How can I format all my N900 as taken from the factory, to try all over again?

Just do a normal n900 flash. Google will help you.

smoku
2010-02-04, 15:49
is there anywhere where the sixaxis app shows?? cant see it anywhere.....

You should see sixad in installed applications list. (Application manager -> Uninstall)

smoku
2010-02-04, 15:50
Smoku, you care because your guide/tutorial does not work on my N900?

Saying "does not work for me" gives me absolutely no clue what may be wrong. Please be more specific.

puffo83
2010-02-04, 16:39
Excuse me smoku!!
Does not work for me!!! Absolutely!! :p
Tonight i try it to another N900 (my brother)...

puffo83
2010-02-04, 21:19
Smoku,
i tried the same operation on N900 of my brother.
In his phone that's all ok!!!
:confused::confused::confused:
Why? My keyboard is italian with 2 arrow white (left,right) and 2 arrow blue (up,down). His keyboard is with 4 arrow white.
This is only difference!
Maybe the application that i installed to my N900 goes in conflict with Sixad??

zerojay
2010-02-04, 21:27
Does the input lag like it does with the Wiimote?

unkno
2010-02-05, 06:06
Does the input lag like it does with the Wiimote?

Would also like to know this

smoku
2010-02-05, 07:49
I've never touched the Wiimote in my life, so I cannot compare.
But I do not see any lag. But maybe this is just me. I'm biased obviously. :D

Siggen
2010-02-05, 07:59
Ive read through all of the posts in this thread, but it would still be nice if you could mash all the information in the first post, so its easy for new readers to read up.

Thanks, also I would test if there is more lag than on a wii mote, but i dont have a wii mote, so sorry.

smoku
2010-02-05, 08:15
I have 2 controllers, so I will test the dual setup today.

Ok. It works exactly as I suspected.
Both (SA and DS3) controllers connects fine. I have two devices /dev/input/js0 and /dev/input/js1 for them.

But... Xorg joystick driver works same for both, so they behave like the same controller. The same key presses are simulated for both. I need to prepare separate .fdi configs for them. Stay tuned. :)

OVK
2010-02-05, 08:30
I see great times ahead :D

Although I do not see myself carrying around&using any additional controllers in my everyday use of N900 (bus trips, playing at home or aeroplane etc.) I think that this work done by smoku and others can make my N900 an ideal travel console to be used on longer holiday trips.

N900+tv out cable+(Amiga emulator+Speedball 2) or (C64 emulator+Wizard of Wor)+2 two sixaxis controllers=total good time

Unfortunately the Amiga emulator or C64 emulator is not ready yet but I have high confidence that they will eventually come too...

F2thaK
2010-02-05, 08:40
I see great times ahead :D

Although I do not see myself carrying around&using any additional controllers in my everyday use of N900 (bus trips, playing at home or aeroplane etc.) I think that this work done by smoku and others can make my N900 an ideal travel console to be used on longer holiday trips.

N900+tv out cable+(Amiga emulator+Speedball 2) or (C64 emulator+Wizard of Wor)+2 two sixaxis controllers=total good time

Unfortunately the Amiga emulator or C64 emulator is not ready yet but I have high confidence that they will eventually come too...

not to mention the doom, quake and duke 3d ports

F2thaK
2010-02-05, 08:42
Ive read through all of the posts in this thread, but it would still be nice if you could mash all the information in the first post, so its easy for new readers to read up.

Thanks, also I would test if there is more lag than on a wii mote, but i dont have a wii mote, so sorry.


i have wiimote configured for global gamepad/remote and works great :

global remote
http://www.youtube.com/watch?v=134FKFT_SKw

playing duke nukem 3d
http://www.youtube.com/watch?v=Vs73zGFkOKg
.
.

choubbi
2010-02-05, 09:51
does your driver work with simple bluetooth dualshock controllers or does it need exactly the sixaxis model ?
I'm gonna buy a controller just for the n900, so if it's supposed to work, I'll buy a cheap eBay BT PS3 controller (then without the sixaxis stuff).

smoku
2010-02-05, 09:56
I've tested it with SIXAXIS and DUALSHOCK3 - both work fine.

DaSilva
2010-02-05, 10:10
Does the flashing process mean I have to start from scratch (like factory reset)?

choubbi
2010-02-05, 10:19
Does the flashing process mean I have to start from scratch (like factory reset)?

I believe a backup just before flashing, and recovering that backup after flashing, should be enough.

I've tested it with SIXAXIS and DUALSHOCK3 - both work fine.

Cool, thanks !

smoku
2010-02-05, 10:30
Does the flashing process mean I have to start from scratch (like factory reset)?

No. Flashing the kernel does not destroy your data nor configuration.

DaSilva
2010-02-05, 11:04
Great, then it is more like "an addon" than a completely new kernel and I can use my phone after a restart with all applications as before?
Makes it very usable ;)

Ahmed360
2010-02-05, 11:25
Same question?? ^

puffo83
2010-02-05, 11:51
Smoku,
why when i flash your kernel the results is this:

http://img231.imageshack.us/img231/9364/screenshot03.png (http://img231.imageshack.us/i/screenshot03.png/)

:confused::confused::confused:

Nokia Software Updater not found because not recognize the version of N900!
Is possible fix this problem? Thanks!

s33k3rgr
2010-02-05, 11:55
Is there any guide somewhere of how r we gonna make our ps3 controllers to work with N900?? Reading this thread is too confusing.

F2thaK
2010-02-05, 12:38
also after installing i get an update in app manager for my current (latest) firmware version


mine looks like this too

(about product info missing)
http://img231.imageshack.us/img231/9364/screenshot03.png
http://talk.maemo.org/showpost.php?p=511695&postcount=116

F2thaK
2010-02-05, 13:56
Is there any guide somewhere of how r we gonna make our ps3 controllers to work with N900?? Reading this thread is too confusing.

instructions here

http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/

theyre not very clear if u dont kno what ur doing

F2thaK
2010-02-05, 14:04
anyone confirm these will work with this app???


thanks


http://shop.01media.com/info.asp?ProductID=38339


http://shop.01media.com/images/PS3-DS6_b.jpg

tangs
2010-02-05, 14:05
what is the differents between SIXAXIS and DUALSHOCK3 ?
and how recharge the controller without a playstation ?

F2thaK
2010-02-05, 14:11
charge with usb cable

tangs
2010-02-05, 14:15
on the pc ?

twoboxen
2010-02-05, 14:18
Is there any progress on packaging this up for extras-devel so we don't have to do each step manually?

F2thaK
2010-02-05, 14:21
on the pc ?

yea or buy usb to wall socket adaptor.....

tangs
2010-02-05, 14:25
thank you for your information :) and maybe you could tell me what is the differents between SIXAXIS and DUALSHOCK3 ?
I think i'll buy one or tow asap to play those great games on my tv :)

Ahmed360
2010-02-05, 14:34
thank you for your information :) and maybe you could tell me what is the differents between SIXAXIS and DUALSHOCK3 ?
I think i'll buy one or tow asap to play those great games on my tv :)

Sixaxis--> 1st generation ps3 controller (no rumble/vibration)
DS3-----> 2nd generation ps3 controller (WITH rumble/vibration)

So the main difference is the built in rumble mechanism :cool:

Farooq
2010-02-05, 14:40
Sixaxis--> 1st generation ps3 controller (no rumble/vibration)
DS3-----> 2nd generation ps3 controller (WITH rumble/vibration)

So the main difference is the built in rumble mechanism :cool:

u know wht are the prices of these two?

Ahmed360
2010-02-05, 14:55
^ Depends, here in UAE prices 140(Sixaxis)-200(DS3)AED

mcdull
2010-02-05, 15:06
^ Depends, here in UAE prices 140(Sixaxis)-200(DS3)AED

They are still selling Sixaxis officially? I thought the production should have be stopped after DS3.
For carrying around or for N900 unless it will get rumble support, Sixaxis is much lighter in weight.

titi974
2010-02-05, 16:02
hum, one question... do we really need to flash the kernel, or just dpkg the kernel modules is enough ???

titi974
2010-02-05, 17:27
anyone knows ? because just by installing every files, i can't connect it,

same, wiicontrol doesn't appear in my menu =S

smoku
2010-02-05, 17:39
hum, one question... do we really need to flash the kernel, or just dpkg the kernel modules is enough ???

Unfortunetely the stock kernel does not support mouse and joystick at all, so you need to flash the kernel to.
(I tried insmod'ing the modules on standard kernel, but the devices did not appear.)

smoku
2010-02-05, 17:41
Holy crap! I just realized that I did not describe the pairing procedure in the article.

For the "does not work for me" ones - make sure you read and follow the 0 point (http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/) describing ./sixpair procedure and your SX/DS3 is paired with your N900.

(Sorry, this was an abvious point for me.)

smoku
2010-02-05, 18:23
OK. Tapping http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install) should be enough. :D

Be sure to ./sixpair your controller first!!!

tangs
2010-02-05, 18:55
can't wait to clic this "install" icon, just need a SX nooooowwwww ! :)

twoboxen
2010-02-05, 19:32
OK. Tapping http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install) should be enough. :D

Be sure to ./sixpair your controller first!!!

The install button does not work. the application manager gives an error manager that this package breaks 3rd party app policy.

choubbi
2010-02-05, 19:36
OK. Tapping http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install) should be enough. :D

Be sure to ./sixpair your controller first!!!

Is there something to do before tapping the install button ? I get these screens when I click :

Bratag
2010-02-05, 20:22
Is there something to do before tapping the install button ? I get these screens when I click :

You can see that its missing the kernel and the modules. You will need to go to the webpage and grab both and install them prior to the install of this

choubbi
2010-02-05, 20:49
You can see that its missing the kernel and the modules. You will need to go to the webpage and grab both and install them prior to the install of this

that's still not noob-friendly enough that I manage to understand how to do it, but maybe when I receive the controller I'll have managed to install the driver. Maybe I just need some sleep.

twoboxen
2010-02-05, 21:02
I went through all the steps manually, and it first kept bringing up
"
Accept connection with device?
PLAYSTATION(R)3 Controller
"

Now it stopped asking me and the bluetooth icon is blue, but all 4 lights are still flashing on the controller and it does not seem to accept input from the controller.

Ideas?

Bratag
2010-02-05, 21:34
that's still not noob-friendly enough that I manage to understand how to do it, but maybe when I receive the controller I'll have managed to install the driver. Maybe I just need some sleep.

Well its not really meant to be noob friendly - this is well into hacker territory and I think was posted more as a proof of concept as opposed to a nice point and click package.

Please keep in mind the kernel flashing requirement is due to the fact that the default kernel does not support this functionality and you cant force a kernel to do something is not compiled for, no matter how much you want to.

IsaacDFP
2010-02-05, 23:25
Smoku, after reading all 15 pages of this post, you convinced me to subcribe and I am writing my first post dedicated to you :)

First of all, HUGE props to what you have accomplished. This is exactly what I've been waiting for ever since I got my N900 months ago.

But unfortunately, I do not know anything about Linux... I am and have always been a full Windows-PC customer, and I am very comfortable with DOS. My very first experience with Linux has in fact been with the N900's terminal, and as it is quite interresting, I find it very dangerous so I rather not play too much on it.
But reading posts like:
Well its not really meant to be noob friendly - this is well into hacker territory
does not make me very comfortable :S

I have read your website (the tomasz.sterna one) and basically my issue is... I don't quite understand the 0. Set-up the controller part... I obviously do not possess a Linux-PC so i am lost in this first step... :(

My one and only question is... Could you point us windows-folk in the right direction? I am not a total noob, I do work for IBM, and consider myself fairly comfortable in IT, but Linux... is another world for me :S

Thanks in advance, and again, big respect for your work :)

F2thaK
2010-02-06, 03:17
Next, write your N900 Bluetooth address into your controller:

./sixpair 34:7E:39:4A:37:XX # your N900 BD address


how???

twoboxen
2010-02-06, 03:28
Smoku,
why when i flash your kernel the results is this:

http://img231.imageshack.us/img231/9364/screenshot03.png (http://img231.imageshack.us/i/screenshot03.png/)

:confused::confused::confused:

Nokia Software Updater not found because not recognize the version of N900!
Is possible fix this problem? Thanks!

puffo, i have the exact same symptoms as you... have you made any progress? Smoku, we're stuck! Can you help us?

Do we need to manually install or run sixaxisd? I thought that the sixad package took care of all that.

I tried to run sixaxisd manually and got this error:
sixaxisd: can't bind to psm 17: Address already in use

so I assume it's already running. I'm out of ideas...

wickedgtr1
2010-02-06, 07:09
Ok. I am pretty new at Linux, but i have gotten pretty far so i will help to get where I got, and then ask the question at the end.

First to install the kernel update:
On the N900 Browse to: http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/

and click the Green Arrow to Install (its okay if it gives "3rd party app policy") -- this is just to add Smoku's App Repository.

next on the N900, open a terminal session (alt+ctrl+x)

~ $ sudo gainroot
....
/home/user # apt-get install sixaxis-support

now say yes to every dialog that appears

once its done, do a normal power off, reboot.


If you haven't already program the PS3 controller with your N900's bluetooth MAC Address (must do this from a desktop PC running linux, or a VM that supports device pass through to a linux vm - VMware Workstation 7 with Debian worked perfectly for me)

I just downloaded Smoku's precompiled version, did the following:

user@Debian-VM:~/Desktop/Downloads$ chmod 777 sixpair
(no idea if this is required)

then:
user@Debian-VM:~/Desktop/Downloads$ ./sixpair C0:38:F9:A6:ff:ff
No controller found on USB busses.
(without controller connected)

user@Debian-VM:~/Desktop/Downloads$ ./sixpair C0:38:F9:A6:ff:ff
usb_claim_interface: Operation not permitted
(not enough access)

then finally (trial and error is how I learn I guess :P )
user@Debian-VM:~/Desktop/Downloads$ sudo ./sixpair C0:38:F9:A6:ff:ff
[sudo] password for user:
Current Bluetooth master: 00:24:33:09:ff:ff
Setting master bd_addr to c0:38:f9:a6:ff:ff

Alright, at this point the PS3 controller is going to look for the N900 when PS button is pressed.

Enable Bluetooth on the n900, and press the PS button, after a few seconds the bluetooth icon will turn blue, and a few seconds later the four lights on the PS3 controller will settle to 1 of the 4.



once this is done -- I believe the controller should work, and this is where I am stuck.

jstest /dev/input/js0 -- does show the input from the PS3 controller but none of the commands from the PS3 appear to make it any further then that, -- no keyboard mappings at least.

So Smoku, PLEASE HELP!

F2thaK
2010-02-06, 07:20
think ill stick with my WiiMote until this works and is easy(er) to do

wickedgtr1
2010-02-06, 07:35
think ill stick with my WiiMote until this works and is easy(er) to do

f2thak, is the problem you are having with programming the PS3 controller with the N900 Bluetooth mac address?

any easy solution maybe to download whats called a linux 'Live CD'

basically a live cd is a full linux setup that runs of the cd/dvd - so you dont have to mess up your windows stuff (i run windows like you)

with the live cd if its able to get to the internet you can download the sixpair that Smoku compiled and connect the PS3 controller to the pc and program the Mac Address of your n900 to the controller.

If you are wanting to do this, I am sure a lot of people here will try to help.

wickedgtr1
2010-02-06, 07:38
probably the easiest is ubuntu - https://help.ubuntu.com/community/LiveCD

smoku
2010-02-06, 07:52
Is there something to do before tapping the install button ? I get these screens when I click :

http://wiki.maemo.org/Extras/3rd_Party_Package_Policy - makes sense

I've fixed the package. Try clicking again.

F2thaK
2010-02-06, 08:10
i want to get this working but its too involved and i dont have any ps3 controllers anyway.. thanks

smoku
2010-02-06, 08:20
puffo, i have the exact same symptoms as you... have you made any progress? Smoku, we're stuck! Can you help us?

I've updated the kernel and kernel packages yesterday with properly build ones from the original sources. If you used any of my .install files, you have 'Xiaoka Maemo Extras' repository added to application manager. Just install sixaxis-support package and do an update - this will update your kernel packages.

smoku
2010-02-06, 08:28
once this is done -- I believe the controller should work, and this is where I am stuck.

jstest /dev/input/js0 -- does show the input from the PS3 controller but none of the commands from the PS3 appear to make it any further then that, -- no keyboard mappings at least.


This is where the xserver-xorg-joystick package takes over and emulates key presses and mouse of the data received from /dev/input/js0

Check whether you have /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi in place on your N900. If so, do a reboot and try again.

P.S. Thanks for sharing your experience and tips. I updated the guide.

smoku
2010-02-06, 08:35
If you haven't already program the PS3 controller with your N900's bluetooth MAC Address (must do this from a desktop PC running linux, or a VM that supports device pass through to a linux vm - VMware Workstation 7 with Debian worked perfectly for me)

Windows users may try: http://bqron.free.fr/PS3/BT/BtSix.1.5b.zip
This is something Google found for me. I have no Windows, so I cannot check it myself.

smoku
2010-02-06, 08:36
i want to get this working [...] i dont have any ps3 controllers anyway.. thanks

You want us to sponsor you one? :rolleyes:

wickedgtr1
2010-02-06, 08:40
This is where the xserver-xorg-joystick package takes over and emulates key presses and mouse of the data received from /dev/input/js0

Check whether you have /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi in place on your N900. If so, do a reboot and try again.

P.S. Thanks for sharing your experience and tips. I updated the guide.

glad I could help - but none of it is possible without you :)

I have the was already rebooting, saw that your update was now available, installed it.

The files do exist - so I rebooted again (just to be safe after the update)

PS3 controller connects quickly, but no mapped keys -- I am testing in the x-term window to see if any of the PS3 keys type the letters - is that acceptable for testing ?

wickedgtr1
2010-02-06, 08:43
is there any process (ps -ef | grep ????) that I can look for to see if the key-mapper is running ? or something I can test with ?

At this point I am ready to recovery-flash the n900, restore backup, and try your latest package to see if it works properly...


Side note -- is your installer/package optified ?

http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing/Installing_under_opt_and_MyDocs

wickedgtr1
2010-02-06, 08:45
(sorry about all the posts)

does this version have the status bar portion ? I have no new options listed there.


edit: while the PS3 Controller is connected of course....

CrckMc
2010-02-06, 09:24
edit: works now :)

F2thaK
2010-02-06, 09:29
I've updated the kernel and kernel packages yesterday with properly build ones from the original sources. If you used any of my .install files, you have 'Xiaoka Maemo Extras' repository added to application manager. Just install sixaxis-support package and do an update - this will update your kernel packages.


wont let me install sixaxis-support due to kernels ??

edit: had to manually update kernels but still cant install sixaxis-support

sixaxis-support breaks 3rd party package policy....
.
.

F2thaK
2010-02-06, 09:30
You want us to sponsor you one? :rolleyes:

thanks :D haha

CrckMc
2010-02-06, 09:44
wont let me install sixaxis-support due to kernels ??

tried apt-get?

F2thaK
2010-02-06, 09:49
tried apt-get?

thanks, had to do apt-get -f install first to fix kernels

then apt-get install sixaxis-support

think its installed now, but dont have controller to config and test
.
..

CrckMc
2010-02-06, 09:56
i installed everything, got a connection but i can't map buttons in DrNokSnes any advice?

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

shows me that he detects the controls, where can i check i they get translated?

attila77
2010-02-06, 10:19
Unfortunetely the stock kernel does not support mouse and joystick at all, so you need to flash the kernel to.
(I tried insmod'ing the modules on standard kernel, but the devices did not appear.)

I'm a bit late to the party, but which modules and devices exactly are we talking about here ? I know for sure that joystick module(s) *do* work to an extent as accelemote is used to feed them with events (used in, for example, Ur Quan Masters (http://talk.maemo.org/showthread.php?p=508948)).

CrckMc
2010-02-06, 10:59
oh man i'm such an idiot

i wanted to start from scratch so i removed kernel-modules and kernel :D

knowing that this wasn't the best idea i made a backup of my files but now i can really start from scratch lol



EDIT:

After restoring my backup and reinstalling everything i'm still stuck with a connected sixaxis but no keys are recognized

Can it be that some other program inteferes?

smoku
2010-02-06, 14:31
is there any process (ps -ef | grep ????) that I can look for to see if the key-mapper is running ? or something I can test with ?

Side note -- is your installer/package optified ?


You may look at /tmp/Xorg.0.log to see whether the joystick driver was loaded and enabled.

You may test the joystick with: jstest /dev/input/js0

SixAd is optified. The rest does not need to.

twoboxen
2010-02-06, 14:42
I've updated the kernel and kernel packages yesterday with properly build ones from the original sources. If you used any of my .install files, you have 'Xiaoka Maemo Extras' repository added to application manager. Just install sixaxis-support package and do an update - this will update your kernel packages.

I did all that (I had to update via apt, but still worked)... and I have the same symptom. It keeps asking me to connect (5-6 times), then it gives up. I see there is sixad-bin running, so I assume it launched properly. Are there any tests I can perform to ensure things are running the way they're supposed to? (e.g. proper kernel, modules loaded, sixad ready, etc).

there is nothing under /dev/input/js*, so something isn't right.

smoku
2010-02-06, 15:20
Some checkpoints:

Nokia-N900-51-1:~# dpkg -l kernel kernel-modules xserver-xorg-input-joystick sixad
ii kernel 2.6.28-20094803.3+0m5+0hid0
ii kernel-modules 2.6.28-20094803.3+0m5+0hid0
ii sixad 1.2.0-0maemo0
ii xserver-xorg-input-joystick 1:1.5.0-1maemo0

Nokia-N900-51-1:~# ls -l /etc/udev/rules.d/98-sixad.rules /usr/sbin/sixad-udev /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi /dev/input/js0
crw-rw-r-- 1 root root 13, 0 Feb 6 16:11 /dev/input/js0
-rw-r--r-- 1 root root 333 Feb 2 22:40 /etc/udev/rules.d/98-sixad.rules
-rwxr-xr-x 1 root root 607 Feb 2 23:23 /usr/sbin/sixad-udev
lrwxrwxrwx 1 root root 69 Feb 2 23:36 /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi -> /opt/maemo/usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi

Nokia-N900-51-1:~# lsmod | grep joydev
joydev 10368 1

Nokia-N900-51-1:~# grep -i joy /tmp/Xorg.0.log
(II) Loading /usr/lib/xorg/modules/input/joystick_drv.so
(II) Module joystick: vendor="X.Org Foundation"
(II) Joystick: PLAYSTATION(R)3 Controller (00:23:06:BA:BE:C8). bus 0x5 vendor 0x54c product 0x268 version 0x100
(II) Joystick: found 29 axes, 17 buttons
JOYSTICK: DebugLevel set to 0

Nokia-N900-51-1:~# ps -e | grep six
1417 root 1660 S /usr/sbin/sixad-bin 1 1 1 1 1 0
4562 root 1652 S /usr/sbin/sixad-uinput-sixaxis 1 00:23:06:BA:BE:XX
4596 root 2088 R grep six

smoku
2010-02-06, 15:22
there is nothing under /dev/input/js*, so something isn't right.

As root do:

insmod joydev
lsmod | grep joydev


Did you get any errors?

twoboxen
2010-02-06, 15:33
As root do:

insmod joydev
lsmod | grep joydev


Did you get any errors?

I did...

insmod joydev
insmod: can't read 'joydev': No such file or directory

there was also no /dev/input/js* and nothing in the xorg log. I guess that makes sense if the joydev module doesn't exist. Maybe?

smoku
2010-02-06, 15:40
You don't have proper kernel + kernel-modules installed.


dpkg -l kernel kernel-modules

twoboxen
2010-02-06, 15:47
You don't have proper kernel + kernel-modules installed.


dpkg -l kernel kernel-modules


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-================================================== =-====================================-============================================
ii kernel 2.6.28-20094803.3+0m5+0hid1 Flashable Linux kernel
ii kernel-modules 2.6.28-20094803.3+0m5+0hid1 Linux kernel modules

Aren't those the proper versions?

smoku
2010-02-06, 18:17
should be.. :/

Check whether you have /lib/modules/2.6.28-omap1/joydev.ko

If yes, run "depmod -a" command and try again insmod.

CrckMc
2010-02-06, 18:27
Some checkpoints:

Nokia-N900-51-1:~# dpkg -l kernel kernel-modules xserver-xorg-input-joystick sixad
ii kernel 2.6.28-20094803.3+0m5+0hid0
ii kernel-modules 2.6.28-20094803.3+0m5+0hid0
ii sixad 1.2.0-0maemo0
ii xserver-xorg-input-joystick 1:1.5.0-1maemo0

Nokia-N900-51-1:~# ls -l /etc/udev/rules.d/98-sixad.rules /usr/sbin/sixad-udev /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi /dev/input/js0
crw-rw-r-- 1 root root 13, 0 Feb 6 16:11 /dev/input/js0
-rw-r--r-- 1 root root 333 Feb 2 22:40 /etc/udev/rules.d/98-sixad.rules
-rwxr-xr-x 1 root root 607 Feb 2 23:23 /usr/sbin/sixad-udev
lrwxrwxrwx 1 root root 69 Feb 2 23:36 /usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi -> /opt/maemo/usr/share/hal/fdi/policy/20thirdparty/x11-sony-sixaxis.fdi

Nokia-N900-51-1:~# lsmod | grep joydev
joydev 10368 1

Nokia-N900-51-1:~# grep -i joy /tmp/Xorg.0.log
(II) Loading /usr/lib/xorg/modules/input/joystick_drv.so
(II) Module joystick: vendor="X.Org Foundation"
(II) Joystick: PLAYSTATION(R)3 Controller (00:23:06:BA:BE:C8). bus 0x5 vendor 0x54c product 0x268 version 0x100
(II) Joystick: found 29 axes, 17 buttons
JOYSTICK: DebugLevel set to 0

Nokia-N900-51-1:~# ps -e | grep six
1417 root 1660 S /usr/sbin/sixad-bin 1 1 1 1 1 0
4562 root 1652 S /usr/sbin/sixad-uinput-sixaxis 1 00:23:06:BA:BE:XX
4596 root 2088 R grep six

I get almost the same but when i try to "grep -i joy /tmp/Xorg.0.log" i get nothing. i looked into the file but joystick_drv is never loaded :/

smoku
2010-02-06, 18:28
I get almost the same but when i try to "grep -i joy /tmp/Xorg.0.log" i get nothing. i looked into the file but joystick_drv is never loaded :/

Do you have /usr/lib/xorg/modules/input/joystick_drv.so file?

smoku
2010-02-06, 18:33
Does "lshal | grep -i joy" show something?

CrckMc
2010-02-06, 18:41
yes to both

lshal | grep -i joy shows:

info.capabilities = {'input','input.joystick'} (string list)

twoboxen
2010-02-06, 20:49
Does "lshal | grep -i joy" show something?

I have /usr/lib/xorg/modules/input/joystick_drv.so, but lshal | grep -i joy doesn't show anything.

smoku
2010-02-07, 01:02
CrckMc: check whether you have joystick_drv.so

twoboxen: do you have /dev/input/js0 ?

F2thaK
2010-02-07, 03:27
i wanna help test!!!!!!!!

if i buy this will it work??? its a ps3 controller lookalike, apparently works with ps3, but not latest firmware

please let me know guys
thanks


http://shop.01media.com/info.asp?ProductID=38339


http://shop.01media.com/images/PS3-DS6_b.jpg

twoboxen
2010-02-07, 05:25
CrckMc: check whether you have joystick_drv.so

twoboxen: do you have /dev/input/js0 ?

no, i dont. it's still prompting me 5-6 times whether or not to accept the bluetooth connection. eventually it gives up and the bluetooth is not connected. it seems like there is a sixad problem--you think?

F2thaK
2010-02-07, 06:15
since playing with this, my wiimote wont work in gyro mode now, wiicontrol crashes when u select gyro mode.:mad:

Crogge
2010-02-07, 06:44
I really would like to use my use my PS3 controller with the N900 (To connect it for example to my TV and play SNES). Still, so far it seems to be a alpha version here and a lot of user's have issues with it.

So I can only suggest you to wait for a stable release, you can brick your phone if you are writing random commands as "root" without knowing what you are doing!

smoku
2010-02-07, 06:52
no, i dont. it's still prompting me 5-6 times whether or not to accept the bluetooth connection. eventually it gives up and the bluetooth is not connected. it seems like there is a sixad problem--you think?

Yes. Looks like udev is not launching sixad.
Try running it manually:
/usr/sbin/sixad-udev PS_SIXAXIS_BT_ADDRESS
and then press PS button.

CrckMc
2010-02-07, 08:40
CrckMc: check whether you have joystick_drv.so


yes i have that file i already said that yesterday :)

Farooq
2010-02-07, 08:44
Should i buy DS3/SixAxis (which one?) controller for PS3 or should i wait for some more time please advise,

Regards

CrckMc
2010-02-07, 08:48
i think if you don't have one yet wait till this is working otherwise you could get really disappointed :)

Farooq
2010-02-07, 08:50
i think if you don't have one yet wait till this is working otherwise you could get really disappointed :)

thanks ill wait. one more thing which one will work DS 3 or SixAxis?

CrckMc
2010-02-07, 08:56
it's the same thing the ds3 just has vibration

eikido
2010-02-07, 09:14
Will this app eventually end up in Extras-Testing?
Because i can wait

CrckMc
2010-02-07, 09:38
if it gets more noobfriendly why not but that is smukos decision

twoboxen
2010-02-07, 14:50
Yes. Looks like udev is not launching sixad.
Try running it manually:
/usr/sbin/sixad-udev PS_SIXAXIS_BT_ADDRESS
and then press PS button.

how do i find the bt address of the controller? I tried hcitool scan but nothing showed up.

CrckMc
2010-02-07, 15:21
how do i find the bt address of the controller? I tried hcitool scan but nothing showed up.

here maybe this helps you:

http://www.maxconsole.net/forums/archive/index.php/t-44168.html

CrckMc
2010-02-07, 18:44
To everyone who gets a connection but no key emulation:
i read this in a thread on ps3news and tried it, it works :)


it worked after I renamed "x11-sony-sixaxis.fdi" to "20-x11-sony-sixaxis.fdi" in /usr/share/hal/fdi/policy/20thirdparty... Rebooted, then it worked

wickedgtr1
2010-02-07, 23:19
To everyone who gets a connection but no key emulation:
i read this in a thread on ps3news and tried it, it works :)

This worked perfectly -- I am guessing anyone that is having problems can follow my outline, and this step and it should work... This is by far my favorite feature of the phone now :)

soredawg
2010-02-08, 00:26
Woohoo for Windows users, I've only finally been able to pair and change the BT address for the sixaxis.

Follow this guide http://forums.windower.net/topic/11959-sixaxis-under-windows-with-bluetooth/

good luck

smoku
2010-02-08, 12:25
Thanks to Youness Alaoui extensive problems report I managed to fix the problems with current packages.

I also found a way, to skip the kernel and kernel-modules packages upgrade. The kernel is packaged in separate package: kernel-joymouse and flashes itself during the installation.

You may now tap in your MicroB: http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install)

smoku
2010-02-08, 12:39
Woohoo for Windows users, I've only finally been able to pair and change the BT address for the sixaxis.

Follow this guide http://forums.windower.net/topic/11959-sixaxis-under-windows-with-bluetooth/

Thanks for the find. I added it to the guide.

smoku
2010-02-08, 12:41
To everyone who gets a connection but no key emulation:
i read this in a thread on ps3news and tried it, it works :)

Actually the problem is that maemo-optify moved the x11-sony-sixaxis.fdi to /opt/maemo and replaced it with symlink. I guess HAL is loading only real policy files and ignored the symlink.

The new sixad package available in repository is not optified and works fine.

Farooq
2010-02-08, 12:50
Actually the problem is that maemo-optify moved the x11-sony-sixaxis.fdi to /opt/maemo and replaced it with symlink. I guess HAL is loading only real policy files and ignored the symlink.

The new sixad package available in repository is not optified and works fine.

Should i buy PS3 controller now or shouid i wait for some more time.

Regards
Farooq

F2thaK
2010-02-08, 13:31
Thanks to Youness Alaoui extensive problems report I managed to fix the problems with current packages.

I also found a way, to skip the kernel and kernel-modules packages upgrade. The kernel is packaged in separate package: kernel-joymouse and flashes itself during the installation.

You may now tap in your MicroB: http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install)

installing now......... :D

smoku
2010-02-08, 13:45
Should i buy PS3 controller now or shouid i wait for some more time.

If I were you I would wait fore some confirmations, that the installation procedure is now flawless. :rolleyes:

Tomaszd
2010-02-08, 13:46
Świetna robota smoku :)

F2thaK
2010-02-08, 13:47
installed fine for me, cannot test connection etc though

realz88
2010-02-08, 18:13
can someone running windows pls upload their sixpair.pie file. i cant seem to find it anywhere.

g0dzilla
2010-02-08, 19:10
smoku and Tomaszd THANKS!!!! ALL WORKS!!!!
http://www.youtube.com/watch?v=tDc4pFqXxM4

soredawg
2010-02-08, 21:05
Smoku thanks for your awesome work on this, definately a huge WOW factor on my n900 now.

Attached sixpair.pie ....uploaded as sixpair.txt , please rename to sixpair.PIE


Good luck everyone

Tomaszd
2010-02-08, 21:13
smoku and Tomaszd THANKS!!!! ALL WORKS!!!!
http://www.youtube.com/watch?v=tDc4pFqXxM4

How correctly to compare buttons PS3 and SNES? There was a picture but now it is not present.

Um... I have nothing to do with this :)

realz88
2010-02-08, 22:32
yes yes yes ... connected ... ow to map d keys ?

realz88
2010-02-08, 22:37
mapped ... smoku u r a genius

quanganhzero1989
2010-02-09, 00:17
Thanks to Youness Alaoui extensive problems report I managed to fix the problems with current packages.

I also found a way, to skip the kernel and kernel-modules packages upgrade. The kernel is packaged in separate package: kernel-joymouse and flashes itself during the installation.

You may now tap in your MicroB: http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install)

Help please !!! I download this from Smoku; however, I cannot find the application in my N900. Where does this hide and how can I active and use it? Please let me know the steps that I need to follow. Thank in advance folks.

Farooq
2010-02-09, 03:46
Thankyou very much smoku. can i buy DS3 now :(
Waiting for signal from u:)
And now can any one help me to identify some gud games which can be played through the controller. One think more when the controller be able to handle all the games that run through emulators and games that run without emulators?

Regards

F2thaK
2010-02-09, 03:57
just bought a DS3 controller for $93AUD couldnt find any plain SixAxis.. oh well... now to get this working! oh and farooq you can play any game with this (I imagine) as I can play any game with my wiimote.... :D

Farooq
2010-02-09, 04:11
just bought a DS3 controller for $93AUD couldnt find any plain SixAxis.. oh well... now to get this working! oh and farooq you can play any game with this (I imagine) as I can play any game with my wiimote.... :D

thanks bt still need some names.And the emulators on which they run.

Regards

F2thaK
2010-02-09, 04:22
doom 1 + 2 (prboom)
quake 1 (sdlquake)
quake 3 - need to disable accelerometer, Ive figured out how to
openarena - need to disable accelerometer, Ive figured out how to
duke nukem 3d
wormux
snes roms (drnoksnes)
game boy advance roms (vgba)
flash games (that use keyboard)
any other game that uses keyboard

unkno
2010-02-09, 04:28
Any noticeable lag issue? Good enough to play fast-paced action games?

F2thaK
2010-02-09, 10:46
any news on multiple controller support???????? thanks

smoku
2010-02-09, 10:58
Help please !!! I download this from Smoku; however, I cannot find the application in my N900. Where does this hide and how can I active and use it? Please let me know the steps that I need to follow. Thank in advance folks.

See http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/

F2thaK
2010-02-09, 11:32
----------------------------------------------------------
Use PS3 SixAxis Controller with N900
For Windows Users
----------------------------------------------------------

Windows 7 and Vista users may have problems using Home edition OS's, especially with 64-bit editions.
Being able to run XP mode helps a lot. If you cannot, go here. (http://talk.maemo.org/showpost.php?p=525733&postcount=323)




Installation/Config:

1. Ensure you have a N900, a genuine PS3 SixAxis controller (DS3 will work) and a USB cable to plug controller into your PC

2. On your N900, install "sixaxis-support" from extras repo

3. on PC install libusb-win32-filter-bin-0.1.10.1 (http://f2thak.com/N900/libusb-win32-filter-bin-0.1.10.1.exe) (32-Bit Machines ONLY)
use this version (you may try newest version but Im unsure if it works)
64 BIT USERS GO HERE (http://www.ipodtouchfans.com/forums/showthread.php?t=148985) WARNING: THIS CAN CAUSE PROBLEMS, DO SO AT YOUR OWN RISK

4. on PC install GlovePie (http://f2thak.com/N900/GlovePIE.zip)
use this version (you may try newest version but Im unsure if it works)

5. on PC open file in notepad:
X:/*GlovePie Directory*/SixaxisScripts/n900.pie

6. go to this section:

sixaxis.BluetoothMAC = "xx:xx"

and replace the xx:xx with your phones Bluetooth address
(to find, go to: settings > general > about product)

7. connect SixAxis controller to PC

8. on PC, run GlovePie

9. Go to File > Open > X:/*GlovePie Directory*/SixaxisScripts/n900.pie

10. click the "Run >" button, wait a few seconds then press the controllers Connect button a few times

11. close GlovePie and disconnect controller





Usage:


Activate Bluetooth on N900 (Visible: Yes)
Press PS button on controller
Wait for the SixAxis light to stop flashing
To disconnect, turn off Bluetooth on phone






Connection Problems?:

add "input" back into the disabled modules in:

/etc/bluetooth/main.conf

stop/start bluetooth.
Note: doesn't work with "input" missing.





Create your own Custom button configuration:

To configure SixAxis buttons, on N900 edit:
/usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi

In this file, each group has the current set keys shown in descending order (top > bottom). in the section shown below, the top line is for the "select" button. to change the button, change the key number (key=??) which is highlighted in red. to find which key number to use, refer to "N900 X11 keycodes" below.

<!-- Select=Z; Analog L; Analog R; Start=Enter; PS=Backspace -->
<merge key="input.x11_options.MapButton1" type="string">key=52</merge>
<merge key="input.x11_options.MapButton2" type="string">key=54</merge>
<merge key="input.x11_options.MapButton3" type="string">key=55</merge>
<merge key="input.x11_options.MapButton4" type="string">key=36</merge>
<merge key="input.x11_options.MapButton17" type="string">key=22</merge>


N900 X11 keycodes (US layout):

The codes below relate to the N900 keyboard buttons.
Each line represents the lines of keys.

37 = Ctrl/Sym
?? = Fn
50 = Shift
43 = H
and so on...

37 24 25 26 27 28 29 30 31 32 33 48 22
?? 38 39 40 41 42 43 44 45 46 60 111 36
50 52 53 54 55 56 57 58 65 113 116 114


To determine controller buttons order:

pair controlller, then in xterm as root, type:

jstest /dev/input/js0





Re-connect SixAxis to PS3:

Connect controller to the PS3 with the USB cable and press the PS button to pair them. If this doesnt work, press the reset button on the controller and repeat:
http://members.wavenet.at/lambeo/webpics/reset_button.jpg





Sources:


http://forums.windower.net/topic/11959-sixaxis-under-windows-with-bluetooth/page__s__c0540d6dafebc1e0e388206dffcab19d
http://tomasz.sterna.tv/2010/02/play-games-on-nokia-n900-with-ps3-sixaxis-controller/
this thread
smoku (http://talk.maemo.org/member.php?u=27435)


BIG THANKS to "smoku" for this!


.

mannen
2010-02-09, 18:14
Use PS3 SixAxis Controller with N900
For Windows Users
----------------------------------------------------------
(Clean/fresh installation of OS is best. Also there is somethnig that conflicts with this..... trying to find out what)



Installation/Config:

1. Ensure you have a N900, a PS3 SixAxis controller (DS3 will work) and a USB cable to plug controller into your PC

2. On your N900, install "sixaxis-support" from:

Xiaoka Maemo Extras Repo
http://codex.xiaoka.com/apt/
catalogues = xiaoka
components = free non-free

or on N900 in microb broswer tap
http://static.maemo.org/style_maemo2009/img/icons/application_install.png (http://codex.xiaoka.com/apt/maemo/sixaxis-support.install)

3. install libusb-win32-filter-bin-0.1.12.2 (http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/)

4. install GlovePie (http://f2thak.com/N900/GlovePIE.zip)

5. open file in notepad:
X:/*GlovePie Directory*/SixaxisScripts/n900.pie

6. in this section:
sixaxis.BluetoothMAC = "xx:xx"

replace the xx:xx with your phones Bluetooth address
(to find, go to: settings > general > about product)

7. connect SixAxis controller to PC

8. on PC, run GlovePie

9. Go to File > Open > X:/*GlovePie Directory*/SixaxisScripts/n900.pie

10. click the "Run" button and close GlovePie

11. installPPJoy (http://ppjoy.blogspot.com/) on PC to configure (???)



Pairing/Usage:

# Activate Bluetooth on N900
# Press PS button on controller
# Wait for the BT icon to turn blue and sixaxis button stop
flashing
# Map keys in your console emulator settings




.

Ive tried your guide but cant get it to work.

Am i supposed to put in the whole bluetooth adress in glovePIE ex "00:BD:3A:88:27:28"? Then i psuh run and the GlovePIE program becomes gray. Then i close the program but my phone doesnt find the ps3 control....the ps3 controller just flashes with its red buttons....laughing at me :(
any tips what i can have missed? Followed your guide exactly.

fazeman
2010-02-09, 21:48
'lut,

J'ai fait exactement ça aussi mais cela ne fonctionne pas

merci
*
A +

'lu, j'ai fait exactement ça aussi, mais cela ne vous remercie pas A +

quanganhzero1989
2010-02-10, 01:48
Ive tried your guide but cant get it to work.

Am i supposed to put in the whole bluetooth adress in glovePIE ex "00:BD:3A:88:27:28"? Then i psuh run and the GlovePIE program becomes gray. Then i close the program but my phone doesnt find the ps3 control....the ps3 controller just flashes with its red buttons....laughing at me :(
any tips what i can have missed? Followed your guide exactly.

Same here !!! please help !!!

F2thaK
2010-02-10, 01:52
yes, that guide is not complete and 100% accurate, i need to work on it more.

those steps worked for me once, but now it wont work again.

i flashed/formatted my phone and only installed sixaxis support and it worked. but then i installed other apps and it stopped working...

its p.ss.ng me off

quanganhzero1989
2010-02-10, 02:10
I support you dude :D don't worry, just take time and post your new instruction as soon as you finish
Thanks

F2thaK
2010-02-10, 03:16
okay try it now guys, figured out the problem (i think)

http://talk.maemo.org/showpost.php?p=517534&postcount=220

wiicontrol doesnt conflict like i suspected which is great

make sure you press the PS connect button after running script in glovepie before closing app and disconnecting usb

plus im pretty sure you need to use http://f2thak.com/N900/libusb-win32-filter-bin-0.1.10.1.exe drivers, not the newer version I had there earlier..

.

quanganhzero1989
2010-02-10, 03:50
WORK LIKE CHARM aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Thank youuuuuuuuuuuuuuuuuuu

quanganhzero1989
2010-02-10, 04:00
One more thing, I am loking for a way to switch the default button on my PS3 controller, do you also know? Thank youuu

quanganhzero1989
2010-02-10, 04:44
I found out it, thank you :D

F2thaK
2010-02-10, 04:55
i want to set keyboard keys to the controller buttons... i think glovepie does this also.....

Farooq
2010-02-10, 05:36
i just had my wiimote and my sixaxis pair SIMULTANIOUSLY!! both working fully! uploading vid now

f2thak can u please confirm that 2 or more PS3 controller can be connected at the same time.

Regards

F2thaK
2010-02-10, 06:29
dunno give it a try, i only have 1... pretty sure u can, but problem is the buttons are identical so ur both player 1 for e.g.

smoku
2010-02-10, 06:36
f2thak can u please confirm that 2 or more PS3 controller can be connected at the same time.

They can.
I connected both my SA and DS3 controllers and they worked fine.
(Generating the same events but that's easy to fix.)

F2thaK
2010-02-10, 06:36
i just had my wiimote and my sixaxis pair SIMULTANIOUSLY!! both working fully!


N900 paired w/ SixAxis and WiiMote simultaniously
http://www.youtube.com/watch?v=hlbSJeMBA08


wiimote thru wiicontrol
and
DS3 sixaxis thru sixaxis support


.

quanganhzero1989
2010-02-10, 06:42
I have a question. Can this program make N900 connect to bluetooth devices like mouse and keyboard? I am using rdesktop now and I wonder if it is possible to use other bluetooth devices. Thanks

F2thaK
2010-02-10, 06:50
They can.
I connected both my SA and DS3 controllers and they worked fine.
(Generating the same events but that's easy to fix.)

smoku, can you please tell me how to change mapping of SixAxis buttons?? like change start button to be "Enter" etc thanks

do I use GlovePie or PPJoy?? something else?????

thanks !!

smoku
2010-02-10, 08:22
Can this program make N900 connect to bluetooth devices like mouse and keyboard?

http://talk.maemo.org/showthread.php?t=38372

smoku
2010-02-10, 08:23
smoku, can you please tell me how to change mapping of SixAxis buttons??

Edit /usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi

maxximuscool
2010-02-10, 08:25
my controller won't stop flashing even though my bluetooth is BLUE.

what do i done wrong?

it keep asking me if i want to connect but whenever i clicked "Yes" it just do it again and again never end until the controller turned itself off.


how do i fix this?

maxximuscool
2010-02-10, 08:43
anyone have the solution?

F2thaK
2010-02-10, 08:45
i had that problem till i flashed and started afresh... i know that sux, but now it works!!

maxximuscool
2010-02-10, 08:51
i don't want to reflash just yet though.I'll uninstall the zeemote hope it help

F2thaK
2010-02-10, 08:53
i thought wiicontrol may conflict, try that if u have it....

anything to do with bluetooth...

also, read the instructions carefully and follow exactly...

but i only had that problem once, before i flashed..........

F2thaK
2010-02-10, 09:00
Edit /usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi

thanks Smoku, but i need help understanding the file..

please help :D

maxximuscool
2010-02-10, 09:10
got rid of the wiiremote and still the same problem. the app installed and detect the controller but it won't connect. Though it keep on asking whether i want to connect or not.

not working for me with standard without reflashing. could someone who had this problem and got it fixed without reflash help me?

maxximuscool
2010-02-10, 09:20
one small question!

will the controller still working with my PS3?

F2thaK
2010-02-10, 09:20
i had no option but to reflash.

i went out and bought a $93AUD controller yesterday and tried for hours to get it working... it was the last resort AND IT WORKED!

i dont even have a ps3

the backup app works great BTW.! it saves all my widgets placement and settings plus automatically downloads and installs all your apps for you!

F2thaK
2010-02-10, 09:21
one small question!

will the controller still working with my PS3?

from what ive heard, no.

i think you have to use glovepie to change bt address back to your ps3's if im correct


its not other controllers,

N900 paired w/ SixAxis and WiiMote simultaniously
http://www.youtube.com/watch?v=hlbSJeMBA08



.

maxximuscool
2010-02-10, 09:23
crap it is not working with my ps3. how do i reset the setting back?

smoku
2010-02-10, 09:54
crap it is not working with my ps3. how do i reset the setting back?

The same way you did when you bought the PS3.
Connect it with USB cable, and press PS button. :D