2007-09-25, 22:45
Hello,
I have been following the progress of XBMC Linux since day one, and I have to say, you are all doing great!
I am not a cpp programmer by any means, so I will help where I can. At the moment, I am attempting to get the PS3 BD Remote to work with XBMC. (This is a bluetooth remote) Although a lot of the work I am doing is not with XBMC directly, I would like to post my progress, and hopefully there are others interested and could give some input.
So far, I have been able to pair the remote, decode all the button presses, get battery life info, and map the buttons to keyboard button presses (which is how I control XBMC), using a program called xte, which interfaces with the xtest library. Everything I have written is written in python.
The problems I have run in to that is XBMC related is mostly with the Virtual Keyboard in XBMC. The keyboard doesn't have any commands to move the cursor-type thing around the letters on the virtual keyboard (i assume, because you don't need a virtual keyboard, if you have a physical one).
To solve this problem, there are a number of things that can be done:
-Fix the virtual keyboard to work with keyboard buttons
-Make a driver to interface the sony remote with LIRC.
-Make a driver to treat the remote as a joystick
The first option is probably the quickest and easiest to do, and will solve the problem just fine, but the second option is probably the most complete solution, with the third being "if all else fails".
Another problem I am having, is I have to pair the remote every time the script is run. I don't know enough about bluetooth to make it remember the connection so I don't have to pair it every time.
The following two posts will include everything I know about the remote commands that are sent, as well as a sample python script that I use to map button presses to keyboard presses.
If you are interested in helping with this project, I will gladly accept any code or even simple guidance on how to progress with this.
Thanks,
Brandon
I have been following the progress of XBMC Linux since day one, and I have to say, you are all doing great!
I am not a cpp programmer by any means, so I will help where I can. At the moment, I am attempting to get the PS3 BD Remote to work with XBMC. (This is a bluetooth remote) Although a lot of the work I am doing is not with XBMC directly, I would like to post my progress, and hopefully there are others interested and could give some input.
So far, I have been able to pair the remote, decode all the button presses, get battery life info, and map the buttons to keyboard button presses (which is how I control XBMC), using a program called xte, which interfaces with the xtest library. Everything I have written is written in python.
The problems I have run in to that is XBMC related is mostly with the Virtual Keyboard in XBMC. The keyboard doesn't have any commands to move the cursor-type thing around the letters on the virtual keyboard (i assume, because you don't need a virtual keyboard, if you have a physical one).
To solve this problem, there are a number of things that can be done:
-Fix the virtual keyboard to work with keyboard buttons
-Make a driver to interface the sony remote with LIRC.
-Make a driver to treat the remote as a joystick
The first option is probably the quickest and easiest to do, and will solve the problem just fine, but the second option is probably the most complete solution, with the third being "if all else fails".
Another problem I am having, is I have to pair the remote every time the script is run. I don't know enough about bluetooth to make it remember the connection so I don't have to pair it every time.
The following two posts will include everything I know about the remote commands that are sent, as well as a sample python script that I use to map button presses to keyboard presses.
If you are interested in helping with this project, I will gladly accept any code or even simple guidance on how to progress with this.
Thanks,
Brandon