sixaxis on bluetooth

YDL running on the Sony Playstation 3

Moderator: billb

Postby billb » 09 May 2008, 06:52

Thanks to jaybps3 I have my Sixaxis and Dualshock 3 controllers working over bluetooth now. Hopefully I can help make this process a bit easier -- no compiling or editing files necessary, I think. :D

I have added an RPM for bluez-utils in the Downloads section on my blog. It already has the necessary patch applied and takes care of hcid.conf edit, also. Here's a direct link to it. Just click on the link and select Open to install it.

And for bluez-libs, instead of compiling, you can install with:

yum install bluez-libs

So, you should have these versions:

Code: Select all
$ rpm -q bluez-utils
bluez-utils-3.7-2.ydl.2
$ rpm -q bluez-libs
bluez-libs-3.7-1


Then these steps (as posted by jaybps3):

Code: Select all
service bluetooth stop


Code: Select all
service hidd stop


Code: Select all
service hidd start


Code: Select all
service bluetooth start


Code: Select all
service hidd stop


Code: Select all
hidd --server --nocheck -n


"after you enter the last command press the ps button on your ps3 controller you can press it on 2 controllers if you want. It should show the information on them now you can close the terminal your sixaxis is working in bluetooth mode!

You can run this command in the terminal to test that its working."
Code: Select all
jstest /dev/input/js0

(assuming your controller is assigned to /dev/input/js0 -- on my system I already had a USB gamepad on js0, so it's /dev/input/js1 and dev/input/js2 for my Dualshock 3 and Sixaxis controllers)
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
User avatar
billb
Site Admin
Site Admin
 
Posts: 5222
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby Jaybps3 » 09 May 2008, 11:36

pizzosteez wrote:Ok, so far so good, but then I got stuck again. I did

Now copy and paste the (patch-hidd-3.19-pabr3) file into the hidd folder in bluez-utils-3.30 then go back right click on the hidd folder choose to open in terminal, Then enter this command in terminal!

Code:
patch <patch-hidd-3.19-pabr3


Now it will read patching main.c, Now that you've patch main. c you need to right click on it choose copy. Now right click on the destop and choose paste. This will paste the freshly patched main.c onto your desktop.

Then you extract the (bluez-utils-3.7-2.ydl.1.src.rpm) to your desktop, Open it up browse to the hidd folder, You will see a main.c file. You need to delete that main.c and copy/paste your new main.c from your desktop into the hidd folder...

After that you need to right click on the (bluez-utils-3.7-2.ydl.1.src) file and select open in terminal. Now you run the commands!


That last paragraph was where I got confused. I right clicked on the RPM and selected "extract here". It created a folder called (bluez-utils-3.7-2.dl.1.src.rpm_FILES). I opened it up, went into (bluez-utils-3.7.tar.gz) and replaced main.c.

After that I could not find the (bluez-utils-3.7-2.ydl.1.src) file to right click on and open in terminal. Where is this file?


I'm sorry I wasnt as specific in my post as I should have been, I am going to make a post below this one revised and fixed its actually the foler (bluez-utils-3.7) inside the (bluez-utils-3.7-2.dl.1.src.rpm_FILES) folder that you need to open in terminal.

I revised this and will post it right below this!

billb wrote:Thanks to jaybps3 I have my Sixaxis and Dualshock 3 controllers working over bluetooth now. Hopefully I can help make this process a bit easier -- no compiling or editing files necessary, I think. :D

I have added an RPM for bluez-utils in the Downloads section on my blog. It already has the necessary patch applied and takes care of hcid.conf edit, also. Here's a direct link to it. Just click on the link and select Open to install it.

And for bluez-libs, instead of compiling, you can install with:

yum install bluez-libs

So, you should have these versions:

Code: Select all
$ rpm -q bluez-utils
bluez-utils-3.7-2.ydl.2
$ rpm -q bluez-libs
bluez-libs-3.7-1


Then these steps (as posted by jaybps3):

Code: Select all
service bluetooth stop


Code: Select all
service hidd stop


Code: Select all
service hidd start


Code: Select all
service bluetooth start


Code: Select all
service hidd stop


Code: Select all
hidd --server --nocheck -n


"after you enter the last command press the ps button on your ps3 controller you can press it on 2 controllers if you want. It should show the information on them now you can close the terminal your sixaxis is working in bluetooth mode!

You can run this command in the terminal to test that its working."
Code: Select all
jstest /dev/input/js0

(assuming your controller is assigned to /dev/input/js0 -- on my system I already had a USB gamepad on js0, so it's /dev/input/js1 and dev/input/js2 for my Dualshock 3 and Sixaxis controllers)


Thanks billb I'm sure this will make it much easier for some! We need someone to test this method and make sure the rpm build will work, I dont know for sure but the trick to all this after patching and installing the bluez utils is to stop the bluetooth service and stop the hidd service and then why they arent running edit the hcid.conf file. Then start the hidd service and then bluetooth service and then stop the hidd service and restart the hidd service with the hidd --server --nocheck -n code.

What I am curious about is whether or not this process will work if you install the bluez utils and the hcid.conf file all in one rpm, Perhaps it will work fine, Once the rpm is installed just open terminal and run the commands!

Code: Select all
service bluetooth stop


Code: Select all
service hidd stop


Code: Select all
service hidd start


Code: Select all
service bluetooth start


Code: Select all
service hidd stop


Code: Select all
hidd --server --nocheck -n


Once this is tested for certain we will know. And I will contribute with a tutorial on using the rpm build method, For now I revised the method I've gotten to work , And posted it up in full detail making it as clear as I can and in as much detail as I could.
Last edited by Jaybps3 on 09 May 2008, 12:33, edited 3 times in total.
Jaybps3
ydl guru
ydl guru
 
Posts: 458
Joined: 04 May 2008, 11:36

Postby Jaybps3 » 09 May 2008, 11:38

Delete!!!!
Last edited by Jaybps3 on 16 May 2008, 14:06, edited 1 time in total.
Jaybps3
ydl guru
ydl guru
 
Posts: 458
Joined: 04 May 2008, 11:36

Postby billb » 09 May 2008, 13:16

Jaybps3 wrote:Thanks billb I'm sure this will make it much easier for some! We need someone to test this method and make sure the rpm build will work, I dont know for sure but the trick to all this after patching and installing the bluez utils is to stop the bluetooth service and stop the hidd service and then why they arent running edit the hcid.conf file. Then start the hidd service and then bluetooth service and then stop the hidd service and restart the hidd service with the hidd --server --nocheck -n code.

What I am curious about is whether or not this process will work if you install the bluez utils and the hcid.conf file all in one rpm, Perhaps it will work fine, Once the rpm is installed just open terminal and run the commands!


I think using the RPM should be fine ... that's how I did it. :D But yes, would like to hear others have success with it, too.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
User avatar
billb
Site Admin
Site Admin
 
Posts: 5222
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby billb » 10 May 2008, 19:56

billb wrote:I think using the RPM should be fine ... that's how I did it. :D But yes, would like to hear others have success with it, too.


Anyone try using the RPM yet? See this post.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
User avatar
billb
Site Admin
Site Admin
 
Posts: 5222
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby badfish591 » 10 May 2008, 20:44

i just did, and it worked perfectly, thanks billb.
60GB ps3 running ydl 6.0 on a 32" JVC LT32E488 LCD

"The box said, 'Requires Windows Xp or better.' So I installed Linux."
User avatar
badfish591
ydl addict
ydl addict
 
Posts: 105
Joined: 04 Apr 2008, 14:43
Location: pineapple pork florida

Postby uncholowapo » 10 May 2008, 21:55

Thanks for the RPM billb. That made me :D. Now have you or anyone else tried to get the motion sensing detected?

I was reading this guide and the 4th part describes the process on how to do it, but since I am still a novice, I couldn't get it to work.

I really want this to work so me and my friend can try and build the helicopter in the videos at the top over the summer for a fun project.
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

Postby billb » 10 May 2008, 22:19

@ badfish591 & uncholowapo:

Great! Thanks for letting me know it worked! :D

I haven't tried to do anything with the motion sensing part. Not sure what I'd use it for ... but maybe something will come up.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
User avatar
billb
Site Admin
Site Admin
 
Posts: 5222
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby kingofall00 » 12 May 2008, 03:02

after you reboot do you loose everything? how do i get my six axis to reconnect?
kingofall00
ydl beginner
ydl beginner
 
Posts: 31
Joined: 06 Feb 2008, 16:41

Postby uncholowapo » 12 May 2008, 03:08

Just stop hidd and start it with hidd --server --nocheck -n .
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

Postby pizzosteez » 12 May 2008, 12:24

Step 8
Open up the (bluez-utils-3.7-2.dl.1.src.rpm_FILES) folder, and browse to the (bluez-utils-3.7) folder right click on it and select open in terminal. Now run these commands!

Code:
./configure --prefix=/usr


Code:
make clean


Code:
make all


Code:
make install


Ok, I did this and got two errors. First, when running command (./configure --prefix=/usr ) it seemed fine, but ended with (configure error: dbus > 0.35 is required). I wasn't sure if this was normal, so then I typed (make clean) as the next step instructs. What i got back was (No rule to make target 'clean'. Stop.)

Wow, it actually told me to stop? Linux has attitude. It did the same thing when trying to (make install) and (make all).

Any ideas?
pizzosteez
ydl newbie
ydl newbie
 
Posts: 15
Joined: 17 Apr 2008, 03:56

Postby uncholowapo » 12 May 2008, 13:15

Did you try compiling it first out of all of them? Because If you did then it won't work...well it didn't for me. I had to compile the other ones first before I compiled utils. I don't know why but it worked.
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

Postby billb » 12 May 2008, 15:14

pizzosteez wrote:Wow, it actually told me to stop? Linux has attitude. It did the same thing when trying to (make install) and (make all).

Any ideas?


:D You do know you can use the RPM to install the updated bluez-utils now, right?
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
User avatar
billb
Site Admin
Site Admin
 
Posts: 5222
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby MarkyboyUK » 12 May 2008, 20:36

Followed the guide (not billbs RPM) and managed to get bluetooth sixaxis working - thanks to all who posted up the tips. Couple of questions I have now please.
When I press the PS button the sixaxis LED's blink continuously as though it's in some sort of pairing mode - is that normal? The only way I have found to stop it is to power off the PS3.

At this time I only want to use the PS3/Linux combo for emulation - mame in particular - is it possibe to boot linux straight into sdlmame (which I've got working) without having to have a keyboard and mouse plugged in? - ideally, i'd like to "boot-game-os" when I exit from sdlmame (using sixaxis).

Does anyone know of a PS3/SDLMAME LiveCD project?

Thanks
MarkyboyUK
ydl beginner
ydl beginner
 
Posts: 29
Joined: 12 May 2008, 20:20

Postby uncholowapo » 12 May 2008, 21:37

When I press the PS button the sixaxis LED's blink continuously as though it's in some sort of pairing mode - is that normal? The only way I have found to stop it is to power off the PS3.


Yes it is normal.

Does anyone know of a PS3/SDLMAME LiveCD project?


To my knowledge there is no such thing.
PS3 40GB has YDL 6.1 running 480i on a piece of $#!% Sanyo 24 incher. Need to go to 1080p.
User avatar
uncholowapo
ydl guru
ydl guru
 
Posts: 687
Joined: 19 Feb 2008, 02:58
Location: Norcross, GA USA

PreviousNext

Return to Playstation 3

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests