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)



- flxfxp - 2009-10-06 18:42

I just compiled the latest from git and it seems the patches aren't in there. the buttons on the remote do not work more than the usual.


- ruff - 2009-10-06 19:42

Patches are not yet in the upstream, there are no news so far about their destiny, and I presume they are still reviewed. Without the patches remote works, but only media control keys, numbers, eject, menu and return are working (have low scancodes, seen by X and kbd). Also powersaving doesn't work, remote itself times out after half an hour of idle. With such, new batteries are drained for couple of days.

I imported patches to the git using 'git am' import without any issues (just couple of complains about spare or missing newlines). Just copy all files with mail headers to one file, to create mbox-like storage, and then feed it to git am


- flxfxp - 2009-10-06 20:23

ruff, if dc2447 keeps having problems, could you please gunzip the patched source and upload it here?


- ruff - 2009-10-06 23:13

Here is my git snapshot
http://www.mediafire.com/file/atetyzwjmng/bluez.tar.bz2


- flxfxp - 2009-10-07 10:35

Hi ruff,

I just compiled it and both powersaving and the keypatches work, except for a couple of keys:
Scan Forward (backwards works)
Prev/Next
Slowstep Backwards/Forwards
Display (link to information?)
All "playstation" icon buttons surrounding the main navigation control.


- flxfxp - 2009-10-07 10:37

dc2447, if you could make a deb out of it that would be great.
Also please post a small tutorial on how to do it so I don't have to ask for your assistance each time Smile


- ruff - 2009-10-07 12:09

Hi flxfxp,
You mean you've compiled my git or 55rel?
In my git you need to add/uncomment Compat=1 in ps3 remote section of input.conf to enable compatible layout.


- flxfxp - 2009-10-07 12:35

hi ruff,

What's the compatibility mode? Can it still do some of the more advance xbmc functions?
I'm taking the liberty to edit the key config and create a custom keymap.xml to have every function assigned. Or am I reinventing the wheel?


- flxfxp - 2009-10-07 13:42

ruff, how do I assign the following keys:
{}[])(*&^%$#@

for example KEY_} does not work (obviously)

nevermind: I'll use the F-keys.


- flxfxp - 2009-10-07 14:27

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 -y
            apt-get build-dep bluez -y
            wget http://flx.me/script/bluez_patched.tar.gz
            tar -xzvf bluez_patched.tar.gz
            cd bluez_make
            ./configure
            make
            make install
            cd $mypwd
            wget http://flx.me/script/ps3_pair.tar.gz
             tar -xzvf ps3_pair.tar.gz
            rm ps3_pair.tar.gz
            update-rc.d -f bluetooth remove
             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 "  </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 "        <f12>NextSubtitle</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
            echo -e '\E[1;37m\033[1mI have to reboot.\033[0m'
            echo Press a key to reboot
            read -n1 any_key
            reboot