XBMC Community Forum
[LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS (/showthread.php?tid=50717)



- akex - 2009-10-12 23:16

Still the same. I install this one (from ur website) bluez-patched_4.54-1_i386.deb


- Hexus - 2009-10-13 02:39

flxfxp Wrote:Ok, here is a new installation procedure that uses 4.54 by ruff with his powersave and keymap patches. I edited most of the keys maps to have them working in xbmc without lirc. The only downside is that it has to build from source, which requires the entire toolbox plus time to compile.
This can be fixed as soon as I know how to properly make deps.

Procedure:
Code:
apt-get install libnl1 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 -y
            wget http://flx.me/script/bluez-patched_4.54-1_i386.deb
            dpkg -i bluez-patched_4.54-1_i386.deb
            wget http://flx.me/script/ps3_pair.tar.gz
             tar -xzvf ps3_pair.tar.gz
            rm ps3_pair.tar.gz
             echo modprobe uinput > /etc/rc.local
            echo /usr/local/sbin/bluetoothd >> /etc/rc.local
            echo "exit 0" >> /etc/rc.local
            echo "<keymap>" > /home/xbmc/.xbmc/userdata/Keymap.xml
            echo " <global>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "  <keyboard>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f1>XBMC.ActivateWindow(osdaudiosettings)</f1>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f2>XBMC.ActivateWindow(osdaudiosettings)</f2>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f3>XBMC.ActivateWindow(videolibrary)</f3>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f4>XBMC.ActivateWindow(videofiles)</f4>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f5>XBMC.ActivateWindow(MyMusic)</f5>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f6>XBMC.ActivateWindow(MyPictures)</f6>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f7>XBMC.ActivateWindow(Weather)</f7>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f11>skipprevious</f11>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f12>skipnext</f12>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "  </keyboard>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "   </global>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo " <FullscreenVideo>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "    <keyboard>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f11>bigstepback</f11>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <f12>bigstepforward</f12>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "        <menu>ShowVideoMenu</menu>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "    </keyboard>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo " </FullscreenVideo>" >> /home/xbmc/.xbmc/userdata/Keymap.xml
            echo "</keymap>" >> /home/xbmc/.xbmc/userdata/Keymap.xml

flxfxp, what additional packages are needed for this procedure to start to work? I'm trying to install it on XBMCLive and constantly getting this error:

Code:
(T: XBMCLive)root@XBMCLive:~# tar -xzvf ps3_pair.tar.gz
bluez/
bluez/.svn/
bluez/.svn/tmp/
bluez/.svn/props/
bluez/.svn/prop-base/
bluez/.svn/text-base/
bluez/.svn/tmp/props/
bluez/.svn/tmp/prop-base/
bluez/.svn/tmp/text-base/
bluez/ServiceInterface.pyc
bluez/BlueZInterface.pyc
bluez/BaseInterface.pyc
bluez/errors.pyc
bluez/utils.pyc
bluez/Device.pyc
bluez/Adapter.pyc
bluez/Manager.pyc
bluez/__init__.pyc
bluez/BlueZInterface.py
bluez/ServiceInterface.py
bluez/utils.py
bluez/Adapter.py
bluez/__init__.py
bluez/Device.py
bluez/errors.py
bluez/BaseInterface.py
bluez/Manager.py
bluez/Agent.py
bluez/Agent.pyc

gzip: stdin: decompression OK, trailing garbage ignored
bluez/.svn/dir-prop-base
bluez/.svn/format
bluez/.svn/all-wcprops
bluez/.svn/entries
bluez/.svn/text-base/Makefile.am.svn-base
bluez/.svn/text-base/BlueZInterface.py.svn-base
bluez/.svn/text-base/ServiceInterface.py.svn-base
bluez/.svn/text-base/utils.py.svn-base
bluez/.svn/text-base/Adapter.py.svn-base
bluez/.svn/text-base/__init__.py.svn-base
bluez/.svn/text-base/Device.py.svn-base
bluez/.svn/text-base/errors.py.svn-base
bluez/.svn/text-base/BaseInterface.py.svn-base
bluez/.svn/text-base/Manager.py.svn-base
bluez/.svn/text-base/Agent.py.svn-base
ps3_pair.py
tar: Child returned status 2
tar: Error exit delayed from previous errors

Thanks!


minimyth - logistiker - 2009-10-13 06:35

For those of you who would like a different solution from xbmc, I submitted Ruff's patches to minimyth and they were committed the same day. Wow that's fast!

http://code.google.com/p/minimyth/source/detail?r=5662

Thanks again Ruff.

Hey Ruff, why the hell are the bluez maintainers taking so long to integrate your patches? You would think that they would at least integrate the battery patch.


- flxfxp - 2009-10-13 13:22

Hexus Wrote:flxfxp, what additional packages are needed for this procedure to start to work? I'm trying to install it on XBMCLive and constantly getting this error:

Code:
ps3_pair.py
tar: Child returned status 2
tar: Error exit delayed from previous errors

Thanks!

Its just a problem with the tar, no big deal.


- flxfxp - 2009-10-13 13:23

akex Wrote:Still the same. I install this one (from ur website) bluez-patched_4.54-1_i386.deb

No idea, I'm not a bluez dev. I merely created a deb out of the patched binary files. Maybe other can help?


- Hexus - 2009-10-13 23:03

..resolved


- adrian - 2009-10-14 22:03

Hey flxfxp I was stoked to try your deb since I had problems compiling my own but I'm running 64bit I don't supposed you've compiled a 64 bit version, have you? Is your patched source code available? maybe I'll have another go at compiling.


- flxfxp - 2009-10-14 22:12

you can find it at http://flx.me/script/bluez-patched-4.54.tar.gz. It holds a custom made tool called build-dep. If you do build-dep buildenv it will install everything needed to create a deb. If you do build-dep create, it will create a deb geared towards your system. You can also manually configure, make and make install ofcourse Smile


- Hexus - 2009-10-14 23:47

dc2447 Wrote:I made sure uinput was loaded, started bluetooth and ran the script to pair

I have tried stopping bluetooth, doublechecking uinput is loaded rerunning bluetoothd but key pressing does nothing

http://pastie.org/639972

Actually, the only thing I didn't do was reboot, will try that

edit2: rebooted, no dice, no action keypress

Dave, did you get thru this?


- dizzey - 2009-10-15 01:36

Ok i have tried bluez-patched-4.54 booth the precompield and then later compiling it myself. And it dosent work for me, the problem i get is from dmesg.

[43349.056745] bluetoothd[28793]: segfault at 656e6547 ip b7e69bcb sp bf96c3e0 error 4 in libglib-2.0.so.0.2000.1[b7e11000+b6000]
[43392.668026] bluetoothd[29068]: segfault at 504648 ip b7f0fbcb sp bf913e20 error 4 in libglib-2.0.so.0.2000.1[b7eb7000+b6000]

I am running ubuntu 9.04 first i thougth that my packages was outdated and did a full system uppgrade and then i tried to reinstall bluz-patched but still the same results.

Then i thougth that mabye my bluetooth dongle was not playing nice so i tried anotherone but still the same reults. Any clues on this one could it be appamor or similiar.

You other guys that cant get this to work please check dmesg and check if bluettothd segfaults for you to.