•   
  • 1
  • 50
  • 51
  • 52(current)
  • 53
  • 54
  • 56
  •   
[LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS
Hi
I'm trying to put everything together to make my PS3 remote working with Kodi
However, after having compiled and installed bluez package (patched following istructions in the previous page) I get this attempting to run ps3_pair

Quote:Traceback (most recent call last):
File "ps3_pair.py", line 3, in <module>
from bluez.Manager import Manager
ImportError: No module named bluez.Manager

Also uinput module seems not loaded
I think something is missing, could you please help to point it out?
Bye
Reply
Hi
No one still trying to use PS3 remote on Kodi running XBMCbuntu 14.04?
I made a step forward to make ps3pair python script working, but still with no success.
After googling around, I download and installed the source code of python wrapper over Bluez, NOT PyBluez but this one:

https://code.google.com/p/bluez-python/

Now I have the Bluez module installed, but the script still hang here:

Quote:Traceback (most recent call last):
File "ps3_pair.py", line 93, in <module>
Main()
File "ps3_pair.py", line 20, in __init__
self.adapter = self.manager.GetAdapter()
File "/usr/local/lib/python2.7/dist-packages/bluez/BlueZInterface.py", line 51, in __getattr__
% (self.__class__.__name__, name) )
AttributeError: 'Manager' object has no attribute 'GetAdapter'

Unfortunately my python skills are no existing but from the inspection of BlueZInterface.py it seems that the GetAdapter method should come from the dbus interface.
Is it possible that there are some, updated, python modules that are not compatible with the script?
Bye
Reply
I was having some trouble setting it up with KODIbuntu but I made it work in the end. Seems like http://kitlaan.twinaxis.com/ is down, but I had the old files saved from an old install and they worked fine here.
Here is what I did to get the remote working with KODIbuntu 14.04 (I have re-uploaded the files to dropbox):

Get and install bluez + patch
Code:
sudo apt-get update
sudo apt-get install bluez libdbus-1-dev libglib2.0-dev python-dbus python-gobject
sudo service bluetooth stop
cd ~
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/bluez_ps3remote_4.91.diff
wget http://www.kernel.org/pub/linux/bluetooth/bluez-4.94.tar.gz
tar xvfz bluez-4.94.tar.gz
cd bluez-4.94
patch -p1 < ../bluez_ps3remote_4.91.diff
./configure --prefix=/usr && make
sudo make install
sudo ln -s /etc/bluetooth/input.conf /usr/etc/bluetooth/input.conf
sudo ln -s /etc/bluetooth/audio.conf /usr/etc/bluetooth/audio.conf
sudo ln -s /etc/bluetooth/serial.conf /usr/etc/bluetooth/serial.conf

sudo reboot

Pair the PS3 Remote
Code:
cd ~
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/ps3pair.tar.gz
tar xvfz ps3pair.tar.gz
cd ps3pair
sudo python ps3_pair.py
Follow on screen instructions to pair remote.
Hold the START and ENTER buttons on the PS3 remote.

To check remote is connected, run:
Code:
/usr/share/doc/bluez/examples/list-devices

Download my keymap (here is a picture of the mapping):
Code:
cd ~/.kodi/userdata/keymaps/
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/keyboard.xml
cd /etc/bluetooth
sudo mv input.conf input.conf.bak
sudo wget https://dl.dropboxusercontent.com/u/89032099/XBMC/input.conf
sudo reboot

Most of this is copied from the wiki
Reply
can someone share the most updated input.conf
i'm using the one from the wiki (HOW-TO:Set_up_PS3_BD_Remote (wiki))
but it seems that some of the buttons are not working - such as small step forward/backward, subtitle, audio (at least they are not identified in the kodi key editor add on)


edit: eh, just saw darius's posts from previous page, seems i'm stuck since the BT stack changed, will try he's workaround
Reply
Hmm... time to re-purpose my remote.

So does dragul's method above not work? Or are there more to it?
Reply
Need a little help here. Im trying to pair up a ps3 bluetooth remote with Kodibuntu and am getting stuck on this line

wget http://www.kernel.org/pub/linux/bluetoot....94.tar.gz

I'm getting '404 not found' but i know that the file exists because i can past the same into browser and the file will download
Im a total nob with this command line stuff, i have the file sitting in my downloads but no matter what i do i can't work out the correct command to load it

should mention I'm using a command prompt window not SSH
Reply
The above seems fairly outdated as it mentions patches to blueZ 4.94 but the BlueZ version in ubuntu 14.04 (which i believe kodibuntu is based on) is 4.101 so it all looks a bit suspect.... furthermore i think kitlaans patch may have made it into later versions of BlueZ...

I downloaded the source of BlueZ 4.101 and can see many of Kitlaans changes already there


This is also all likely to change again in more recent kernel set up (openelec 5.x.x, Fedora 21, ubuntu Vivid Vevet?) becuase these will feature BlueZ 5.x.

I think we need to look into the above for a possible re-write for the wiki
Reply
So I've been putting off upgrading from xbmc gotham (v13) using xbmcbuntu 12.04 due to the unknown element that is the ps3 remote.
Has there been any improvement in the above situation or are we still in the dark about the status of the remote.
Reply
I am having a slight problem, when the PS3 remote sleeps (either by timeout or putting it to sleep on purpose) when it wakes up, it will not automatically reconnect , I have to issue the command " sudo service bluetooth restart " and it then reconnects fine. Any ideas why it does that?
Reply
This is for my memory as much as anything else;

