Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: PS3 bluetooth remote controller

  1. #1
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    PS3 bluetooth remote controller

    The Ubuntu guide for having a PS3 Bluetooth remote controler working on your computer

    Motivation:
    To have a remote controller to control most of the multimedia functions in Xine, Amarok and the likes on my Ubuntu machine

    Prerequisites:
    - Compilation environment (TODO - don't recall which packages are necessary)
    - Browser witg http://ant.starikov.googlepages.com/...rsonybdremote2 page opened
    - Package bluez-utils
    - Package lirc
    - A PS3 Bluetooth remote controller (DUH!)

    Ubuntu version tested:
    Ubuntu 8.10 HardyGuide

    Part I - Installation

    1) The first part of the process is pretty well described in Antst's webpage:


    First you need to get sources for BT BD Remote Daemon from downloads page.
    Then you need to compile it. Just type "make" in directory with source files. You'll get binary called "bdremoted". You can copy it whenever it suits you. For example to /usr/local/sbin.

    2) Find your remote's address. Also described on his webpage:

    Now you can type in root console "hcitool scan" and then press simultaneously "Start" and "Enter" buttons on remote for about 5 seconds.
    You should see something like:
    hostname # hcitool scan
    Scanning ...
    00:19:C1:5A:F1:3F BD Remote Control
    hostname #


    00:19:C1:5A:F1:3F - is the address of your remote, which you can use for configuration

    3) The next step is to make the connection between your remote and your computer. this is done by starting the remote's "damon" (the driver you've just installed) and by linking it to LIRC, the well known remote controle daemon for Linux. Lirc has a special option so it can listen to communications on a specific (computer) port, and this is how it'll all be glued.

    This is also where I found Ubuntu to need a special treatment. It seems that the bluetooth daemon can't be running when the bdremote and lircd commands are issued, so what you'll want is something like:
    sudo /etc/init.d/bluetooth stop
    sudo /usr/bin/bdremoted -p 8888 -a 00:19:C1:5A:F1:3F
    sudo lircd -H null --connect 127.0.0.1:8888
    sudo /etc/init.d/bluetooth start
    Replacing 00:19:C1:5A:F1:3F with the address you got from the previous step.

    4) If all went well, the connection should have been started by now. You should run "irw", which is a little program that displays every button press you make on your remote control.
    So go ahead, start irw. Press some buttons on your remote and you should see some lines on your shell like:

    0004 00 num5 SonyBDRemote
    0004 01 num5 SonyBDRemote
    0005 00 num6 SonyBDRemote
    0034 00 scanfwd SonyBDRemote

    You have finished installing everything. If all went well, you should have your environment correctly configured. For troubleshooting, consult Part IV of the guide.

    Part II - Configuration

    Now that you have your environment set up, it's time to make your remote do more than just display stuff on your shell! This is done by configuring the .lircrc file that should be located on your $HOME folder (~/.lircrc).

    Your reference should be:
    http://www.lirc.org/html/configure.html#lircrc_format
    http://www.g-loaded.eu/2006/01/10/ho...-and-use-lirc/ (from "Application and Lirc support" onwards).

    .lircrc is the configuration file that tells Lirc what to do when you press a button on a remote. As the second reference page says, you should learn that there are basically three types of applications:

    1. Those which could and actually have been built with LIRC support. These act as LIRC clients when there is a running LIRC daemon.
    2. Those which do support LIRC, but have not been compiled with the LIRC support enabled.
    3. Those which do not support LIRC at all.

    Lets forget about number 2 (you would have to recompile them with LIRC support enabled). We are reduced to "built in LIRC support" and "no LIRC support". For the latest, we can control them using the irexec program.

    First things first, lets have a look at a basic configuration entry in .lircrc:

    begin
    remote = SonyBDRemote
    button = play
    prog = xine
    config = Play
    end

    Almost every option is pretty self-explanatory. The "remote", well, the remote you'll use. You'll want SonyBDRemote here.
    "button" is the remote button you press.
    "prog" is the program you want to control
    "config" is what you want that button to do

    Recall when you ran "irw", you got lines like:
    0005 00 num6 SonyBDRemote

    The program provides the name of the remote you'll put on .lircrc and the name of the button you press (in the example, num6). When you're writing your configuration file, you may want to check in irw for the name of a particular button.

    In the .lircrc entry example, I wanted to control the Xine program, which has built-in LIRC support. Therefore, LIRC knows what the "Play" config is.

    For a better reference of the available options in Xine, check http://xinehq.de/index.php/readme#2.4.4.


    TODO - Next, I'll show you how to work with irexec. In the meantime, check the reference pages I showed you.

    Part III - Making it pretty

    TODO - I'm developing a simple init.d script so that the remote works as soon as you start your computer.

    Part IV - Troubleshooting
    One minor (and unconfirmed) issue I ran into was that my computer didn't shutdown when the programs were active. To fix this, I added a shutdown script (run when the computer is shutting down !!), which I'll update on Part III of the guide.TODO - tell me what doesn't work.
    Last edited by wild_oscar; August 2nd, 2008 at 11:53 AM. Reason: Created guide

  2. #2
    Join Date
    Aug 2008
    Beans
    34

    Re: PS3 bluetooth remote controller

    Bump . . .

    Hope you can get it worked out and can get a guide posted. I'm a newb looking to do the same thing.

  3. #3
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: PS3 bluetooth remote controller

    Guide created. Please read and tell me if you were able to work it out!

  4. #4
    Join Date
    Aug 2008
    Beans
    34

    Re: PS3 bluetooth remote controller

    Are you using the remote with a PS3 as well?

  5. #5
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: PS3 bluetooth remote controller

    Quote Originally Posted by yojimba View Post
    Are you using the remote with a PS3 as well?
    Not yet, as I'm lacking an important piece of hardware for that - the PS3.
    Will buy one as soon as someone brings me one from the USA (where it's half the price with the current euro-dollar rates)!

  6. #6
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: PS3 bluetooth remote controller

    Quote Originally Posted by yojimba View Post
    Are you using the remote with a PS3 as well?
    Actually, I now got a PS3 and my bdremoted stopped working. Don't know if the two are related!

  7. #7
    Join Date
    Aug 2008
    Beans
    3

    Re: PS3 bluetooth remote controller

    i think that the remote can only be coupled with one device at one time. so when you connect it to your ps3 it's loosing the "settings" for the connection to your ubuntu box. does it still not work when you try to do your described process from the beginning (including finding out the hardware address ...), maybe the remote switches to the coupling mode when you press the 2 buttons mentioned in your article together.

  8. #8
    Join Date
    Jun 2007
    Beans
    157
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: PS3 bluetooth remote controller

    Quote Originally Posted by hedgehog.at View Post
    i think that the remote can only be coupled with one device at one time. so when you connect it to your ps3 it's loosing the "settings" for the connection to your ubuntu box. does it still not work when you try to do your described process from the beginning (including finding out the hardware address ...), maybe the remote switches to the coupling mode when you press the 2 buttons mentioned in your article together.

    You are correct.

    I managed to make it work again by coupling it again to my pc, using Brett's python script found here: http://ps3mods.blogspot.com/2007/03/...ux-update.html

  9. #9
    Join Date
    Aug 2008
    Beans
    3

    Re: PS3 bluetooth remote controller

    thanks for the link ... sounds great, i'm going to test the whole procedure today in the evening

  10. #10
    Join Date
    Nov 2008
    Beans
    4
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: PS3 bluetooth remote controller

    I'm on 8.10 and can't get the driver to work. I have no problem getting the controller-id and starting the script, but irw shows no output at all.

    I've also tried to telnet into port 8888, but nothing shows up there either. Increasing debug level when launching driver doesn't seem to output anything more in stdout, dmesg or /var/log/messages when I do keypresses.

    At the momen't I'm kind of stuck so any input of how to proceed is appreciated

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •