<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Soli</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Soli"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Soli"/>
	<updated>2026-06-07T10:17:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=122854</id>
		<title>Archive:Set up PS3 BD Remote</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=122854"/>
		<updated>2016-05-15T04:50:03Z</updated>

		<summary type="html">&lt;p&gt;Soli: /* Example input.conf */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This HOW-TO explains how to set up the remote control for the Sony PlayStation 3 to use with XBMC for Linux. You&#039;ll need a Bluetooth dongle and of course the remote control. All these information can be found [http://forum.kodi.tv/showthread.php?t=50717 here] at the forum.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
=== BlueZ ===&lt;br /&gt;
Note: Newer versions of bluez have been released which appear to have this patch already. I didn&#039;t need to patch 4.63 to get BD working on ubuntu 10.04&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note:&#039;&#039; Kitlaan now has patches up to Bluez-4.69, and the patch is required for 4.64 - 4.69&lt;br /&gt;
&lt;br /&gt;
The latest versions of the patch are available at: http://kitlaan.twinaxis.com/projects/bluez-ps3remote/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get purge bluez&lt;br /&gt;
sudo apt-get install libdbus-1-dev libglib2.0-dev python-dbus python-gobject&lt;br /&gt;
cd ~&lt;br /&gt;
wget http://kitlaan.twinaxis.com/projects/bluez-ps3remote/bluez_ps3remote_4.91.diff&lt;br /&gt;
wget http://www.kernel.org/pub/linux/bluetooth/bluez-4.91.tar.gz&lt;br /&gt;
tar xvfz bluez-4.91.tar.gz&lt;br /&gt;
cd bluez-4.91&lt;br /&gt;
patch -p1 &amp;lt; ../bluez_ps3remote_4.91.diff&lt;br /&gt;
./configure &amp;amp;&amp;amp; make&lt;br /&gt;
sudo checkinstall --fstrans=no --install=yes --pkgname=bluez --pkgversion &amp;quot;4.91-patched&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
When starting bluetoothd, check /var/log/syslog to make sure the config files are read. If bluetoothd searches for them at /usr/etc, you&#039;ll have to create symlinks:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ln -s /etc/bluetooth/input.conf /usr/etc/bluetooth/input.conf&lt;br /&gt;
sudo ln -s /etc/bluetooth/audio.conf /usr/etc/bluetooth/audio.conf&lt;br /&gt;
sudo ln -s /etc/bluetooth/serial.conf /usr/etc/bluetooth/serial.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or, using [https://launchpad.net/~kitlaan/+archive/ppa kitlaan&#039;s PPA]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get purge bluez&lt;br /&gt;
sudo add-apt-repository ppa:kitlaan/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install bluez&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Kernel module ===&lt;br /&gt;
Check if the uinput module is running:&lt;br /&gt;
&amp;lt;pre&amp;gt;lsmod | grep uinput&amp;lt;/pre&amp;gt;&lt;br /&gt;
If that&#039;s not the case:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo modprobe uinput&lt;br /&gt;
echo uinput &amp;gt;&amp;gt; /etc/modules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Pairing ===&lt;br /&gt;
Please note that the pairing script requires that the dbus-python and pygobject python modules are installed. They are normally installed on a default 9.04 Jaunty.&lt;br /&gt;
(If you need them added, apt-get install python-dbus and python-gobject.)&lt;br /&gt;
&amp;lt;pre&amp;gt;cd ~&lt;br /&gt;
wget http://kitlaan.twinaxis.com/projects/bluez-ps3remote/ps3pair.tar.gz&lt;br /&gt;
tar xvfz ps3pair.tar.gz&lt;br /&gt;
cd ~/ps3pair&lt;br /&gt;
sudo python ps3_pair.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now press START+Enter on your PS3 remote for at least 7 seconds, then it should detect the remote. Then run&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/share/doc/bluez/examples/list-devices&amp;lt;/pre&amp;gt;&lt;br /&gt;
to verify that the remote is paired (and connected). If list-devices is not installed into /usr/share, check the bluez source tree, it should be in there. Also, running &lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/bus/input/devices | grep emot&amp;lt;/pre&amp;gt;&lt;br /&gt;
should show the remote. If it does not show up, you may not have the uinput module loaded.&lt;br /&gt;
&lt;br /&gt;
Then customize the file &amp;quot;/etc/bluetooth/input.conf&amp;quot; for button mappings and timeout values (Example [http://pastebin.com/m5e951b8b here]). At this point, the remote should connect (and auto-disconnect after a timeout, if configured). The d-pad is probably the best way to test it within xbmc. If you have a terminal active, pressing the number buttons should type the number.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note:&#039;&#039; - The pairing scripts are not required by some distro&#039;s - just install Blueman and set up your BD remote as an input service and trust the device - this way you dont explicitly need to pair the device - it simply becomes a keyboard extension. The input.conf below will take care of key mapping.&lt;br /&gt;
&lt;br /&gt;
=== Example input.conf ===&lt;br /&gt;
&lt;br /&gt;
A more advanced bluetooth input.conf is probably lurking in the depths of [http://forum.kodi.tv/showthread.php?t=50717 this thread], however here&#039;s an example to get you started. The first thing you&#039;ll need to change in this is your BD Remote&#039;s hardware address (i.e. change 00:1E:3D:B6:12:7E to your remote&#039;s address)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# input.conf - kitlaan custom&lt;br /&gt;
# Configuration file for the input service&lt;br /&gt;
&lt;br /&gt;
# This section contains options which are not specific to any&lt;br /&gt;
# particular interface&lt;br /&gt;
[General]&lt;br /&gt;
&lt;br /&gt;
# Set idle timeout (in minutes) before the connection will&lt;br /&gt;
# be disconnect (defaults to 0 for no timeout)&lt;br /&gt;
#IdleTimeout=30 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This section contains options that are specific to a device&lt;br /&gt;
[00:1E:3D:B6:12:7E]&lt;br /&gt;
#&lt;br /&gt;
# Set a custom idle timeout for this device. With kitlaan&#039;s patch, idle timeout is in *seconds* instead of minutes!&lt;br /&gt;
IdleTimeout=90   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This section is the PS3 Remote keymap.  It is loaded when bluez starts.&lt;br /&gt;
# Use &#039;uinput.h&#039; from bluez sources or &#039;/usr/include/linux/input.h&#039; for&lt;br /&gt;
# a list of possible KEY_* values.&lt;br /&gt;
#&lt;br /&gt;
[PS3 Remote Map]&lt;br /&gt;
# When the &#039;OverlayBuiltin&#039; option is TRUE (the default), the keymap uses&lt;br /&gt;
# the built-in keymap as a starting point.  When FALSE, an empty keymap is&lt;br /&gt;
# the starting point.&lt;br /&gt;
#OverlayBuiltin = TRUE&lt;br /&gt;
0x16 = KEY_E              # EJECT&lt;br /&gt;
0x64 = KEY_A              # AUDIO&lt;br /&gt;
0x65 = KEY_Z              # ANGLE&lt;br /&gt;
0x63 = KEY_T              # SUBTITLE&lt;br /&gt;
0x0f = KEY_DELETE         # CLEAR&lt;br /&gt;
0x28 = KEY_GRAVE          # TIMER&lt;br /&gt;
0x00 = KEY_1              # NUM-1&lt;br /&gt;
0x01 = KEY_2              # NUM-2&lt;br /&gt;
0x02 = KEY_3              # NUM-3&lt;br /&gt;
0x03 = KEY_4              # NUM-4&lt;br /&gt;
0x04 = KEY_5              # NUM-5&lt;br /&gt;
0x05 = KEY_6              # NUM-6&lt;br /&gt;
0x06 = KEY_7              # NUM-7&lt;br /&gt;
0x07 = KEY_8              # NUM-8&lt;br /&gt;
0x08 = KEY_9              # NUM-9&lt;br /&gt;
0x09 = KEY_0              # NUM-0&lt;br /&gt;
0x81 = KEY_F7             # RED&lt;br /&gt;
0x82 = KEY_F8             # GREEN&lt;br /&gt;
0x80 = KEY_F9             # BLUE&lt;br /&gt;
0x83 = KEY_F10            # YELLOW&lt;br /&gt;
0x70 = KEY_I              # DISPLAY&lt;br /&gt;
0x1a = KEY_S              # TOP MENU&lt;br /&gt;
0x40 = KEY_M              # POP UP/MENU&lt;br /&gt;
0x0e = KEY_ESC            # RETURN&lt;br /&gt;
0x5c = KEY_C              # TRIANGLE/OPTIONS&lt;br /&gt;
0x5d = KEY_BACKSPACE      # CIRCLE/BACK&lt;br /&gt;
0x5f = KEY_TAB            # SQUARE/VIEW&lt;br /&gt;
0x5e = KEY_SPACE          # CROSS&lt;br /&gt;
0x54 = KEY_UP             # UP&lt;br /&gt;
0x56 = KEY_DOWN           # DOWN&lt;br /&gt;
0x57 = KEY_LEFT           # LEFT&lt;br /&gt;
0x55 = KEY_RIGHT          # RIGHT&lt;br /&gt;
0x0b = KEY_ENTER          # ENTER&lt;br /&gt;
0x5a = KEY_F1             # L1&lt;br /&gt;
0x58 = KEY_F2             # L2&lt;br /&gt;
0x51 = KEY_F3             # L3&lt;br /&gt;
0x5b = KEY_F4             # R1&lt;br /&gt;
0x59 = KEY_F5             # R2&lt;br /&gt;
0x52 = KEY_F6             # R3&lt;br /&gt;
0x43 = KEY_HOMEPAGE       # PS button&lt;br /&gt;
0x50 = KEY_INSERT         # SELECT&lt;br /&gt;
0x53 = KEY_HOME           # START&lt;br /&gt;
0x33 = KEY_R              # SCAN BACK&lt;br /&gt;
0x32 = KEY_PLAY           # PLAY&lt;br /&gt;
0x34 = KEY_F              # SCAN FORWARD&lt;br /&gt;
0x30 = KEY_PAGEUP         # PREVIOUS&lt;br /&gt;
0x38 = KEY_STOP           # STOP&lt;br /&gt;
0x31 = KEY_PAGEDOWN       # NEXT&lt;br /&gt;
0x60 = KEY_COMMA          # SLOW/STEP BACK&lt;br /&gt;
0x39 = KEY_PAUSE          # PAUSE&lt;br /&gt;
0x61 = KEY_DOT            # SLOW/STEP FORWARD&lt;br /&gt;
0xff = KEY_MAX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Pairing ===&lt;br /&gt;
After pairing, running &amp;lt;pre&amp;gt;cat /proc/bus/input/devices | grep emot&amp;lt;/pre&amp;gt; doesn&#039;t list your device, and you&#039;ve got &#039;&#039;uinput&#039;&#039; loaded &amp;lt;pre&amp;gt;lsmod | grep uinput&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install blueman &amp;lt;pre&amp;gt;sudo apt-get install blueman&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Open System-&amp;gt;Preferences-&amp;gt;Bluetooth Manager.&lt;br /&gt;
* If your device is listed (it should be), right click it and select &#039;&#039;Input service&#039;&#039;.&lt;br /&gt;
* Go to a terminal and try pushing some buttons on the remote, it should work.&lt;br /&gt;
&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;/div&gt;</summary>
		<author><name>Soli</name></author>
	</entry>
</feed>