I have been trying for ages to get my ps3 remote working correctly and have just stumbled on the answer today. The patch is still needed for the bluze v 4.101 although the remote will work without it mine does not go into sleep mode so drains the batteries. A modified version can be found here https://www.mediafire.com/folder/55tmp7c...ch%20Saucy thanks to RMerlin

Now to get the stop button and other none working buttons going you can either edit by hand the keyboard mappings in ~/.kodi/userdata/keymaps/ or you can dowonload the addon which will allow you to get the keys working from within kodi very quickly Add-on:Keymap_Editor (wiki)

Sav
Reply
Hi All

Latest PS3 Bluetooth Remote Installation instructions;
I have recently updated my KODI/XBMC installation I have also uploaded the Pairing Script and Patch for Bluez-4.101
I take no credit for this work I have just put it all together.

Install Patch and Install Bluez

Code:
sudo apt-get update
sudo apt-get install bluez libdbus-1-dev libglib2.0-dev python-dbus python-gobject
sudo service bluetooth stop
cd ~
wget https://www.dropbox.com/s/zwerzydgfiw54zx/bluez-4.101_ps3remote.diff
wget https://www.dropbox.com/s/5v72jdo7ay393jb/bluez-4.101.tar.gz
tar xvfz bluez-4.101.tar.gz
cd bluez-4.101
patch -p1 < ../bluez-4.101_ps3remote.diff
./configure --prefix=/usr && make
sudo make install
sudo ln -s /etc/bluetooth/input.conf /usr/etc/bluetooth/input.conf
sudo ln -s /etc/bluetooth/audio.conf /usr/etc/bluetooth/audio.conf
sudo ln -s /etc/bluetooth/serial.conf /usr/etc/bluetooth/serial.conf

sudo reboot

Pair The Remote
Code:
cd ~
wget https://www.dropbox.com/s/62p4ycth8ge0hnv/ps3pair.tar.gz
tar xvfz ps3pair.tar.gz
cd ps3pair
sudo python ps3_pair.py

Check The Remote is Connected
Code:
/usr/share/doc/bluez/examples/list-devices

I hope this helps somebody
Reply
https://www.dropbox.com/s/5v72jdo7ay393j...-4.101.tar gives 404.

It would be also cool if you include support for Logitech Harmony remote ID in the patch.
Reply
Hi CrazyCoder

I missed .gz off

https://www.dropbox.com/s/5v72jdo7ay393j...101.tar.gz should work
Reply
I'm giving XBMC/Kodi a try again, bought an asus chromebox m004u and got Kodi running great. I'm not familiar with linux much at all. I'd like to get this PS3 remote to work with Kodi, is it my understanding that all I need to do is copy/paste everything below into SSH, reboot the machine, and the PS3 remote will be working in Kodi?

(2015-01-02, 12:38)draguls Wrote: Get and install bluez + patch
Code:
sudo apt-get update
sudo apt-get install bluez libdbus-1-dev libglib2.0-dev python-dbus python-gobject
sudo service bluetooth stop
cd ~
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/bluez_ps3remote_4.91.diff
wget http://www.kernel.org/pub/linux/bluetooth/bluez-4.94.tar.gz
tar xvfz bluez-4.94.tar.gz
cd bluez-4.94
patch -p1 < ../bluez_ps3remote_4.91.diff
./configure --prefix=/usr && make
sudo make install
sudo ln -s /etc/bluetooth/input.conf /usr/etc/bluetooth/input.conf
sudo ln -s /etc/bluetooth/audio.conf /usr/etc/bluetooth/audio.conf
sudo ln -s /etc/bluetooth/serial.conf /usr/etc/bluetooth/serial.conf

sudo reboot

Pair the PS3 Remote
Code:
cd ~
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/ps3pair.tar.gz
tar xvfz ps3pair.tar.gz
cd ps3pair
sudo python ps3_pair.py
Follow on screen instructions to pair remote.
Hold the START and ENTER buttons on the PS3 remote.

To check remote is connected, run:
Code:
/usr/share/doc/bluez/examples/list-devices

Download my keymap (here is a picture of the mapping):
Code:
cd ~/.kodi/userdata/keymaps/
wget https://dl.dropboxusercontent.com/u/89032099/XBMC/keyboard.xml
cd /etc/bluetooth
sudo mv input.conf input.conf.bak
sudo wget https://dl.dropboxusercontent.com/u/89032099/XBMC/input.conf
sudo reboot

Most of this is copied from the wiki
Reply
I can confirm the latest instructions from fellow user fostersimported are working.

But not all buttons on the remote work. They don't register in the keymap-editor plugin and when you enable debug logging (which logs all keypresses) they don't show up at all. Examples are the triangle/options button, L1/2/3, R1/2/3, prev, next.

From years ago, I remember the old bluez and uinput patches to enable these buttons which apparently don't map to default Linux key-codes. Can't remember the details though Sad.

The patched input.conf from bluez includes mappings for these keys, so there must be a way to make them work. Anybody got them working on recent Linux/bluez?
Reply
  •   
  • 1
  • 50
  • 51
  • 52(current)
  • 53
  • 54
  • 56
  •   
 
Thread Rating:
  • 6 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
[LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS56