<?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=Slvr32</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=Slvr32"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Slvr32"/>
	<updated>2026-06-19T04:56:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=79661</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=79661"/>
		<updated>2014-10-18T18:45:59Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Undo revision 79660 by Slvr32 (talk) - diregard? possible cache/indexing issue for old title?&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.xbmc.org/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.xbmc.org/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 (in minutes) for this device&lt;br /&gt;
IdleTimeout=1   &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>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=79660</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=79660"/>
		<updated>2014-10-18T18:43:51Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Page title changed, but URL still has Setup vs Set up error&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.xbmc.org/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.xbmc.org/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 (in minutes) for this device&lt;br /&gt;
IdleTimeout=1   &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;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set_up_PS3_BD_Remote|title is now correct as &#039;HOW-TO:Set up PS3 BD Remote&#039;, but URL still shows HOW_TO:Setup_PS3_BD_Remote}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Windows_audio&amp;diff=79656</id>
		<title>Windows audio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Windows_audio&amp;diff=79656"/>
		<updated>2014-10-18T18:26:12Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Setup vs set up, spelling/grammar errors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page describes how to set up audio for the Windows OS. It covers how to set up XBMC when using either Directsound or WASAPI, and when to use one vs the other.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since WASAPI performs no mixing or resampling this is the preferred mode for best quality audio.&lt;br /&gt;
&lt;br /&gt;
From Frodo onwards XBMC uses WASAPI only in the Exclusive Mode of operation in order that XBMC gets the exclusive rights to the audio buffers whilst playing audio streams to the exclusion of all other sounds or players, this is a change from previous version of XBMC where Shared Mode was also allowed. When using WASAPI care must be taken to ensure Windows is configured to allow XBMC to run in exclusive mode, refer to the below &#039;&#039;&#039;Configure Windows Sound Settings&#039;&#039;&#039; section.&lt;br /&gt;
&lt;br /&gt;
In addition XBMC from Frodo onwards uses WASAPI the more modern Event driven mode, previously XBMC used the Push mode, so both the audio hardware &amp;amp; audio driver need to support the Event mode for audio to work with WASAPI selected.&lt;br /&gt;
&lt;br /&gt;
{{Note|Due to the above changes in how XBMC implements WASAPI from Frodo onwards, then previously working configurations may not work when upgrading to XBMC Frodo or later}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Hardware Vendor Specifics=&lt;br /&gt;
== AMD GPU ==&lt;br /&gt;
&lt;br /&gt;
If using WASAPI do not use the Realtek HD Audio drivers as they do not work with the event driven mode XBMC uses for WASAPI. To use WASAPI you must use the AMD High Definition Audio drivers.&lt;br /&gt;
&lt;br /&gt;
The Realtek HD Audio drivers will however work with the Directsound mode.&lt;br /&gt;
== Intel GPU ==&lt;br /&gt;
&lt;br /&gt;
To support HD Audio on Windows the Intel Management Engine Interface driver must be installed, it&#039;s this driver that provides the HDCP DRM necessary for the HD Audio formats to works. If this driver is not installed then the HD formats will be missing from the Supported Formats tab.&lt;br /&gt;
&lt;br /&gt;
In order to verify you have the Intel Management Engine Interface driver installed, follow the relevant step at [http://www.intel.com/support/graphics/sb/CS-031600.htm?wapkw=management+engine+driver Blu-Ray* Disc Playback with Intel® HD Graphics FAQ]&lt;br /&gt;
&lt;br /&gt;
= Check drivers =&lt;br /&gt;
&amp;lt;gallery widths=500px heights=400px&amp;gt;&lt;br /&gt;
File:Computer management.JPG|&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Select &#039;&#039;&#039;Device Manager&#039;&#039;&#039; then go to &#039;&#039;&#039;Sound, video and game controllers&#039;&#039;&#039;. Select the device you&#039;ll be using for audio and right click then select &#039;&#039;&#039;Properties&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
File:Driver.JPG|&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Go to &#039;&#039;&#039;Driver&#039;&#039;&#039; tab and ensure &#039;&#039;&#039;Driver Provider&#039;&#039;&#039; shows the manufacturer of your device. If &#039;&#039;&#039;Microsoft&#039;&#039;&#039; is shown here then you have a driver provided by your Windows installation or Windows Update. In the case of &#039;&#039;&#039;HDMI&#039;&#039;&#039; being used to provide audio, &amp;lt;u&amp;gt;you must ensure the driver is provided by your device manufacturer&amp;lt;/u&amp;gt; as the Microsoft provided ones will usually have reduced functionality such as HD Audio formats not supported.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Windows Sound Settings =&lt;br /&gt;
&lt;br /&gt;
The Windows sound settings will only apply if you select an audio device using the Directsound API within XBMC, if you select an audio device using the WASAPI API then these settings will be ignored however it&#039;s a good to configure these correctly no matter what type of API you&#039;re using.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=400px&amp;gt;&lt;br /&gt;
File:Sound - playback.jpg|&#039;&#039;&#039;Step 3:&#039;&#039;&#039; Set the audio device to be used for {{subst:Name}} audio as the default device, &lt;br /&gt;
File:Speaker setup.jpg|&#039;&#039;&#039;Step 4:&#039;&#039;&#039; Next launch the &#039;&#039;&#039;Configure&#039;&#039;&#039; wizard to set the speaker layout you have. If operating {{subst:Name}} in WASAPI mode this isn&#039;t strictly needed to be correct but it&#039;s good practice to ensure it&#039;s correctly set.&lt;br /&gt;
File:Output Properties - Supported Formats.jpg|&#039;&#039;&#039;Step 5:&#039;&#039;&#039; &amp;lt;big&amp;gt;&#039;&#039;&#039;&amp;lt;u&amp;gt;For HDMI connections only&amp;lt;/u&amp;gt;&#039;&#039;&#039;&amp;lt;/big&amp;gt; Next select &#039;&#039;&#039;Properties&#039;&#039;&#039; and go to the &#039;&#039;&#039;Supported Formats&#039;&#039;&#039; tab. In this tab you&#039;ll see the formats that the audio driver is reporting to Windows that you selected hardware is capable of, if audio codecs are missing from &#039;&#039;&#039;Encoded Formats&#039;&#039;&#039; list then {{subst:Name}} won&#039;t be able to play these formats back. If formats are missing that you know your hardware is capable of then this points to there being either a driver problem or if using HDMI then it maybe a EDID handshaking problem. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#039;&#039;&#039;IMPORTANT -&#039;&#039;&#039; For HD audio to work then &#039;&#039;&#039;Max Number of Channels&#039;&#039;&#039; must be reported as &#039;&#039;&#039;8&#039;&#039;&#039; if anything other than 8 is reported then HD audio will not work even if DTS-HD and TrueHD are listed in the Encoded Formats box.&lt;br /&gt;
File:Output Properties - Advanced.jpg|&#039;&#039;&#039;Step 6:&#039;&#039;&#039; Finally go to the &#039;&#039;&#039;Advanced Tab&#039;&#039;&#039; and ensure the &#039;&#039;&#039;Exclusive Mode&#039;&#039;&#039; check boxes &#039;&#039;&#039;Allow applications to take exclusive control of this device&#039;&#039;&#039; and &#039;&#039;&#039;Give exclusive mode applications priority&#039;&#039;&#039; are ticked. This is a requirement if WASAPI mode is to be used in XBMC. Once this is done you should be good to go in setting up audio on {{subst:Name}} so refer back to [[AudioEngine]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Windows Audio API&#039;s - Background =&lt;br /&gt;
Since Windows Vista SP1 there has two primary audio interfaces, DirectSound and WASAPI (Windows Audio Session Application Programming Interface) with WASAPI being a replacement for Windows XP&#039;s Kernel Streaming mode.&lt;br /&gt;
&lt;br /&gt;
== Directsound ==&lt;br /&gt;
DirectSound acts as a program-friendly middle layer between the program and the audio driver, which in turn speaks to the audio hardware. With DirectSound, Windows controls the sample rate, channel layout and other details of the audio stream via an Audio Mixer. Every program using sound passes it&#039;s data to DirectSound and the Audio Mixer which then resamples as required so it can mix audio streams from any program together with system sounds.&lt;br /&gt;
&lt;br /&gt;
The advantages are that programs don&#039;t need resampling code or other complexities, and any program can play sounds at the same time as others, or the same time as system sounds, because they are all mixed to one format.&lt;br /&gt;
&lt;br /&gt;
The disadvantages are that other programs can play at the same time, and that a program&#039;s output gets mixed to whatever the system&#039;s settings are. This means the program cannot control the sampling rate, channel count, format, etc. Even more important for this thread is that you cannot pass through encoded formats, as DirectSound will not decode them and it would otherwise bit-mangle them, and there is a loss of sonic quality involved in the mixing and resampling.&lt;br /&gt;
&lt;br /&gt;
== WASAPI ==&lt;br /&gt;
Partly to allow for cleaner, uncompromised or encoded audio, and for low-latency requirements like mixing and recording, Microsoft re-vamped their Kernel Streaming mode after XP and came up with WASAPI for Vista.&lt;br /&gt;
&lt;br /&gt;
WASAPI itself has two modes, Shared and Exclusive. &lt;br /&gt;
&lt;br /&gt;
Shared mode is in many ways similar to DirectSound as it allows other sounds to be mixed into the currently playing stream, however this mode is not supported on XBMC so won&#039;t be covered any further here.&lt;br /&gt;
&lt;br /&gt;
WASAPI Exclusive mode bypasses the Audio Mixer and thus the mixing/resampling layers of DirectSound so audio is passed-through as-is, this is why WASAPI should be used for encoded formats like DTS in order that they can reach the receiver unchanged for decoding there. &lt;br /&gt;
&lt;br /&gt;
WASAPI Exclusive mode allows the application to interrogate the capabilities of the audio driver, since audio is presented directly by the application to the audio driver the format that the audio is sent in by the application must be in a format that is compatible with the capabilities of the audio driver, as there is no DirectSound between to convert it. This interrogation is a two way process that often involves some back-and-forth depending on the format specified and the device&#039;s capabilities, once a set of compatible formats is agreed upon by application and audio driver, the application then decides how it will present the audio stream to the audio driver.&lt;br /&gt;
&lt;br /&gt;
In addition to Shared and Exclusive modes, there are two modes for how data is passed from the application to the audio driver.&lt;br /&gt;
&lt;br /&gt;
The normal manner is in push mode - a buffer is created which the audio device draws from, and the application pushes as much data in as it can to keep that buffer full. To do this it must constantly monitor the levels in the buffer, with short &amp;quot;sleeps&amp;quot; in between to allow other threads to run.&lt;br /&gt;
&lt;br /&gt;
WASAPI, and most modern sound devices, also support a &amp;quot;pull&amp;quot; or &amp;quot;event-driven&amp;quot; mode. In this mode two buffers are used. The application gives the audio driver a call-back address or function, fills one buffer and starts playback, then goes off to do other processing. It can forget about the data stream for a while. Whenever one of the two buffers is empty, the audio driver &amp;quot;calls you back&amp;quot;, and gives you the address of the empty buffer. You fill this and go your way again. Between the two buffers there is a ping-pong action: one is in use and draining, the other is full and ready. As soon as the first is emptied the buffers are switched, and you are called upon to fill the empty one. So audio data is being &amp;quot;pulled&amp;quot; from the application by the audio driver, as opposed to &amp;quot;pushed&amp;quot; by the application.&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;br /&gt;
[[Category:Windows]]&lt;br /&gt;
[[Category:Settings]]&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Settings/System&amp;diff=79655</id>
		<title>Settings/System</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Settings/System&amp;diff=79655"/>
		<updated>2014-10-18T18:21:05Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Setup vs set up, grammar/spelling errors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Settings]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;System settings are found here. Set up and calibrate displays/video output, configure audio output, set up remote controls, set power saving options, enable debugging, set up master lock.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
== Video output ==&lt;br /&gt;
{{see also|Settings/Videos|Video playback#OSD video settings}}&lt;br /&gt;
[[File:Settings.system.video output.png|800px|center]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Display Mode&lt;br /&gt;
| Display XBMC in a window, or fullscreen on the selected screen.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Display/Resolution &amp;lt;!-- For some reason it says &amp;quot;Display&amp;quot; on Mac OS X, and &amp;quot;Resolution&amp;quot; on Windows --&amp;gt;&lt;br /&gt;
| Changes the resolution that the User Interface is displayed in.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Use a fullscreen window rather than true fullscreen&lt;br /&gt;
| ...when active (Windows only). Does not use the DirectX fullscreen mode. The main benefit is for multi-screen configurations, where XBMC can be used at the same time as other applications without automatically minimizing. Uses a bit more resources and playback may be slightly less smooth.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Blank other displays&lt;br /&gt;
| In a multi-screen configuration, the screens where XBMC is not displayed are blacked out.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Stereoscopic mode (current)&lt;br /&gt;
| {{main|3D}}&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Preferred mode&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Vertical blank sync&lt;br /&gt;
| Compensation for [[w:vertical tearing|vertical tearing]].&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Video calibration...&lt;br /&gt;
| See [[#Video calibration...]]&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Test patterns...&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Use limited color range (16-235)&lt;br /&gt;
| Use limited color range instead of full color range (0-255). Limited range should be used if your display is a regular HDMI TV, while full color range should be used if your display is a PC monitor.&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Video calibration... ====&lt;br /&gt;
{{Note|Always adjust your TV display settings before XBMC&#039;s settings (such as overscan, etc). In most cases, you can get a &amp;quot;just scan/just fit/PC mode/something&amp;quot; mode turned on that will not require any adjustments in XBMC, and will allow for the best screen quality.}}&lt;br /&gt;
This screen allows you to calibrate the User Interface by adjusting the overscan. Use this tool if the image being displayed is too large or small for your display.&amp;lt;br /&amp;gt;&lt;br /&gt;
Simply adjust the screen so that the arrows are in the top left and bottom right corners and that the entire frame is visible on screen.&lt;br /&gt;
&lt;br /&gt;
It offers the ability to adjust:&lt;br /&gt;
* The overscan of the video -  How close to the edges of the screen that the image is displayed.&lt;br /&gt;
* The position where subtitles are displayed.&lt;br /&gt;
* The pixel ratio allows you calibrate the aspect ratio at which videos are played back.&lt;br /&gt;
&amp;lt;gallery widths=250px heights=141px&amp;gt;&lt;br /&gt;
File:uicalibration1.png|Upper left corner&lt;br /&gt;
File:uicalibration2.png|Lower right corner&lt;br /&gt;
File:uicalibration3.png|Subtitles position&lt;br /&gt;
File:uicalibration4.png|Aspect ratio&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Audio output ==&lt;br /&gt;
{{Main|Audio}}&lt;br /&gt;
{{see also|Settings/Music|Video playback#OSD audio and subtitle settings}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Audio output settings&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Settings - Audio Output.png|800px|center]]&lt;br /&gt;
{{-}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;color: black;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot; colspan=&amp;quot;2&amp;quot;| Setting&lt;br /&gt;
!style=&amp;quot;width:70%&amp;quot; | Description&lt;br /&gt;
!style=&amp;quot;width:8%&amp;quot; | Setting level&lt;br /&gt;
!style=&amp;quot;width:7%&amp;quot; | Device type&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Audio output device&#039;&#039;&#039; &lt;br /&gt;
|Select the device to be used for audio output.&lt;br /&gt;
|Standard&lt;br /&gt;
|All&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|Select the number of channels supported by the audio connection. &lt;br /&gt;
&lt;br /&gt;
;For digital connections&lt;br /&gt;
:This is the number of PCM channels that the audio connection supports and &#039;&#039;&#039;not&#039;&#039;&#039; the number of speakers connected. For example, using Dolby Digital over SPDIF will provide 5.1 audio to your system, even though SPDIF only supports 2.0 PCM channels. This setting does not apply to passthrough audio connections, if enabled.&lt;br /&gt;
&lt;br /&gt;
;For analog connections&lt;br /&gt;
:This is the number of speakers outputs used, which is likely the number of speakers your system is using. Note that some &amp;quot;2.1&amp;quot; systems only use two audio channels and do not have a dedicated subwoofer output.&lt;br /&gt;
&lt;br /&gt;
{{note|This setting might not be exposed depending on what is set for &#039;&#039;&#039;Audio output device&#039;&#039;&#039;.}}&lt;br /&gt;
|Basic&lt;br /&gt;
|HDMI/Analog-Speakers&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;Output configuration&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Fixed&#039;&#039;&#039;&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|Select how the properties of the audio output are set:&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;[Fixed] -&#039;&#039;&#039; output properties are set to the specified sampling rate &amp;amp; speaker configuration at all times&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;[Optimized] -&#039;&#039;&#039; output properties are set at the start of playback and will not change if the properties of the source changes&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;[Best Match] -&#039;&#039;&#039; output properties are set to always be as close a match to the source properties as possible&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|Advanced&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|All&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Optimized&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Best Match&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Limit sampling rate (kHz)&#039;&#039;&#039;&lt;br /&gt;
|Maximum sampling rate for spdif or sampling rate for fixed output configuration&lt;br /&gt;
|Advanced&lt;br /&gt;
|SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Stereo upmix&#039;&#039;&#039;&lt;br /&gt;
|Select to enable upmixing of 2 channel audio to the number of audio channels specified by the channel configuration&lt;br /&gt;
|Advanced&lt;br /&gt;
|All&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Normalize levels on downmix&#039;&#039;&#039;&lt;br /&gt;
|Select how audio is downmixed, for example from 5.1 to 2.0:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;[Enabled]&#039;&#039;&#039; maintains the dynamic range of the original audio source when downmixed however volume will be lower&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;[Disabled]&#039;&#039;&#039; maintains volume level of the original audio source however the dynamic range is compressed. Note - Dynamic range is the difference between the quietest and loudest sounds in a audio source&lt;br /&gt;
|Advanced&lt;br /&gt;
|All&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|&#039;&#039;&#039;Resample quality&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Low&#039;&#039;&#039;&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|Select the quality of resampling for cases where the audio output needs to be at a different sampling rate from that used by the source&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;[Low]&#039;&#039;&#039; is fast and will have minimal impact on system resources such as the use of the CPU&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;[Medium] &amp;amp; [High]&#039;&#039;&#039; will use progressively more system resources&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|Advanced&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|All&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Medium&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;High&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Keep audio device alive&#039;&#039;&#039;&lt;br /&gt;
|Select the behaviour when no sound is required for either playback or GUI sounds:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;[Always] -&#039;&#039;&#039; continuous inaudible signal is output, this keeps the receiving audio device alive for any new sounds, however this might also block sound from other applications&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;[1- 10 Minutes] -&#039;&#039;&#039; same as Always except that after the selected period of time audio enters a suspended state&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;[Off] -&#039;&#039;&#039; audio output enters a suspended state. Note - sounds can be missed if audio enters suspended state&lt;br /&gt;
|Standard&lt;br /&gt;
|All&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Play GUI sounds&#039;&#039;&#039;&lt;br /&gt;
|Configure how interface sounds are handled, such as menu navigation and important notifications&lt;br /&gt;
|Basic&lt;br /&gt;
|All&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Enable passthrough&#039;&#039;&#039;&lt;br /&gt;
|Select to enable the passthrough audio options for playback of encoded audio such as Dolby Digital&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI/SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|Select the device to be used for playback of encoded formats, these are any of the formats below in the &#039;capable receiver&#039; options&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI/SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|Select this option if your receiver is capable of decoding AC3 streams&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI/SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;- Enable Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|Select this if the audio out connection only supports multichannel audio as Dolby Digital 5.1, such as an SPDIF connection.  If your system supports LPCM multichannel sound via HDMI then leave this disabled. This option is only available where the number of channels is 2.0, for SPDIF this is set automatically so this option is always available, if using HDMI then you may need to change the Number of Channels setting to 2.0.&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI/SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;Dolby Digital Plus (E-AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|Select this option if your receiver is capable of decoding E-AC3 streams&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|Select this option if your receiver is capable of decoding DTS streams&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI/SPDIF&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|Select this option if your receiver is capable of decoding TrueHD streams&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|Select this option if your receiver is capable of decoding DTS-HD streams&lt;br /&gt;
|Advanced&lt;br /&gt;
|HDMI&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;IMPORTANT NOTE:&#039;&#039;&#039;|&lt;br /&gt;
The &amp;quot;&#039;&#039;&#039;capable receiver&#039;&#039;&#039;&amp;quot; options relate only to the &#039;&#039;&#039;passthrough&#039;&#039;&#039; of audio to another device such as an AVR, where that device must support decoding of the format. Before leaving any &amp;quot;&#039;&#039;&#039;capable receiver&#039;&#039;&#039;&amp;quot; option enabled check to make sure that both the playback device running XBMC (e.g. HTPC) and the connected device (e.g. AVR) both support that format.&lt;br /&gt;
&lt;br /&gt;
If you have a &amp;quot;&#039;&#039;&#039;capable receiver&#039;&#039;&#039;&amp;quot; option enabled that your device does not support then this will result in poor playback of video typically with a very low frames-per-second and no audio, so for example if the &#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039; option were enabled then make sure that the playback device can passthrough TrueHD and that the connected device can decode TrueHD, if either of the devices do not support TrueHD then the &#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039; option &#039;&#039;&#039;MUST&#039;&#039;&#039; be left disabled.&lt;br /&gt;
&lt;br /&gt;
For any format where the &amp;quot;capable receiver&amp;quot; option is not selected, XBMC will still playback any content containing those audio types, however instead of the audio being passed through, XBMC will decode audio and then send the audio in a compatible format. &lt;br /&gt;
&lt;br /&gt;
If connected directly to a TV be aware that TV are not compatible with DTS, TrueHD or DTS-HD, typically the only encoded format a TV will be compatible with is AC3.}}&lt;br /&gt;
&amp;lt;section end=&amp;quot;Audio output settings&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Input devices ==&lt;br /&gt;
{{note|The content of this screen largely depends on the input devices that XBMC detects and the OS being used.}}&lt;br /&gt;
[[File:Settings.system.input devices.png|800px|center]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Peripherals&lt;br /&gt;
| See &#039;&#039;&#039;[[#Peripherals]]&#039;&#039;&#039;.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Apple remote &#039;&#039;(OS X only)&#039;&#039;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Allow start of XBMC using the remote &#039;&#039;(OS X only)&#039;&#039;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Sequence delay time&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Remote control sends keyboard presses&lt;br /&gt;
| When activated, your keyboard arrows will move the selection on the virtual keyboard. When deactivated, they will move the cursor from your text.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Enable mouse and touch screen support&lt;br /&gt;
| {{see also|Touch screen}}&lt;br /&gt;
If deactivated, XBMC will ignore all mouse movements and clicks.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Enable joystick and gamepad support&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Enable system keys in fullscreen &#039;&#039;(Linux only)&#039;&#039;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Peripherals ===&lt;br /&gt;
&lt;br /&gt;
== Internet access ==&lt;br /&gt;
[[File:Settings.network.internet access.png|center|800px]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Use an HTTP proxy server to access the internet&lt;br /&gt;
| If your internet connection uses a proxy, configure it here.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Proxy type&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
:-Server&lt;br /&gt;
| Proxy server address.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Port&lt;br /&gt;
| Defines the port of the proxy server&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Username&lt;br /&gt;
| Defines the username used for the proxy server&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Password&lt;br /&gt;
| Defines the password used for the proxy server&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Internet connection bandwidth limitation&lt;br /&gt;
| If you have limited bandwidth available, select a suitable value here and XBMC will try to keep to these limits. {{?}}&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Power saving ==&lt;br /&gt;
{{see also|Settings/Appearance#Screensaver}}&lt;br /&gt;
{{note|Some options might not be available on all hardware or OSes. For example, XBMC cannot control shutdown or sleep on [[Android]].}}&lt;br /&gt;
[[File:Settings.system.power saving.png|800px|center]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Put display to sleep when idle&lt;br /&gt;
| Turns off display when idle. Useful for TVs that turn off when there is no display signal detected, but you don&#039;t want to suspend/shutdown the whole computer. Selectable from 5 minutes to 120 minutes.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Shutdown function timer&lt;br /&gt;
| Sleeps the computer when idle. Selectable from 5 minutes to 120 minutes.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Shutdown function&lt;br /&gt;
| Defines what &amp;quot;Shutdown&amp;quot; will do by default. Can be set to actually shutdown, suspend, minimize, or quit.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Try to wake remote servers on access&lt;br /&gt;
| {{Main|Wake on lan}}&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|XBMC also has a &amp;quot;Custom shutdown timer&amp;quot; selectable from the power icon on the home screen, or from the shutdown menu (press {{keypress|S}} on a keyboard or {{button|Power}} on a remote).}}&lt;br /&gt;
&lt;br /&gt;
== Debugging ==&lt;br /&gt;
{{main|Log file}}&lt;br /&gt;
[[File:Settings.system.debugging.png|800px|center]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Enable debug logging&lt;br /&gt;
| Toggles [[debug log]] on / off. Useful for troubleshooting.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Verbose logging&lt;br /&gt;
| {{main|Log file/Advanced}}&lt;br /&gt;
See &#039;&#039;&#039;[[#Verbose logging]]&#039;&#039;&#039;&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Screenshot folder&lt;br /&gt;
| Folder used to save screenshots taken within XBMC. (see [[Keyboard controls]] for the screenshot key for your OS)&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Verbose logging ===&lt;br /&gt;
{{main|Log file/Advanced}}&lt;br /&gt;
[[File:Verbose logging options.png|right|400px]]&lt;br /&gt;
&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Master lock ==&lt;br /&gt;
{{see also|Profiles}}&lt;br /&gt;
{{note|&#039;&#039;The Master lock options are ONLY available while using the default user [[profile]].&#039;&#039;}}&lt;br /&gt;
[[File:Settings.system.master lock.png|800px|center]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
! Setting level&lt;br /&gt;
|-&lt;br /&gt;
| Master lock code and settings&lt;br /&gt;
| Opens the [[#Master lock settings|Master lock settings window]], where you can configure your Master Lock options. See &#039;&#039;&#039;[[#Master lock settings]]&#039;&#039;&#039;.&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
:-Ask for master lock code on startup&lt;br /&gt;
| If enabled, the master lock code is required to unlock XBMC on startup&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Master lock settings ===&lt;br /&gt;
[[File:Lock settings.png|center|600px]]&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
! width=&amp;quot;20%&amp;quot; | Setting&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Master Lock&lt;br /&gt;
| Allows you to set the master lock password. Can be one of three types:&lt;br /&gt;
* &#039;&#039;&#039;Numeric password&#039;&#039;&#039; - Enter a Numeric Password using the On Screen Keyboard&lt;br /&gt;
* &#039;&#039;&#039;Gamepad button combo&#039;&#039;&#039; - Enter a series of buttons using the Gamepad&lt;br /&gt;
* &#039;&#039;&#039;Full-text password&#039;&#039;&#039; - Enter a plain-text password using the On Screen Keyboard&lt;br /&gt;
|-&lt;br /&gt;
| Lock music window&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock video window&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock pictures window&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock programs and scripts windows&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock file manager&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock settings&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Lock Add-on manager&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Locking media sources ===&lt;br /&gt;
{{main|Media sources#Locking}}&lt;br /&gt;
{{#lst:Media sources|Locking}}&lt;br /&gt;
&lt;br /&gt;
===Locked out?===&lt;br /&gt;
XBMC will give you three tries when you need to enter a lock/password to access something that is locked. If you max out these three tries then just quit XBMC and re-open it to get three more tries. The Master Lock code is stored in the &amp;quot;&#039;&#039;&#039;profiles.xml&#039;&#039;&#039;&amp;quot; file in the [[userdata]] folder. Should you get locked out, you can delete or edit the &amp;quot;&#039;&#039;&#039;profiles.xml&#039;&#039;&#039;&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
=== additional settings ===&lt;br /&gt;
{{editor note|This was in [[advancedsettings.xml]], but it appears to be documenting something in guisettings.xml that don&#039;t actually have a GUI setting.}}&lt;br /&gt;
Code needs to be MD5&#039;d, and you can use [http://pajhome.org.uk/crypt/md5/ this site] to hash it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;masterlock&amp;gt;       &lt;br /&gt;
   &amp;lt;startuplock&amp;gt;false&amp;lt;/startuplock&amp;gt;  &amp;lt;!-- true prompts user for code upon startup --&amp;gt;&lt;br /&gt;
   &amp;lt;automastermode&amp;gt;false&amp;lt;/automastermode&amp;gt;  &amp;lt;!-- automatically enters master mode if the master code is given --&amp;gt;&lt;br /&gt;
   &amp;lt;loginlock&amp;gt;true&amp;lt;/loginlock&amp;gt;  &amp;lt;!-- whether to use locks on login screen or not --&amp;gt;&lt;br /&gt;
   &amp;lt;!-- advancedsettings.xml ONLY: --&amp;gt;&lt;br /&gt;
   &amp;lt;maxretries&amp;gt;3&amp;lt;maxretries&amp;gt; &amp;lt;!-- enter the max number of retries to input code, 3 is default. --&amp;gt;&lt;br /&gt;
&amp;lt;/masterlock&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:XBMC Manual]]&lt;br /&gt;
[[Category:Settings]]&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MythTV_PVR&amp;diff=79654</id>
		<title>MythTV PVR</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MythTV_PVR&amp;diff=79654"/>
		<updated>2014-10-18T18:19:12Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Setup vs set up grammar/spelling errors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:PVR/Contents}}&lt;br /&gt;
{{mininav|[[PVR]]|[[Recording software]]}}&lt;br /&gt;
MythTV is a Free Open Source software digital video recorder (DVR) project that is designed to run on Linux, although other operating system packages are available. With MythTV you can watch live TV, schedule recordings, view episode guide information, and many other features you&#039;d expect from a DVR type device. MythTV can also be set up with multiple backends (master/slave) and multiple frontends to spread out the workload of recording, scheduling, and post processing jobs. More information on MythTV can be found on their [http://www.mythtv.org/ official] website. &lt;br /&gt;
&lt;br /&gt;
The released addon supports MythTV Backend version 0.24 - 0.27.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Installing MythTV ==&lt;br /&gt;
MythTV can be set up on a variety of Linux distributions and also on Mac OS X. The [http://www.mythtv.org/wiki/Packages MythTV Wiki] page has several pages of detailed instruction sets for various distros and tuner types.&lt;br /&gt;
&lt;br /&gt;
== MythTV quick start guide ==&lt;br /&gt;
{{incomplete}}&lt;br /&gt;
If your tuner hardware is not detected or is having issues, check http://linuxtv.org for driver support.&lt;br /&gt;
&lt;br /&gt;
== Connecting XBMC to MythTV ==&lt;br /&gt;
{{PVR repo notice}}&lt;br /&gt;
# Go to {{highlight|Settings -&amp;gt; Add-ons -&amp;gt; Enabled add-ons -&amp;gt; PVR Clients}} and select the MythTV add-on&lt;br /&gt;
# Select &amp;quot;Configure&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
=== General ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Settings&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Xbmc-settings-mythtv-general.png|500px|right]]&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
; MythTV Backend Hostname or IP&lt;br /&gt;
: The hostname or IP address of the server where MythTV / MythBackend is installed. If backend and frontend run on the same machine then &#039;localhost&#039; can be used. &lt;br /&gt;
; MythTV Backend Port&lt;br /&gt;
: The default is 6543 but this will need updating if you have changed it in the MythTV settings.&lt;br /&gt;
; MythTV Database Username&lt;br /&gt;
: The default is &#039;mythtv&#039; but this will need updating if you have changed it for the MythTV database.&lt;br /&gt;
; MythTV Database Password&lt;br /&gt;
: The default is &#039;mythtv&#039; but this will need updating if you have changed it for the MythTV database.&lt;br /&gt;
; MythTV Database Databasename&lt;br /&gt;
: The default is &#039;mythconverg&#039; but this will need updating if you have changed it in the MythTV settings.&lt;br /&gt;
; MythTV Backend Ethernet address (WOL) [GOTHAM]&lt;br /&gt;
: Add the MAC address of your backend to allow the addon to wake up the backend using WOL. &lt;br /&gt;
; Include more debug information in the log file&lt;br /&gt;
: If turned on, additional debugging information is written to the log file. This should be turned on if you want to debug or report problems. It should be off for normal usage.&lt;br /&gt;
; Enable Live TV&lt;br /&gt;
: This enables Live TV. Switch it off if you do want to use MythTV only for watching recordings.&lt;br /&gt;
; Allow Live TV to move scheduled shows&lt;br /&gt;
: This allows MythBackend to move scheduled recordings to another tuner if the scheduled tuner is blocked by an active Live TV playback. If turned off, you might miss recordings!&lt;br /&gt;
; Conflict handling&lt;br /&gt;
: This allows to configure the Live TV vs. scheduled recoding conflict handling. The setting determines how the addon should handle upcoming recordings for a tuner, that is being used for Live TV at the moment.&lt;br /&gt;
: &#039;&#039;&#039;- Prefer Live TV when recording has later slot:&#039;&#039;&#039; (default) Continue watching Live TV in case there is a known later slot for the recording. Reschedule to record this repeat instead. If there&#039;s no later slot, stop Live TV and start the recording now.&lt;br /&gt;
: &#039;&#039;&#039;- Prefer recording and stop Live TV:&#039;&#039;&#039; Stop Live TV and start the scheduled recording.&lt;br /&gt;
: &#039;&#039;&#039;- Prefer Live TV and cancel conflicting recording:&#039;&#039;&#039; Ignore the conflicting, upcoming recording and continue to watch Live TV instead.&lt;br /&gt;
|}&lt;br /&gt;
{{-}}&lt;br /&gt;
In addition the addon supports advanced settings, that can be edited in the addon&#039;s settings file: &amp;lt;code&amp;gt;[[userdata]]/addon_data/pvr.mythtv.cmyth/settings.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
; MythTV Database Hostname or IP&lt;br /&gt;
: The default is your MythTV Backend Hostname but this will need updating if your database server runs on a different host.&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;setting id=&amp;quot;db_host&amp;quot; value=&amp;quot;192.168.0.1&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
; MythTV Database Port&lt;br /&gt;
: The default is 3306 but this will need updating if you have changed it.&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;setting id=&amp;quot;db_port&amp;quot; value=&amp;quot;3306&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;section end=&amp;quot;Settings&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Recording template ===&lt;br /&gt;
Configuration of the default rules for new recordings. Recording rule templates have been introduced in MythTV 0.26.&lt;br /&gt;
For older MythTV versions, please use and configure the addon-&#039;&#039;&#039;Internal&#039;&#039;&#039; template provider.&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Settings&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:Xbmc-settings-mythtv-template.png|500px|right]]&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
; Template provider&lt;br /&gt;
: &#039;&#039;&#039;- MythTV:&#039;&#039;&#039; Use MythTV&#039;s default recording rule template&lt;br /&gt;
: &#039;&#039;&#039;- Internal:&#039;&#039;&#039; Use XBMC&#039;s respectively the addon&#039;s settings&lt;br /&gt;
; Automatically Look Up Metadata&lt;br /&gt;
: Advises the MythTV backend to download metadata for this recording.&lt;br /&gt;
; Commercial Flag new recordings&lt;br /&gt;
: Advises the MythTV backend to run the commercial flag job for this recording.&lt;br /&gt;
; Allow recordings to expire?&lt;br /&gt;
: Allows the MythTV backend to automatically delete the recording when necessary.&lt;br /&gt;
; Transcode new recordings and Transcoder&lt;br /&gt;
: Advises the MythTV backend to automatically transcode the recording into a different format.&lt;br /&gt;
; Run user Job #1-4&lt;br /&gt;
: Advises the MythTV backend to automatically run the user defined jobs for this recording.&lt;br /&gt;
;Note&lt;br /&gt;
: &#039;&#039;&#039;Start&#039;&#039;&#039; and &#039;&#039;&#039;End Offset&#039;&#039;&#039; is configured in [[PVR/XBMC#Recording|XBMC Live TV settings]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Advanced ===&lt;br /&gt;
{|&lt;br /&gt;
|&lt;br /&gt;
; Enable demuxing of MPEG-TS&lt;br /&gt;
: Enables the addon internal demuxing of the stream. Advantages are faster channel switching and better timeshift functionality.&lt;br /&gt;
: &#039;&#039;&#039;Note:&#039;&#039;&#039; This might not work with all video formats. Disable this settings in case you experience playback problems.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section end=&amp;quot;Settings&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Next|[[PVR/XBMC|Configuring XBMC]]}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
# If you&#039;re experiencing troubles with the addon, [http://forum.xbmc.org/forumdisplay.php?fid=170 MythTV section of XBMC Forum] is the correct place to ask for help.&lt;br /&gt;
# Always include a &#039;&#039;&#039;full [http://wiki.xbmc.org/index.php?title=Debug_log debug log]&#039;&#039;&#039; with the addon setting &#039;&#039;&#039;Include more debug information in the log file&#039;&#039;&#039; enabled. (also please make yourself familiar with [http://wiki.xbmc.org/index.php?title=Troubleshooting XBMC troubleshooting])&lt;br /&gt;
# Issues that are only related to this addon (not to XBMC itself or XBMC&#039;s general PVR code) should be reported here: https://github.com/fetzerch/xbmc-pvr-addons/issues (if unsure, ask in the forum first!)&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
* See [[PVR/Backend/MythTV/BuildFromSource|Build addon from source]] to learn how to build addon from the official or from the development repository&lt;br /&gt;
* This addon uses the Transifex Localization platform. You&#039;re welcome to contribute translations: https://www.transifex.com/projects/p/XBMC-Main-Frodo/resource/pvr-mythtv-cmyth/&lt;br /&gt;
&lt;br /&gt;
== Additional guides and links ==&lt;br /&gt;
* MythTV website - http://mythtv.org&lt;br /&gt;
** [http://www.mythtv.org/wiki/ Documentation]&lt;br /&gt;
* MythTV backend for XBMC support forum - http://forum.xbmc.org/forumdisplay.php?fid=170&lt;br /&gt;
* Addon&#039;s issue tracker: https://github.com/fetzerch/xbmc-pvr-addons/issues&lt;br /&gt;
* MythTV genre colours in XBMC EPG: [[PVR/Backend/MythTV/DVB-EIT-categories]]&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=79557</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=79557"/>
		<updated>2014-10-13T17:43:37Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Installing]] {{l2| [[Linux]] }} }}&lt;br /&gt;
{{see also|Linux FAQ}}&lt;br /&gt;
&lt;br /&gt;
These are instructions for people who already have a Linux-based OS setup. If you have not installed a Linux-based OS yet, you might wish to try out [[XBMCbuntu]] which will install both the OS and XBMC with an easy installer.&lt;br /&gt;
&lt;br /&gt;
=Official Team Kodi/XBMC repositories=&lt;br /&gt;
&lt;br /&gt;
==Ubuntu==&lt;br /&gt;
;Simple Install Instructions&lt;br /&gt;
&lt;br /&gt;
{{note|1=[http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]}}&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install python-software-properties pkg-config&lt;br /&gt;
sudo apt-get install software-properties-common&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{#lst:Team XBMC PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update XBMC/Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SSH]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===XBMCbuntu===&lt;br /&gt;
{{main|XBMCbuntu}}&lt;br /&gt;
{{#lst:XBMCbuntu|intro}}&lt;br /&gt;
&lt;br /&gt;
===Installing a development build===&lt;br /&gt;
{{see also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of XBMC you must first add the unstable repository, then install XBMC:&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the prompts to add the repository, then to add the updates, and finally install the new version of XBMC.&lt;br /&gt;
&lt;br /&gt;
=== Going back to a stable version from a development version ===&lt;br /&gt;
To return to a stable release:&lt;br /&gt;
&lt;br /&gt;
Find the current PPA you are using:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-cache policy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA where it says &#039;&#039;&#039;PPAHERE&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -r ppa:PPAHERE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove xbmc&lt;br /&gt;
sudo apt-get install xbmc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove xbmc*&lt;br /&gt;
sudo apt-get purge xbmc*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
rm ~/.xbmc/&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Other repositories =&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unofficial Linux binaries that are un/semi supported by Team XBMC. These use internal ffmpeg libraries rather than system ffmpeg or libav, which is recommended for XBMC.&lt;br /&gt;
&lt;br /&gt;
== Debian ==&lt;br /&gt;
http://people.debian.org/~rbalint/ppa/xbmc-ffmpeg/&lt;br /&gt;
&lt;br /&gt;
== OpenELEC ==&lt;br /&gt;
{{main|OpenELEC}}&lt;br /&gt;
{{#lst:OpenELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
= Installation from source =&lt;br /&gt;
&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. While compiling from source does not differ very much between distributions (except for installation of build dependencies), a few different guides are available in this wiki.&lt;br /&gt;
&lt;br /&gt;
*[[HOW-TO compile XBMC for Linux from source code]]&lt;br /&gt;
*[[HOW-TO compile XBMC for Linux on Debian/Ubuntu]] - This is a tutorial on how to compile and install XBMC on Debian and Ubuntu.&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
*[[Linux]]&lt;br /&gt;
*[[HOW-TO:Autostart XBMC for Linux]]&lt;br /&gt;
&lt;br /&gt;
{{gotham updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;br /&gt;
[[Category:XBMC Manual]]&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=79556</id>
		<title>MySQL/Setting up Kodi</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_Kodi&amp;diff=79556"/>
		<updated>2014-10-13T17:42:09Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar errors, setup vs set up.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
Each device that will be sharing a library will need an [[Advancedsettings.xml|advancedsetting.xml]] file.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
==Make files accessible over the network==&lt;br /&gt;
If you haven&#039;t already done so, you will need to make your media files accessible to all your XBMC devices by sharing them on the network through file sharing. XBMC itself or the MySQL server will not share the actual files for this setup. Most operating systems have built-in methods for sharing files to the network, or a [[NAS]] device can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{note|&lt;br /&gt;
*If you use passwords on your network shares then you will need to copy (or [[MySQL/Sync other parts of XBMC|sync]]) your passwords.xml file from the userdata folder to each XBMC device.&lt;br /&gt;
*Do not use mapped drives on the OS-level, as XBMC will see those as local drives.&lt;br /&gt;
*If you use smb:// paths, you may want to use static IP addresses rather than NetBIOS names, as not all your devices may be able to resolve the latter.&lt;br /&gt;
*&#039;&#039;&#039;Even if the media is on the same computer as one of the XBMC instances, you MUST use a network share path. You cannot use a local file path with MySQL.&#039;&#039;&#039;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
See [[:Category:File Sharing]] for some of the file sharing methods that work with XBMC.&lt;br /&gt;
&lt;br /&gt;
==Exporting==&lt;br /&gt;
{{see also|HOW-TO:Backup the video library|Import-export library}}&lt;br /&gt;
&lt;br /&gt;
{{note|You only need to do the exporting steps if you are migrating an existing local library to a MySQL database. The MySQL setup creates an entirely new library on the MySQL server, so this step allows you to preserve your old library and restore it once MySQL is used in XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Warning:&#039;&#039;&#039; |This will create individual &amp;quot;.nfo&amp;quot; and image files along side your video files. This is considered the safest way to backup and/or migrate a library (MySQL or otherwise), but some users might not want the file clutter. For an alternative method see &#039;&#039;&#039;[[why multiple files|here]]&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
#Open XBMC on the computer that has the library you want to share&lt;br /&gt;
##Export the Video Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Video -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
##Export the Music Library by doing the following:&lt;br /&gt;
###Go to &#039;&#039;&#039;System/Settings -&amp;gt; Music -&amp;gt; Library&#039;&#039;&#039; and select &#039;&#039;&#039;Export library&#039;&#039;&#039;&lt;br /&gt;
###Select &#039;&#039;&#039;Multiple files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==MySQL and advancedsettings.xml==&lt;br /&gt;
{| class=infobox&lt;br /&gt;
| advancedsettings.xml:&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;XML&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
  &amp;lt;videodatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/videodatabase&amp;gt; &lt;br /&gt;
  &amp;lt;musicdatabase&amp;gt;&lt;br /&gt;
    &amp;lt;type&amp;gt;mysql&amp;lt;/type&amp;gt;&lt;br /&gt;
    &amp;lt;host&amp;gt;***.***.***.***&amp;lt;/host&amp;gt;&lt;br /&gt;
    &amp;lt;port&amp;gt;3306&amp;lt;/port&amp;gt;&lt;br /&gt;
    &amp;lt;user&amp;gt;xbmc&amp;lt;/user&amp;gt;&lt;br /&gt;
    &amp;lt;pass&amp;gt;xbmc&amp;lt;/pass&amp;gt;&lt;br /&gt;
  &amp;lt;/musicdatabase&amp;gt;&lt;br /&gt;
  &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
    &amp;lt;importwatchedstate&amp;gt;true&amp;lt;/importwatchedstate&amp;gt;&lt;br /&gt;
    &amp;lt;importresumepoint&amp;gt;true&amp;lt;/importresumepoint&amp;gt;&lt;br /&gt;
  &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
&amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;&#039;&#039;See also this note about using the &amp;lt;name&amp;gt; tag: [[#Name tag]]&amp;lt;br/&amp;gt;&amp;lt;importwatchedstate&amp;gt; is only needed when you&#039;re importing a previous library from exported files.&amp;lt;/small&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
#Create (or add to, if you already have one) an [[Advancedsettings.xml#.3Cmusicdatabase.3E.2F.3Cvideodatabase.3E|advancedsettings.xml]] file:&lt;br /&gt;
##Open up a plain text editor&lt;br /&gt;
##Copy and paste the text from the right-hand box into a new text document&lt;br /&gt;
##Replace the two instances of &amp;lt;code&amp;gt;***.***.***.***&amp;lt;/code&amp;gt; with local network IP address of your MySQL server. If you installed MySQL on a Windows machine, do not use its NetBIOS name, as not all devices may be able to resolve them.&lt;br /&gt;
##Save the file as &#039;&#039;&#039;advancedsettings.xml&#039;&#039;&#039;&lt;br /&gt;
#Copy this &#039;&#039;advancedsettings.xml&#039;&#039; file you just created to the &#039;&#039;&#039;[[userdata folder]]&#039;&#039;&#039; of every XBMC install you want to sync with.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
==Importing==&lt;br /&gt;
At this point XBMC is using the MySQL server for the database, which means it has a new blank library. Now we can either import an old library (see below) or simply start a new library (see [[adding videos to the library]]. From this point on, XBMC behaves exactly like it would as if it had a local database, except that database is on the MySQL server and multiple XBMC installs can access that single database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Open any of your XBMC installs and re-import your library data, &#039;&#039;or&#039;&#039; simply set up a new library if you are starting fresh.&lt;br /&gt;
# Add (or just &amp;quot;set content&amp;quot; on) the networked video source to XBMC and scan it in as if you were setting up your library for the first time (see [[adding videos to the library]]). However, XBMC will read the exported nfo files and images and use those instead of rebuilding the library from scratch. The end result will be an identical library, and your watched status for videos will be preserved.&lt;br /&gt;
#:{{Note|You must add a network source using XBMC&#039;s standard formatting. For example, use &amp;quot;smb://192.168.1.20/Videos/&amp;quot; and not &amp;quot;\\BOBPC\Videos\&amp;quot;.  Try to use static IP addresses over NetBIOS names if using SMB.}}&lt;br /&gt;
# Import the Music Library by doing the following: Same idea as videos, but using the steps for [[adding music to the library]]. You&#039;ll end up with an identical library.&lt;br /&gt;
You can now add files and update the library from any of your XBMC devices and the library for all of them will stay in sync.&lt;br /&gt;
&lt;br /&gt;
== Adding new XBMC devices to the MySQL setup ==&lt;br /&gt;
Since the database has now been set up on the MySQL server, all you need to do for any additional XBMC devices is add the advancedsettings.xml file. You don&#039;t need to do any of the other steps, such as rescanning or reimporting. If it works on one XBMC device then it should work on all of them, as they are basically sharing the same &amp;quot;brain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Name tag==&lt;br /&gt;
&amp;lt;section begin=&amp;quot;name tag&amp;quot; /&amp;gt;&lt;br /&gt;
An additional &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag can be used for both the &amp;lt;code&amp;gt;&amp;lt;videodatabase&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;musicdatabase&amp;gt;&amp;lt;/code&amp;gt; entries in advancedsettings.xml file, if you want to change the name of the database. The &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not required. XBMC will use &amp;quot;MyVideos&amp;quot; and &amp;quot;MyMusic&amp;quot; as database names if the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag is not specified. &lt;br /&gt;
&lt;br /&gt;
You may want to do this if you want to have multiple separate libraries (with different content) on the same MySQL server. For example, if you want to create multiple profiles, each with their own shared library, so that each XBMC device can &amp;quot;log-into&amp;quot; that library. (a kids library, a guest library, etc)&lt;br /&gt;
&lt;br /&gt;
{{note|Don&#039;t try to merge the video and music databases! You need to use different values in the &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; tag or you&#039;ll end up confusing XBMC leading to the library functionality not working at all. In other words, don&#039;t use &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; for both music and videos, but instead use something like &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-music&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;XBMC-video&amp;lt;/name&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:MythTV&amp;diff=79555</id>
		<title>Archive:MythTV</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:MythTV&amp;diff=79555"/>
		<updated>2014-10-13T17:40:31Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar errors, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{outdated|raw=This is old. It might still work, but you can just use [[PVR]] or [[Add-on:MythBox]], which are much easier options.}}&lt;br /&gt;
&lt;br /&gt;
== What is MythTV? ==&lt;br /&gt;
&lt;br /&gt;
[http://www.mythtv.org/detail/mythtv MythTV] is a [http://en.wikipedia.org/wiki/Digital_video_recorder digital video recorder] for watching and recording television. MythTV also contains plugins for viewing other home media, similar to what XBMC Media Center provides. MythTV is like a free open source alternative to Tivo and Windows Media Center.&lt;br /&gt;
&lt;br /&gt;
Some of MythTV&#039;s features include:&lt;br /&gt;
* Watch and record analog and/or digital TV, including HDTV.&lt;br /&gt;
* Pause, skip, and rewind live TV shows.&lt;br /&gt;
* Completely automatic commercial detection/skipping, with manual correction via an intuitive cutlist editor.&lt;br /&gt;
* Intelligently schedules recordings to avoid conflicts.&lt;br /&gt;
* Parental controls to keep your kids out of the good shows.&lt;br /&gt;
* Schedule and administer many functions remotely via a web browser.&lt;br /&gt;
* Flexible client/server architecture allows multiple frontend client machines to access content served by one or more backend servers (although the most common installation consists of a single computer running both the client and server together).&lt;br /&gt;
&lt;br /&gt;
This wiki page doesn&#039;t contain any information about how to install, set up or configure MythTV. If you need further information about how best to do this, [http://www.mythbuntu.org/ Mythbuntu] is a good place to start. Mythbuntu is a community supported add-on for Ubuntu focused upon setting up a standalone MythTV based PVR system.&lt;br /&gt;
&lt;br /&gt;
== Integrated support via MythTV PVR add-on ==&lt;br /&gt;
Integrated MythTV support in XBMC is based on the [[PVR]] support that has now been merged in mainline XBMC (as of October 2012). More information can be found on [[PVR]] wiki page.  There is a currently a [[PVR/MythTV|MythTV client add-on]] along with support of other PVR backends through [[:Category:PVR add-ons|client add-ons for those backends]].&lt;br /&gt;
&lt;br /&gt;
== Old-style myth:// protocol access ==&lt;br /&gt;
{{outdated|This section details the old-style [[Media Sources|media source]] that can communicates with a &#039;&#039;&#039;MythTV&#039;&#039;&#039; backend.  While it should still work, the focus going forward will be accessing the MythTV backend via the &#039;&#039;&#039;[[PVR/MythTV|PVR client add-on]]&#039;&#039;&#039;. Thus some of the information in this article or section is likely not to be updated, and may become increasing unreliable over time}}&lt;br /&gt;
&lt;br /&gt;
That said, the current support allows you to:&lt;br /&gt;
* &#039;&#039;&#039;Navigate All Recordings, Movies and TV Shows separately&#039;&#039;&#039; - standard XBMC navigation grouped in a sensible way.&lt;br /&gt;
* &#039;&#039;&#039;Playback recordings with automatic commercial skip&#039;&#039;&#039; - automatic commercial skip during playback that works as you expect with no fuss. Advanced options to help merge poorly flagged commercial breaks as well.&lt;br /&gt;
* &#039;&#039;&#039;Add recorded Movies to the XBMC library&#039;&#039;&#039; - integrate your recorded Movies in MythTV with all your other movies so you can see them all in one place. Standard XBMC functionality with [[scrapers]] supported.&lt;br /&gt;
* &#039;&#039;&#039;Watch and pause Live TV with direct channel navigation&#039;&#039;&#039; - change up or down channel with a single button press, or choose a channel number using the remote keypad.&lt;br /&gt;
* &#039;&#039;&#039;Look at electronic program guide (EPG)&#039;&#039;&#039; - to see what is coming up on each channel&lt;br /&gt;
* &#039;&#039;&#039;Delete recorded programs after watching&#039;&#039;&#039; - one place to watch and delete recorded programs&lt;br /&gt;
&lt;br /&gt;
This limited source support is limited to playback of MythTV recordings. You need to schedule recordings via the new [[PVR/MythTV|MythTV add-on]] or using mythfrontend or mythweb.&lt;br /&gt;
&lt;br /&gt;
Versions of MythTV up to and including 0.24 are supported in the 11.0 release of XBMC Media Center (Eden). Version 0.25 of MythTV is currently only supported in trunk (see the &amp;quot;libcmyth&amp;quot; section of [[MythTV PVR Addon|the MythTV PVR Addon article]] for details).&lt;br /&gt;
&lt;br /&gt;
The functionality described on this page is for the 9.11 Camelot release of XBMC.&lt;br /&gt;
&lt;br /&gt;
=== Setup ===&lt;br /&gt;
&lt;br /&gt;
XBMC communicates with mythbackend using the [http://www.mythtv.org/wiki/Myth_Protocol Myth Protocol] and MySQL database queries to the mythconverg database. This requires that the MythTV configuration is checked to ensure XBMC will be able to communicate with MythTV, which depends on whether XBMC is running on the same machine.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t intend on using the &#039;&#039;&#039;Guide&#039;&#039;&#039; then the MySQL related configuration can be omitted. Access to the &#039;&#039;mythconverg&#039;&#039; MySQL database is only used to view the Guide.&lt;br /&gt;
&lt;br /&gt;
==== Setup in MythTV ====&lt;br /&gt;
&lt;br /&gt;
If XBMC Media Center and the MythTV backend will NOT be running on the same machine:&lt;br /&gt;
&lt;br /&gt;
* Check that the IP Address configured in MythTV can be accessed by the XBMC machine. &#039;&#039;The default IP Address for an installation of MythTV is 127.0.0.1 and must be changed so playback will work&#039;&#039;&lt;br /&gt;
# Run &#039;&#039;&#039;mythtv-setup&#039;&#039;&#039;&lt;br /&gt;
# Select &#039;&#039;&#039;General&#039;&#039;&#039;&lt;br /&gt;
# Check that the &#039;&#039;&#039;IP Address&#039;&#039;&#039; in &#039;&#039;&#039;Local Backend&#039;&#039;&#039; section is NOT set to &#039;&#039;localhost&#039;&#039; or &#039;&#039;127.0.0.1&#039;&#039;. The IP Address must be resolvable from the XBMC Media Center machine, e.g. 192.168.1.3.&lt;br /&gt;
* Check that the MySQL database being used by MythTV has been configured to allow external connections.&lt;br /&gt;
** Generally this means ensuring that the &#039;&#039;bind-address&#039;&#039; is &#039;&#039;not&#039;&#039; set to &#039;&#039;localhost&#039;&#039; or &#039;&#039;127.0.0.1&#039;&#039; in &#039;&#039;/etc/mysql/mysql.cnf&#039;&#039; or one of the &#039;&#039;*.cnf&#039;&#039; files in &#039;&#039;/etc/mysql/conf.d/&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To ensure XBMC has proper access to the MythTV mysql database, run the following commands on the mysql server. Replace &#039;&#039;&#039;PASSWORD&#039;&#039;&#039; or &#039;&#039;&#039;xbmc&#039;&#039;&#039; with whatever you prefer, but keep the single quotes for syntax.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$ mysql -u root -p &amp;lt;/code&amp;gt; (enter mysql root password when prompted)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mysql&amp;gt; grant SELECT,INSERT,UPDATE,DELETE,CREATE,DROP on mythconverg.* to &#039;xbmc&#039; identified by &#039;PASSWORD&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you just want to restrict by IP subnet (in this example, the 192.168.1.x network):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
    $ mysql -u root -p&lt;br /&gt;
    mysql&amp;gt; grant all on mythconverg.* to mythtv@&amp;quot;192.168.1.%&amp;quot; identified by &amp;quot;mythtv&amp;quot;;&lt;br /&gt;
    mysql&amp;gt; flush privileges;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is very important that the &#039;&#039;&#039;IP Address&#039;&#039;&#039; is set correctly using &#039;&#039;&#039;mythtv-setup&#039;&#039;&#039;. The Myth Protocol used by XBMC Media Center uses the IP Address configured in the Myth TV backend to determine where to stream the recordings from. So, even if the IP address in the myth:// URL points correctly to the MythTV backend, there can still be playback problems if the correct IP Address isn&#039;t also set correctly using mythtv-setup.&lt;br /&gt;
&lt;br /&gt;
==== Setup in XBMC ====&lt;br /&gt;
&lt;br /&gt;
To communicate with a MythTV backend, add a new &#039;&#039;Source&#039;&#039; from the &#039;&#039;Videos&#039;&#039; section. The source should have a URL that looks like:&lt;br /&gt;
&#039;&#039;&#039;myth://username:password@i.p.address&#039;&#039;&#039; &lt;br /&gt;
This URL needs to be specified manually as many skins don&#039;t support the ability to configure a MythTV source. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;username&#039;&#039; and &#039;&#039;password&#039;&#039; are the credentials for a user that has access to the MySQL &#039;&#039;mythconverg&#039;&#039; database on the MythTV backend. The username and password supplied in the URL are used to obtain EPG information from the MythTV database when using the &#039;&#039;&#039;Guide&#039;&#039;&#039;. If the username and password are not supplied a default of &#039;&#039;mythtv&#039;&#039; is used for both. The username and password are not used when watching recordings.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;i.p.address&#039;&#039; is the IP address of the MythTV master server. A hostname can also be used, but it must be resolvable to an IP address on the XBMC Media Center machine.&lt;br /&gt;
&lt;br /&gt;
When you select the newly added MythTV [[Media Sources|media source]] five folders will be listed:&lt;br /&gt;
* &#039;&#039;&#039;All Recordings&#039;&#039;&#039; - to watch anything that has been recorded all in one folder.&lt;br /&gt;
* &#039;&#039;&#039;Guide&#039;&#039;&#039; - to view the EPG for a channel&lt;br /&gt;
* &#039;&#039;&#039;Live Channels&#039;&#039;&#039; - to display what is currently being aired&lt;br /&gt;
* &#039;&#039;&#039;Movies&#039;&#039;&#039; - to list the movies that have been recorded&lt;br /&gt;
* &#039;&#039;&#039;TV Shows&#039;&#039;&#039; - to list each series of TV shows that have been recorded&lt;br /&gt;
&lt;br /&gt;
[[File:MythTV.FolderListing.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
=== Watching Recorded Programs ===&lt;br /&gt;
&lt;br /&gt;
==== All Recordings ====&lt;br /&gt;
&lt;br /&gt;
After choosing &#039;&#039;&#039;All Recordings&#039;&#039;&#039; a list of all recorded programs is presented. Standard XBMC functionality can be used to sort by date to see the most recent recordings, or sort by name to get all the shows from a given series grouped together.&lt;br /&gt;
&lt;br /&gt;
[[File:MythTV.AllRecordings.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
==== Movies ====&lt;br /&gt;
&lt;br /&gt;
After choosing &#039;&#039;&#039;Movies&#039;&#039;&#039; a list of all the recorded movies is shown.&lt;br /&gt;
&lt;br /&gt;
[[File:MythTV.Movies.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
If not all of the movies are shown, e.g. some still display in the &#039;&#039;&#039;TV Shows&#039;&#039;&#039; section, the Electronic Program Guide (EPG) being used by MythTV might not be very accurate. The EPG describes which programs are Movies and which are TV Shows. Use the [[Advancedsettings.xml#.3Cmyth.3E|&amp;lt;myth&amp;gt;&amp;lt;movielength&amp;gt; advanced setting]] to help with this problem. 85 minutes seems to work well.&lt;br /&gt;
&lt;br /&gt;
==== TV Shows ====&lt;br /&gt;
&lt;br /&gt;
After choosing &#039;&#039;&#039;TV Shows&#039;&#039;&#039; a list of all the recorded TV shows grouped by title is shown. This makes it easy to see what TV series or one-off programs have been recorded.&lt;br /&gt;
&lt;br /&gt;
TODO: Update image.&lt;br /&gt;
[[File:MythTV.TVShows.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
After choosing a title, the list of recorded programs with that title is shown.&lt;br /&gt;
&lt;br /&gt;
TODO: Update image.&lt;br /&gt;
[[File:MythTV.TVShows.BestOfTopGear.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
=== Watching Live TV ===&lt;br /&gt;
&lt;br /&gt;
After choosing &#039;&#039;&#039;Live Channels&#039;&#039;&#039; a listing of the channels used by MythTV is displayed.&lt;br /&gt;
[[File:MythTV.LiveTV.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
When a channel is chosen, the currently playing TV show on that channel is shown.&lt;br /&gt;
&lt;br /&gt;
It is possible to pause Live TV, but it is not possible to skip.&lt;br /&gt;
To move up or down a channel when playing Live TV press the PageUp or PageDown button. Note that channel changes can take some time depending on the tuner hardware and configuration being used by MythTV.&lt;br /&gt;
&lt;br /&gt;
=== Viewing the Electronic Program Guide (EPG) ===&lt;br /&gt;
&lt;br /&gt;
After choosing &#039;&#039;&#039;Guide&#039;&#039;&#039; a listing of channels used by MythTV is shown.&lt;br /&gt;
&lt;br /&gt;
[[File:MythTV.Guide.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
When a channel is chosen, the listing of upcoming programs on that channel is displayed.&lt;br /&gt;
&lt;br /&gt;
[[File:MythTV.Guide.TV3.jpg|800px]]&lt;br /&gt;
&lt;br /&gt;
There is a future project to be able to schedule programs to record from the EPG similar to the functionality available in the MythTV frontend.&lt;br /&gt;
&lt;br /&gt;
=== Adding Recorded Movies to the Video Library ===&lt;br /&gt;
&lt;br /&gt;
Recorded movies can be added to the XBMC [[Video Library]] by setting the &#039;&#039;&#039;Content Type&#039;&#039;&#039; on the Movies directory and then choosing the appropriate Movie scraper.&lt;br /&gt;
&lt;br /&gt;
Once the recorded Movies have been scanned to the Library, you can see and play them via the XBMC Movie Library.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; be sure to only set the content type for the &#039;&#039;&#039;Movies&#039;&#039;&#039; folder. XBMC doesn&#039;t understand how to add anything other than movies. If you choose a folder containing recorded TV Shows to be added to the library you may end up with all sorts of strange files in your XBMC library.&lt;br /&gt;
&lt;br /&gt;
=== Automatic Commercial Skipping ===&lt;br /&gt;
&lt;br /&gt;
Commercial breaks that have been flagged in MythTV are automatically skipped as of the 9.11 release (note that the option to turn EDL support on/off has now been removed). Prior to 9.11, automatic commercial skipping can be enabled by turning on [[EDL (commercial skipping) and SceneMarker support|Edit Decision List (EDL) support]] in XBMC Media Center through &#039;&#039;Settings -&amp;gt; Video -&amp;gt; Player -&amp;gt; Enable edit decision lists&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Each commercial break is only skipped once so it&#039;s possible to go back into any incorrectly flagged commercial break. Scene markers are also put in at the beginning and end of the flagged commercial breaks to further support navigation.&lt;br /&gt;
&lt;br /&gt;
For more information about the configuration that is possible for commercial skipping, see the [[EDL (commercial skipping) and SceneMarker support|Edit Decision Lists]] wiki page.&lt;br /&gt;
&lt;br /&gt;
=== Deleting Recorded Programs ===&lt;br /&gt;
&lt;br /&gt;
The ability to delete recorded programs can be enabled through &#039;&#039;Settings -&amp;gt; Appearance -&amp;gt; View Options -&amp;gt; Allow file renaming and deletion&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Known Problems ===&lt;br /&gt;
&lt;br /&gt;
* Need to delete a recording twice for it to be removed if using a MythTV 0.20 backend. Deleting works as expected using a MythTV 0.21 backend.&lt;br /&gt;
* Channel changes can take some time when using LiveTV.&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
&lt;br /&gt;
==== Recordings Don&#039;t Play ====&lt;br /&gt;
&lt;br /&gt;
For the myth:// protocol to play recordings, XBMC must be able to access the &#039;&#039;&#039;IP Address&#039;&#039;&#039; configured in the MythTV backend using &#039;&#039;&#039;mythtv-setup&#039;&#039;&#039;. This is necessary because of the way the Myth Protocol works. The Myth API gets the IP Address configured in the MythTV backend and uses that to stream recordings.&lt;br /&gt;
&lt;br /&gt;
If a hostname was used in the IP Address configuration for the MythTV Local Backend, either the DNS server on the network needs to be able to resolve the hostname to an IP address, or a static hostname to IP address entry is needed on the XBMC machine. A static IP address mapping can be set in the &#039;&#039;/etc/hosts&#039;&#039; file in Linux or Mac OSX, or in the &#039;&#039;AdvancedSettings.xml&#039;&#039; file for the original XBox.&lt;br /&gt;
&lt;br /&gt;
Even if you haven&#039;t used a hostname, it may be worth adding an &#039;&#039;/etc/hosts&#039;&#039; file entry, as it appears that the backend returns a hostname anyway sometimes (see [http://forum.xbmc.org/showthread.php?t=45050&amp;amp;page=3]).&lt;br /&gt;
&lt;br /&gt;
Double check that the Local Backend IP Address configured in the MythTV backend is not set to &#039;&#039;localhost&#039;&#039; or &#039;&#039;127.0.0.1&#039;&#039; if the MythTV backend is running on a different machine to XBMC Media Center.&lt;br /&gt;
&lt;br /&gt;
==== Guide Doesn&#039;t Display Anything ====&lt;br /&gt;
&lt;br /&gt;
Check that the username and password supplied in the myth:// URL are a username and password that have access to the mythconverg MySQL database. The guide information is obtained directly from the database.&lt;br /&gt;
&lt;br /&gt;
If a username and password have not been supplied in the myth:// URL then the default of &#039;mythtv&#039; will be used for both.&lt;br /&gt;
&lt;br /&gt;
See Setup in XBMC for more information.&lt;br /&gt;
&lt;br /&gt;
==== Live TV Doesn&#039;t Play ====&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;libcmyth&#039;&#039;&#039; library used for to connect to MythTV from XBMC only enumerates the first 16 tuner devices when looking for available tuners. [http://trac.xbmc.org/ticket/4771 Trac - CMyth only enumerates 17 tuners]&lt;br /&gt;
&lt;br /&gt;
Depending on what was done when the MythTV backend was set up, it&#039;s possible that some Tuner ID&#039;s are &amp;gt; 17 in the mythconverg database (especially if tuners were added and deleted several times, or if multiplexing is being used for digital terrestrial tuners).&lt;br /&gt;
&lt;br /&gt;
If this is the case, you may be able to see the &#039;&#039;&#039;Guide&#039;&#039;&#039; and all the stations displayed in XBMC, but XBMC may not be able to select a tuner for live TV playback.&lt;br /&gt;
&lt;br /&gt;
This can be resolved by removing all the tuners through &#039;&#039;&#039;mythtv-setup&#039;&#039;&#039; (so they start at 0 when re-added), and then re-adding them, or reducing the number of multiplexed virtual tuners that are created for each physical digital terrestrial tuner.&lt;br /&gt;
&lt;br /&gt;
If a only a green screen displayed but the audio is working fine. Use mythtv&#039;s frontend to change the encoder to mpeg4. The settings can be found in &amp;quot;Utilites/Setup- Setup - TV Settings - Recording Profiles - Software Encoders. Select Live TV, and change it&#039;s encoder from rtjpeg to mpeg4.&lt;br /&gt;
&lt;br /&gt;
==== Audio Plays Out of Sync ====&lt;br /&gt;
&lt;br /&gt;
If CPU utilization is close to 100% on any of the CPU cores then there could be audio sync problems.&lt;br /&gt;
&lt;br /&gt;
Depending on the video card and driver being used, there could be significant CPU utilized when playing H264 video content. The [[Advancedsettings.xml#.3Cskiploopfilter.3E|&amp;lt;skiploopfilter&amp;gt; advanced setting]] can be used to reduce the CPU utilization by reducing the quality of the output H264 video. Try setting it to 48.&lt;br /&gt;
&lt;br /&gt;
== History of MythTV support in XBMC ==&lt;br /&gt;
&lt;br /&gt;
MythTV support in XBMC has been available since ~2004. It started life as a Python script for the original XBox that had functionality added by willing developers over the following years. Eventually the script moved to the current home at Sourceforge, and is now called [http://sourceforge.net/projects/xbmcmythtv/ xbmcmythtv]. In late 2008 another script based solution arrived called [http://code.google.com/p/mythbox/ MythBox].&lt;br /&gt;
&lt;br /&gt;
In 2007 support for communicating with the MythTV backend was added directly to XBMC via a Source using the myth:// protocol. This project uses the cmyth library, which was built to use the network based [http://www.mythtv.org/wiki/index.php/Myth_Protocol Myth Protocol] supported by MythTV. &lt;br /&gt;
&lt;br /&gt;
In 2009, the [[GSoC - Unified PVR Frontend|Google Summer of Code - Unified PVR Frontend]] project was launched to provide added functionality to the existing myth:// protocol support (here is a historical [http://forum.xbmc.org/showthread.php?t=2297 MythTV frontend client built into XBMC] forum thread).&lt;br /&gt;
&lt;br /&gt;
In early 2011 the initial work from the GSoC for the unified PVR API was folded into a branch of xbmc, which was eventually pushed back to mainline XBMC in October 2012 and is scheduled to be released in Frodo/12.x: see [[PVR]]. This support will include a [[PVR/MythTV|MythTV client]].&lt;br /&gt;
&lt;br /&gt;
=== myth:// Source ===&lt;br /&gt;
&lt;br /&gt;
The myth:// source was released in early 2007. This project uses the network based [http://www.mythtv.org/wiki/index.php/Myth_Protocol Myth Protocol] to communicate with the MythTV backend. It also accesses the MySQL database directly to get &#039;&#039;&#039;Guide&#039;&#039;&#039; information.&lt;br /&gt;
&lt;br /&gt;
Although the myth:// source doesn&#039;t support all the functionality that the xbmcmythtv script supported, it is possible to play recordings, which is all many XBMC frontend systems need to support.&lt;br /&gt;
&lt;br /&gt;
The native MythTV frontend client needs to be used to schedule recordings.&lt;br /&gt;
&lt;br /&gt;
=== MythTV Python Scripts for XBMC ===&lt;br /&gt;
&lt;br /&gt;
MythTV Python Scripts for XBMC that provide a python coded GUI for MythTV interface.&lt;br /&gt;
&lt;br /&gt;
=== MythBox Script (Linux/Mac/Windows) ===&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/mythbox/ MythBox] was released in late 2008 and is a XBMC script for MythTV that supports the most common frontend use cases:&lt;br /&gt;
* Watching recordings with commercial skipping&lt;br /&gt;
* Watching Live TV&lt;br /&gt;
* Creating and editing recording schedules&lt;br /&gt;
* Showing upcoming recordings&lt;br /&gt;
* TV Guide&lt;br /&gt;
* Tuner and job status&lt;br /&gt;
* Fanart and episode meta data from tvdb.com, tvrage.com, themoviedb.org, imdb.com, and Google image search.&lt;br /&gt;
* MythTV Backends: 0.21, 0.22, 0.23, 0.23.1&lt;br /&gt;
&lt;br /&gt;
=== Myth2XBMC Script (Xbox) ===&lt;br /&gt;
&lt;br /&gt;
[http://code.google.com/p/myth2xbmc/ Myth2XBMC] heavily based on the original [http://sourceforge.net/projects/xbmcmythtv/ xbmcmythtv] script and is only tested on the Xbox.&lt;br /&gt;
&lt;br /&gt;
=== xbmcmythtv Script (Xbox) ===&lt;br /&gt;
&lt;br /&gt;
Support for MythTV in XBMC started with this [http://sourceforge.net/projects/xbmcmythtv/ xbmcmythtv] python script for XBMC on the Xbox. This project communicated with the MythTV mythconverg MySQL database to get information, and played recordings via a Samba share on the MythTV backend.&lt;br /&gt;
&lt;br /&gt;
The last official release of the Python script was in May 2007 and supported version 0.20 of MythTV and protocol 34. Various unofficial releases were made available by some of the developers of xbmcmythtv, but appears to no longer be supported on an ongoing basis.&lt;br /&gt;
&lt;br /&gt;
=== MythicalLibrarian and MythSExx ===&lt;br /&gt;
&lt;br /&gt;
[[MythicalLibrarian]] and [[MythSExx]] are bash scripts which can be run on the MythTV server to create symlinks to the recorded files. The symlinks use the supported XBMC naming conventions so the standard filesystem scrapers can be used to scan recorded MythTV content into the XBMC Movie and TV Show libraries. They also generate the required EDL files to support commercial skip during playback.&lt;br /&gt;
&lt;br /&gt;
[[MythicalLibrarian]] handles both TV episodes and Movies whereas [[MythSExx]] only handles TV episodes.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mythtv.org mythtv.org] - MythTV official website&lt;br /&gt;
** http://en.wikipedia.org/wiki/MythTV&lt;br /&gt;
* [http://mythbuntu.org mythbuntu.org] - Mythbuntu official website, a Linux distro with MythTV preconfigured&lt;br /&gt;
** http://en.wikipedia.org/wiki/Mythbuntu&lt;br /&gt;
* [http://adamhaeder.com/wordpress/2010/01/19/how-to-configure-xbmc-as-a-mythtv-frontend/ Walkthrough on how to configure XBMC for MythTV support], including skin modification for episode information, and EventGhost remote control support.&lt;br /&gt;
&lt;br /&gt;
[[Category:File sharing]]&lt;br /&gt;
[[Category:Live TV]]&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=79554</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=79554"/>
		<updated>2014-10-13T17:39:03Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar errors, setup vs set up&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.xbmc.org/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.xbmc.org/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 (in minutes) for this device&lt;br /&gt;
IdleTimeout=1   &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;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up PS3 BD Remote|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=79553</id>
		<title>MySQL/Setting up MySQL</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MySQL/Setting_up_MySQL&amp;diff=79553"/>
		<updated>2014-10-13T17:37:29Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:MySQL/Contents}}&lt;br /&gt;
{{mininav| [[MySQL]] }}&lt;br /&gt;
You&#039;ll need to choose which of your computers, XBMC devices, or [[NAS]] will be the MySQL server. The server needs to be on 24/7 or have wake-on-lan (preferably the former), and needs to have a local static IP. You will probably want the XBMC device that is hosting most or all of your videos and music to also be the MySQL server, but this is not required.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
{{note|XBMC v13 seems to have fixed the issue with MySQL 5.6, making it safe to use with XBMC.}}&lt;br /&gt;
&lt;br /&gt;
{{redv|&#039;&#039;&#039;Please Note:&#039;&#039;&#039;| Don&#039;t create the MySQL databases on your server&#039;&#039;&#039;. Simply set up the MySQL server itself, as XBMC will create the specific databases by itself.}}&lt;br /&gt;
&lt;br /&gt;
MySQL can be installed on just about every major OS:&lt;br /&gt;
&lt;br /&gt;
=Ubuntu Linux=&lt;br /&gt;
&#039;&#039;&#039;Ubuntu Linux:&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo apt-get install mysql-server&amp;lt;/code&amp;gt; &#039;&#039;(see also: https://help.ubuntu.com/10.04/serverguide/C/mysql.html )&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and change the bind-address directive to the server&#039;s IP address:&lt;br /&gt;
##from: &amp;lt;code&amp;gt;bind-address = 127.0.0.1&amp;lt;/code&amp;gt; &lt;br /&gt;
##to: &amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: To allow local and remote access try comment out bind-address using a hash(#) or use &amp;lt;code&amp;gt;bind-address = 0.0.0.0&amp;lt;/code&amp;gt;&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo restart mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Arch Linux=&lt;br /&gt;
&#039;&#039;&#039;Arch Linux:&#039;&#039;&#039;&lt;br /&gt;
*Please note: Arch, along with many other distributions, has migrated to the faster and more open MariaDB. It is a drop in replacement to MySQL and, thus, XBMC will require no modifications to work with it.&lt;br /&gt;
#Install MariaDB: &amp;lt;code&amp;gt;$ sudo pacman -S mariadb&amp;lt;/code&amp;gt;&lt;br /&gt;
#Start the service: &amp;lt;code&amp;gt;$ sudo systemctl start mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#To have it automatically launch at startup: &amp;lt;code&amp;gt;$ sudo systemctl enable mysqld&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password: &amp;lt;code&amp;gt;$ /usr/bin/mysql_secure_installation&amp;lt;/code&amp;gt; &#039;&#039;This will also clean up the demo database.&#039;&#039;&lt;br /&gt;
#Get into the MariaDB command line utility: &amp;lt;code&amp;gt;$ mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=RedHat based Linux=&lt;br /&gt;
&#039;&#039;&#039;RedHat based Linux (RHEL, CentOS, Fedora):&#039;&#039;&#039;&lt;br /&gt;
#&amp;lt;code&amp;gt;$sudo yum install mysql-server&amp;lt;/code&amp;gt;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#To configure MySQL to listen for connections only from network hosts, edit &#039;&#039;/etc/mysql/my.cnf&#039;&#039; and add the bind-address directive to the server&#039;s IP address:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;bind-address = 192.168.0.5&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Note: Replace 192.168.0.5 with the appropriate address.&lt;br /&gt;
#*Note: Alternatively you can leave this file as is to allow local and remote access.&lt;br /&gt;
#Restart your MySQL server. &amp;lt;code&amp;gt;$sudo /sbin/service mysqld restart&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Recommended - Set your MySQL root password with &amp;lt;code&amp;gt;/usr/bin/mysqladmin -u root password &#039;new-password&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
#Get into the MySQL command line utility: &amp;lt;code&amp;gt;$mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
#*Enter your MySQL root password as set above, or just press enter if you didn&#039;t set one to log in with a blank password&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool with &amp;lt;code&amp;gt;\q&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Mac OS X=&lt;br /&gt;
&#039;&#039;&#039;Mac OS X:&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#In Mac OS X, go to System Preferences -&amp;gt; MySQL, and click on “Start MySQL Server”.  You’ll also want to tick to enable the “Automatically … on Startup” option.&lt;br /&gt;
#Now to set up the &amp;quot;xbmc&amp;quot; user in MySQL and give it access. Launch Terminal.app on your Mac and issue the following commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo /usr/local/mysql/bin/mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt;&lt;br /&gt;
#Remain in Terminal.app. Now you&#039;ll be giving other computers on your network access to MySQL. Enter the next set of commands, one line at a time:&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /usr/local/mysql/support-files/&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo cp my-huge.cnf /etc/my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;The command line will ask for your Mac OS X user password. Enter it and press return. No text will show when you type your password in, this is normal.&lt;br /&gt;
##&amp;lt;code&amp;gt;cd /etc&amp;lt;/code&amp;gt;&lt;br /&gt;
##&amp;lt;code&amp;gt;sudo nano my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
##:&#039;&#039;This opens a file in a command line text editor&#039;&#039;&lt;br /&gt;
##Scroll down to the [mysqld] section and add or edit the following line so that it appears as:&lt;br /&gt;
##:&amp;lt;code&amp;gt;bind-address = ***.***.***.***&amp;lt;/code&amp;gt;&lt;br /&gt;
##Save and exit from the command line text editor&lt;br /&gt;
#Reboot the Mac, or restart the MySQL service from the System Preferences pane you installed earlier&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Alternative guide for Mac OS X: http://forum.xbmc.org/showthread.php?tid=151631&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
&#039;&#039;&#039;Windows:&#039;&#039;&#039;&lt;br /&gt;
#Download a copy of MySQL server from http://dev.mysql.com/downloads/mysql/&lt;br /&gt;
#Select &#039;&#039;Standard configuration&#039;&#039;&lt;br /&gt;
#Create a password when asked&lt;br /&gt;
#Select that you want the database to have network access when prompted during installation.&lt;br /&gt;
#Open the &amp;quot;MySQL Command Line Client&amp;quot; from the MySQL start menu&lt;br /&gt;
#Enter the following commands:&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
##Type in: &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt; and press return&lt;br /&gt;
#Close out the command line tool&lt;br /&gt;
#If you&#039;re using a firewall such as the one that&#039;s built into Windows, you will need to do this next step.&lt;br /&gt;
:*&#039;&#039;&#039;Windows 7 Built-in Firewall&#039;&#039;&#039; &lt;br /&gt;
:#Go to control panel and open Windows Firewall&lt;br /&gt;
:#Click on Advanced Settings&lt;br /&gt;
:#Click on Inbound Rules, then New Rule&lt;br /&gt;
:#For the Rule Type, choose &#039;&#039;&#039;&#039;&#039;Port&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Protocol and Ports, select TCP protocol and type in &#039;&#039;&#039;&#039;&#039;3306&#039;&#039;&#039;&#039;&#039; for the &#039;&#039;&#039;&#039;&#039;Specific local ports&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Action, leave it at default which is &#039;&#039;&#039;&#039;&#039;Allow the connection&#039;&#039;&#039;&#039;&#039; and hit Next&lt;br /&gt;
:#For Profile, you can leave it as default (everything checked by default) and hit Next&lt;br /&gt;
:#For Name, set it to &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any name that you will know what it is and click Finished&lt;br /&gt;
:*&#039;&#039;&#039;Windows XP Built-in Firewall&#039;&#039;&#039;&lt;br /&gt;
:#Open Control Panel and Set to &#039;Classic View&#039;&lt;br /&gt;
:#Double Click on Windows Firewall&lt;br /&gt;
:#Click on tab that says Exceptions&lt;br /&gt;
:#Click on Add Port&lt;br /&gt;
:#Name it &#039;&#039;&#039;&#039;&#039;MySQL&#039;&#039;&#039;&#039;&#039; or any other name&lt;br /&gt;
:#Set the port number to &#039;&#039;&#039;3306&#039;&#039;&#039;&lt;br /&gt;
:#Choose &#039;&#039;&#039;&#039;&#039;TCP&#039;&#039;&#039;&#039;&#039; and click OK&lt;br /&gt;
&lt;br /&gt;
{{Note|If XBMC is unable to connect to the MySQL server, returning an error code [1130]:}}&amp;lt;br/&amp;gt;&lt;br /&gt;
If this occurs to you, try amending Step 2 above to read &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;@&#039;xxx.xxx.xxx.%&#039;;&amp;lt;/code&amp;gt; where xxx.xxx.xxx is the first three quadrants of your home network&#039;s IP address (192.168.1 for example) and % as the last quadrant to allow addresses on the same subnet to connect.&lt;br /&gt;
&lt;br /&gt;
=Other NAS=&lt;br /&gt;
MySQL can also be installed on some [[w:network-attached storage|network-attached storage (NAS)]] device devices. Here are some guides for various NAS devices that can have a MySQL server installed:&lt;br /&gt;
&lt;br /&gt;
*Devices running Arch Linux ARM (such as the PogoPlug, Dockstar, etc) can use the [[HOW-TO:Share libraries using MySQL/Setting up MySQL/ALARM|Arch Linux instructions]] on this page.&lt;br /&gt;
*[http://quixventure.com/2011/12/configure-a-synology-nas-as-mysql-server-for-xbmc/ Synology NAS as MySQL server for XBMC] and http://youtu.be/3PmmDtK65ks&lt;br /&gt;
*http://www.robvanhamersveld.nl/2013/02/05/share-your-xbmc-12-0-library-on-a-synology-ds-or-other-nas/ Synology DS with MySQL guide based on Frodo&lt;br /&gt;
*http://forum.xbmc.org/showthread.php?tid=172548 - unRAID&lt;br /&gt;
&lt;br /&gt;
=FreeNAS and freeBSD=&lt;br /&gt;
&lt;br /&gt;
== About FreeNAS ==&lt;br /&gt;
&lt;br /&gt;
http://www.freenas.org/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
FreeNAS is a FreeBSD based NAS system that can be run on almost any hardware - it uses ZFS for disk and file management. It is used at home and in enterprise businesses. 99% of tasks can be done via the web interface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example below is based on FreeNAS 9.1.1 on 12/12/13, and assumes you have already configured your nas with drives, datasets etc&lt;br /&gt;
&lt;br /&gt;
== How to ==&lt;br /&gt;
&lt;br /&gt;
=== Make a jail ===&lt;br /&gt;
&lt;br /&gt;
create a Jail via the FreeNAS webui - if unsure see here http://doc.freenas.org/index.php/Adding_Jails&lt;br /&gt;
&lt;br /&gt;
make a note of the jail IP address shown - you will need this to put in the advancedsettings.xml file on the XBMC machine later&lt;br /&gt;
&lt;br /&gt;
=== Prepare the jail ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*ssh into FreeNAS&lt;br /&gt;
**If you have a windows PC use putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) &lt;br /&gt;
**(easiest) click the &amp;quot;shell&amp;quot; button in the left of the FreeNAS webui&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
type the following commands&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jls&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Take note of the JID of the jail you created, use it in the command below and replace n with the number of the jail you just created&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;jexec n csh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install mysql ===&lt;br /&gt;
You are now inside your jail&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install mysql55-server&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;pkg install nano&amp;lt;/code&amp;gt;&lt;br /&gt;
**(nano is a text editor you will need shortly)&lt;br /&gt;
&lt;br /&gt;
We now need to enable mysql in rc.conf&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;nano /etc/rc.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
insert the line below into the rc.conf file&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
save the file and exit (see bottom of nano edit page for keystrokes info)&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;service mysql-server start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optional step below - this is an automated script that will secure you mysql instance - it will prompt you for answers to questions. Its up to you if you do this.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql_secure_installation&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure mysql ready for xbmc to use ===&lt;br /&gt;
&lt;br /&gt;
type in&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You are now in mysql administration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CREATE USER &#039;xbmc&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;GRANT ALL ON *.* TO &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;quit;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Restricting MySQL access rights=&lt;br /&gt;
&#039;&#039;&#039;Optional:&#039;&#039;&#039; &#039;&#039;&#039;If you only use the MySQL server for XBMC and that server has non-critical data on it, then this probably not necessary.&#039;&#039;&#039;&lt;br /&gt;
For a more secure MySQL installation use these 2 commands to grant permission only to databases XBMC uses. This is useful if you plan on using your MySQL server for more than just XBMC, or if you&#039;re worried about your internal network being exposed and wanting to lock things down more, etc. &lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyMusic%`.* TO &#039;xbmc&#039;@&#039;%&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
#&amp;lt;code&amp;gt;GRANT ALL ON `MyVideos%`.* TO &#039;xbmc&#039;@&#039;%&#039; IDENTIFIED BY &#039;xbmc&#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Divbox|orange||&lt;br /&gt;
The limited grants on this page don&#039;t give the xbmc user permissions to create required TRIGGERs during install or upgrade. &lt;br /&gt;
&#039;&#039;&#039;XBMC requires these TRIGGERs to function properly.&#039;&#039;&#039; &lt;br /&gt;
Use the broader grant *.* statement that is explained on the previous tabs while creating or upgrading the tables. Only restrict rights afterwards, if you need to. &lt;br /&gt;
&lt;br /&gt;
Alternatively, figure out how to specifically give the account the right to create the require TRIGGERS - this varies between MySQL versions. }}&lt;br /&gt;
&amp;lt;headertabs /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Next|[[MySQL/Setting up XBMC|Setting up XBMC]]}}&lt;br /&gt;
&lt;br /&gt;
{{Gotham updated}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Dharma_Guide/Set_up_the_sources&amp;diff=79552</id>
		<title>Archive:Dharma Guide/Set up the sources</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Dharma_Guide/Set_up_the_sources&amp;diff=79552"/>
		<updated>2014-10-13T17:36:05Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:Dharma Guide/Contents}}&lt;br /&gt;
This is where XBMC looks for your media-files. The Sources will determine the content of your library, they are necessary in order for XBMC to index your Video -Files into the proper libraries. Be aware that you always should name your video- and music-sources according to XBMC’s set. This will make sure that you have the best possible experience with the XBMC. Let’s get started.&lt;br /&gt;
&lt;br /&gt;
== Organization of your media files ==&lt;br /&gt;
Before we are adding your files to your XBMC-Sources you should make sure that the files are named properly. Ideally you have your movie-files all in one folder. It does not matter if there are subfolders &lt;br /&gt;
and/or single files in this directory. The best way however is to use subfolders for each movie you have. The folder should then be named like the following Layout: “Movie Name (Release-Year)”. The part &amp;quot;Release Year&amp;quot; is technically not necessary but it will make sure that XBMC scrapes the right movie and you have the right movie in your library. See the following table for &amp;quot;best practices&amp;quot; for your media-files (entries inside [] are to be replaced by the respective values): &lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Sourcetype&lt;br /&gt;
!Folder-Structure&lt;br /&gt;
!mediafile-name&lt;br /&gt;
|-&lt;br /&gt;
|Movies&lt;br /&gt;
|&#039;&#039;Movies&#039;&#039; ⇒ &#039;&#039;Movie-Name (Release-Year)&#039;&#039; &lt;br /&gt;
|&#039;&#039;moviename (Release-Year).FileExtension&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|TVShows&lt;br /&gt;
|&#039;&#039;TVShows&#039;&#039; ⇒ &#039;&#039;TVShow-Name (Release-Year)&#039;&#039; ⇒ (optional) &#039;&#039;Season [SeasonNumber]&#039;&#039;&lt;br /&gt;
|&#039;&#039;tvshowname.S[SeasonNumber]E[EpisodeNumber].FileExtension&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If you currently have not sorted your movie-directory, you can do this with the help of some additional tools which are available. Some of these tools also apply to TV Shows and can you help sort them out too. Note however that Sickbeard (which will be handled later in this Guide) will sort your TV-Shows in the best possible way and also names your files according to the mentioned best practices.&lt;br /&gt;
&lt;br /&gt;
=== Multiplatform ===&lt;br /&gt;
* [http://sourceforge.net/projects/universalmc/ UniversalMC]&lt;br /&gt;
* [http://forum.xbmc.org/showthread.php?t=49370 Media Reader]&lt;br /&gt;
* [http://wiki.xbmc.org/?title=MythicalLibrarian MythicalLibrarian] (for MythTV-Recordings)&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
* [http://forum.xbmc.org/showthread.php?t=59800 XBNE]&lt;br /&gt;
* [http://mediacompanion.codeplex.com/ MediaCompanion]&lt;br /&gt;
* [http://www.plyoung.com/projects/xmm2/ XMM2]&lt;br /&gt;
* [http://sourceforge.net/projects/emm-r/ Ember Media Manager]&lt;br /&gt;
&lt;br /&gt;
=== Mac OS X ===&lt;br /&gt;
* [http://forum.xbmc.org/showthread.php?p=886768 ViMediaManager]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These tools also will generate usable NFO-Files for the XBMC. NFO-Files are little text-files in which all information about the movie is stored in a XML-Layout. If XBMC finds a NFO-File inside a subfolder, it will use the information from this NFO rather than downloading the information from the internet. For some more information on NFO-Files head down, you’ll find a section dedicated to them. A neat function of the XBMC provides the possibility to play two video-files as if they are merged to one file. This is helpful for movies which contain multiple CDs. If you have the movie &amp;quot;The Matrix&amp;quot; for example split into two files, you should name those files like &amp;quot;The Matrix.CD1.FileExtension&amp;quot; and &amp;quot;The Matrix.CD2.FileExtension&amp;quot; (this will be done by the media managers mentioned above as well). When scraping this movie to the library, XBMC will know that this is supposed to be one movie and will index the both files only as one movie in your library. If you then play this movie via the library in your XBMC both files will be played – the CD2 after CD1 ends obviously. You won’t even notice the cut between those (unless the files have an overlay of course) two.&lt;br /&gt;
Back to the XBMC. To start adding a source for movies hit the &amp;quot;Videos&amp;quot; button in the home - You will see a list of your CD-Drives and removable media-devices which are connected right now. You will also find a Button &amp;quot;Add Source&amp;quot; – hit it in order to bring up the Source-Menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will find a screenshot below, how that should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Dharma Guide 02.png|575px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hit the &amp;quot;Browse&amp;quot;-Button and locate your movie-location. Click &amp;quot;OK&amp;quot; and move to the Content-Screen.&lt;br /&gt;
&lt;br /&gt;
It will look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Dharma Guide 03.png|445px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to add your movies right now (you want to ;-)) hit the selection &amp;quot;Run automated scan&amp;quot;. If you use subfolders in your main movie-folder you should set &amp;quot;Use folder names for lookups&amp;quot; and &amp;quot;Scan recursively&amp;quot; too. Hit &amp;quot;Ok&amp;quot; – XBMC will now search for your stored movies with the Movie- Scraper and adds the contents to your library. This will take a while.&lt;br /&gt;
&lt;br /&gt;
== TV shows ==&lt;br /&gt;
{{editor note|This section is originally directed at users of the program sickbeard}}&lt;br /&gt;
Before adding TV-Shows to XBMC you should complete the Sickbeard-Tutorial first. Click here to read it now. Come back when Sickbeard is fully configured. Open up Sickbeard in your Browser and click on the button &amp;quot;Manage&amp;quot;. A list of all your TV-Shows should be presented to you – click on the empty field beneath &amp;quot;Rename&amp;quot;. This should mark all the &amp;quot;Rename&amp;quot;-Fields of the shows. Now click on &amp;quot;submit&amp;quot; below. Use it in order to change your entire TV-Show-Collection to the right naming convention for XBMC. Also – It will help you to actually sort your Collection and to make it more accessible. With TV-Shows you also have the option to use locally stored NFO-Files for XBMC. In this case XBMC will also use the provided information in the NFO-Files to check for your TV Shows. This will make sure that you do not have problems with the scanning. Check the option in the sickbeard- config if you want the Files to be created. Be aware that you should apply the naming-convention &amp;quot;TV-Show-Name (Starting-Year)&amp;quot; to the subfolders holding your TV-Shows. This will make sure that you do not get the wrong information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now head back to the XBMC and hit the &amp;quot;Add Source&amp;quot;-Button. Select your TV-Show-Directory and click OK. In the &amp;quot;Content&amp;quot;-Screen you should then select &amp;quot;TV Shows&amp;quot;. Mark the option &amp;quot;Run automated scan&amp;quot; if you want to. XBMC will now scrape all your Shows to your library.&lt;br /&gt;
&lt;br /&gt;
{{editor note|Sickbeard section of The Dharma Guide not currently included on the XBMC Wiki}}&lt;br /&gt;
&lt;br /&gt;
== Advanced library configuration ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using advanced &amp;quot;nfo&amp;quot;-files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As mentioned in the steps above NFO-files can be used by the XBMC to correctly read the information about your files instead of relying on online-data. But you can do more with those NFO- Files then simply replacing the online-stored information. An example is grouping movies into a set. For example:&lt;br /&gt;
&lt;br /&gt;
* Die Hard&lt;br /&gt;
* Die Hard 2&lt;br /&gt;
* Die Hard With a Vengeance&lt;br /&gt;
* Live Free or Die Hard&lt;br /&gt;
&lt;br /&gt;
These films are all part of the &amp;quot;Die Hard&amp;quot;-Quadology, however because &amp;quot;Live Free or Die Hard&amp;quot; begins with an &amp;quot;L&amp;quot; rather than a &amp;quot;D&amp;quot; it is ordered elsewhere and not nearby all the other &amp;quot;Die Hard&amp;quot;-Movies. You can add information to your NFO-File of the movie to correct this issue:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;xml&amp;gt;&lt;br /&gt;
 &amp;lt;movie&amp;gt;&lt;br /&gt;
 &amp;lt;title&amp;gt;Live Free or Die Hard&amp;lt;/title&amp;gt; &amp;lt;--- (Title of the movie) ---&amp;gt;&lt;br /&gt;
 &amp;lt;set&amp;gt;Die Hard Collection&amp;lt;/set&amp;gt; &amp;lt;--- (Set name to which it belongs) ---&amp;gt;&lt;br /&gt;
 &amp;lt;sorttitle&amp;gt;Die Hard 4&amp;lt;/sorttitle&amp;gt; &amp;lt;--- (Title within the set) ---&amp;gt;&lt;br /&gt;
 &amp;lt;/movie&amp;gt;&lt;br /&gt;
 http://www.themoviedb.org/movie/1571&lt;br /&gt;
 &amp;lt;/xml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Repeat these steps for the other Die Hard films, re-scrape and they should display as one movie set in your library. There is also a handy addon which will write those XML-Files for you. You can find the addon in the usual repo (see the AddOn-Section of this guide for information on AddOns and how to install them).&lt;br /&gt;
&lt;br /&gt;
NFO-Files can influence many aspects of XBMC’s library. For more information visit the XBMC-Wiki: [[Import - Export Library#Video nfo Files containing XML data]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic cleaning of the library&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you delete a lot of movies/TV Shows after you have watched them, you will notice that the XBMC will not clean these files if you launch the Library-Update. You can erase those movies only if you pick the &amp;quot;Clean Library&amp;quot;-Function in the settings-menu. Another solution however would be to put a file &amp;quot;advancedsettings.xml&amp;quot; into your XBMC-Userdata-Folder. For Windows just hit &amp;quot;Windows-Key&amp;quot; + &amp;quot;R&amp;quot; and type in &amp;quot;%AppData%/XBMC/userdata&amp;quot;. Create a new text-file with the following content inside this directory:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;advancedsettings&amp;gt;&lt;br /&gt;
      &amp;lt;videolibrary&amp;gt;&lt;br /&gt;
           &amp;lt;cleanonupdate&amp;gt;true&amp;lt;/cleanonupdate&amp;gt;&lt;br /&gt;
      &amp;lt;/videolibrary&amp;gt;&lt;br /&gt;
 &amp;lt;/advancedsettings&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rename the file to &amp;quot;advancedsettings.xml&amp;quot; and restart your XBMC. Your XBMC will now clean your video-library every time it updates it.&lt;br /&gt;
&lt;br /&gt;
You can do a lot more with the &amp;quot;advancedsettings.xml&amp;quot; – for more information check the XBMC-Wiki: [[advancedsettings.xml]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|Archive:Dharma Guide/Set up the sources|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_HDMI_audio_on_GeForce_GT210,_GT220,_or_GT240&amp;diff=79551</id>
		<title>Archive:Set up HDMI audio on GeForce GT210, GT220, or GT240</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Set_up_HDMI_audio_on_GeForce_GT210,_GT220,_or_GT240&amp;diff=79551"/>
		<updated>2014-10-13T17:34:52Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{outdated}}&lt;br /&gt;
&lt;br /&gt;
== XBMC Live [Eden] 11.0 ==&lt;br /&gt;
&#039;&#039;&#039;May 4, 2012&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Update : Lesser configuration in Eden:&lt;br /&gt;
&lt;br /&gt;
In XBMC&lt;br /&gt;
System =&amp;gt; System =&amp;gt; Audio output&lt;br /&gt;
[Both Audio Out and passthrough] on custom : hdmi:CARD=NVidia&lt;br /&gt;
&lt;br /&gt;
Use :&lt;br /&gt;
&lt;br /&gt;
 add-apt-repository ppa:team-iquik/alsa&lt;br /&gt;
 add-apt-repository ppa:ubuntu-audio-dev/ppa&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
When you dont have sound, start alsamixer, choose your card, en unmute it (M).&lt;br /&gt;
&lt;br /&gt;
If this still dont works, use the manual below.&lt;br /&gt;
&lt;br /&gt;
== XBMC Live [Dharma] 10.1 ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;April 11, 2011&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
EVGA GT210 - added file &amp;quot;sudo nano /etc/asound.conf&amp;quot; for menu sound&lt;br /&gt;
 &lt;br /&gt;
 pcm.!default {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave {&lt;br /&gt;
        pcm &amp;quot;hw:0,3&amp;quot;&lt;br /&gt;
        rate 48000&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
In XBMC&lt;br /&gt;
System =&amp;gt; System =&amp;gt; Audio output&lt;br /&gt;
[Both Audio Out and passthrough] on custom &amp;quot;plughw:0,3&amp;quot; [Card 0, Device 3 from &amp;quot;aplay -l in telnet&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
Update: Didn&#039;t need to put custom &amp;quot;plughw:0,3&amp;quot; &amp;quot;HDA Nvidia hdmi&amp;quot; works also.&lt;br /&gt;
Tested with G210 / Asus EN210 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Before You Begin/Notes ==&lt;br /&gt;
This guide assumes that you have a GeForce G210, GT220, or GT240 card, are using a reasonably up-to-date system, and that you have at least the nVidia 190 series proprietary drivers installed.&lt;br /&gt;
&lt;br /&gt;
== Getting ALSA ==&lt;br /&gt;
&lt;br /&gt;
Team iQuick also has a PPA with the latest ALSA drivers and Ubuntu Audio Dev PPA has the necessary kernel modules for Lucid (What XBMC-Live is based on).&lt;br /&gt;
&lt;br /&gt;
 add-apt-repository ppa:team-iquik/alsa&lt;br /&gt;
 add-apt-repository ppa:ubuntu-audio-dev/ppa&lt;br /&gt;
 apt-get update&lt;br /&gt;
 apt-get upgrade&lt;br /&gt;
 apt-get install linux-alsa-driver-modules-$(uname -r) --force-yes&lt;br /&gt;
&lt;br /&gt;
Or if you haven&#039;t yet installed ALSA:&lt;br /&gt;
&lt;br /&gt;
 apt-get install alsa-base alsa-utils linux-alsa-driver-modules-$(uname -r)&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
Compiling from source:&lt;br /&gt;
&lt;br /&gt;
ALSA 1.0.23 contains the new drivers. You can download, compile, and install it without further additions, and proceed to configuration. The drivers are also included with the 2.6.34 Linux kernel; users of this kernel should be able to skip straight to configuration as long as the &amp;lt;tt&amp;gt;snd_hda_codec_nvhdmi&amp;lt;/tt&amp;gt; module (and its dependencies) are available.&lt;br /&gt;
&lt;br /&gt;
In general, you can choose to [http://www.alsa-project.org/main/index.php/Download install ALSA from source] or use the [http://ubuntuforums.org/showthread.php?p=6589810 ALSA Upgrade Script]. Alternatively, you can find updated packages for your distribution. Note that only the &#039;&#039;drivers&#039;&#039; from 1.0.23 or later are required; updating the ALSA userspace tools is optional.&lt;br /&gt;
&lt;br /&gt;
Ubuntu users make sure to remove the &amp;lt;tt&amp;gt;linux-backports-modules-alsa-`uname -r`&amp;lt;/tt&amp;gt; package or your newly compiled ALSA drivers will be ignored.&lt;br /&gt;
&lt;br /&gt;
== Setting Module Options ==&lt;br /&gt;
You may need to set options in &amp;lt;tt&amp;gt;/etc/modprobe.d/sound.conf&amp;lt;/tt&amp;gt; depending on your card. The general format is:&lt;br /&gt;
&lt;br /&gt;
 options snd-hda-intel &#039;&#039;OPTIONS&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Please list your card and working module options below, along with the working device(s). Note that these options may change with future revisions and refinements to the drivers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:100%;&amp;quot;&lt;br /&gt;
! nVidia GPU !! Manufacturer/Model        !! Options                                 !! Best/working device (X=Card #)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || Point of View GF G210     || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xffff,0xfff2&amp;lt;/tt&amp;gt; || plughw:X,7 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || MSI N210 MD512H           || &amp;lt;tt&amp;gt;enable_msi=0&amp;lt;/tt&amp;gt;                   || plughw:X,7 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || Asus EN210                || no options needed with a current alsa snapshot || plughw:X,7 (PCM, multichannel PCM, bitsteam (DD/DD-EX/DTS/DTS-ES)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || Club 3D CGNX-212LI        || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || plughw:X,7 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || Galaxy G210 PCI-E 512M    || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || hw:X,3 (6 channels)&lt;br /&gt;
|-&lt;br /&gt;
| G210       || EVGA 512-P3-1213-LR       || &amp;lt;tt&amp;gt;probe_mask=2&amp;lt;/tt&amp;gt; || plughw:X,3 (confirmed 2ch PCM, 6ch AC3 bitstream)&lt;br /&gt;
|-&lt;br /&gt;
| GT220       || Asus BRAVO 220 SILENT/DI/1GD2(LP)  || no options needed with a current alsa snapshot || plughw:X,7 (PCM, multichannel PCM, bitsteam (DD/DD-EX/DTS/DTS-ES)&lt;br /&gt;
|-&lt;br /&gt;
| GT220      || Zontac ZT-20201-10L GT220 || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || plughw:X,3 (6 channels)&lt;br /&gt;
|-&lt;br /&gt;
| GT220      || ASUS ENGT220/DI/1GD2(LP)  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || hw:X,3 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| GT220      || ASUS ENGT220/G/DI/1GD3(LP)/A  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || hw:X,3 (PCM, multichannel PCM, bitstream (DD/DD-EX/DTS/DTS-ES)&lt;br /&gt;
|-&lt;br /&gt;
| GT220      || HP Pavilion Elite HPE-141F  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xffff,0xfff2&amp;lt;/tt&amp;gt; || hw:X,3 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| GT210/GT220/GT240 || Any GT210/GT220/GT240  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xffff,0xfff2&amp;lt;/tt&amp;gt; || plughw:X,3 (PCM, multichannel PCM, bitsteam (DD/DD-EX/DTS/DTS-ES))&lt;br /&gt;
|-&lt;br /&gt;
| GT240      || MSI N240GT-MD1G  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xffff,0xfff2&amp;lt;/tt&amp;gt; || hw:X,3 (only stereo confirmed)&lt;br /&gt;
|-&lt;br /&gt;
| GT240      || ASUS ENGT240/DI/512MD5/A  || &amp;lt;tt&amp;gt;enable_msi=0&amp;lt;/tt&amp;gt; || plughw:X,7 (only stereo confirmed)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| GT240      || Zotac ZEGT240/DI/1024  || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xfff2&amp;lt;/tt&amp;gt; || plughw:X,3&lt;br /&gt;
|-&lt;br /&gt;
| ION-2      || Asus AT5IONT-I || &amp;lt;tt&amp;gt;enable_msi=0 probe_mask=0xffff,0xfff2&amp;lt;/tt&amp;gt; || plughw:X,3&lt;br /&gt;
|-&lt;br /&gt;
| ION-2      || Jetway Mini-Top || &amp;lt;tt&amp;gt;enable_msi=0&amp;lt;/tt&amp;gt; || plughw:X,7&lt;br /&gt;
|-&lt;br /&gt;
| ION-2      || Asus S1-AT5NM10E ||  no options needed with a current alsa snapshot || hw:X,7 (6 channels)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* I&#039;m asserting that any GT210/GT220/GT240 should use plughw or plug to allow AC3 passthru. I&#039;m not an alsa expert but the following link suggests plug should be used. However I found this info after getting it working with plughw and I&#039;m loath to break a working system to test it (volunteers?). [http://www.alsa-project.org/main/index.php/DeviceNames Alsa Recommened DeviceNames]&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve set your module options, proceed to &amp;quot;PulseAudio Configuration&amp;quot; (if applicable) or &amp;quot;Finishing Configuration&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== If that doesn&#039;t work... ===&lt;br /&gt;
if probe_mask doesn&#039;t work for you (it didn&#039;t for me, one boot my GT220 came up first instead of second, but next reboot it came up second without me touching the probe_mask parameter, you can try this (which works reliably for me):&lt;br /&gt;
&lt;br /&gt;
 options snd-hda-intel enable_msi=0 index=-2&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 options snd-hda-intel enable_msi=0 index=1&lt;br /&gt;
&lt;br /&gt;
The first one tells snd-hda-intel &amp;quot;don&#039;t grab index 0&amp;quot;, while the second one says &amp;quot;grab index 1&amp;quot; (so even if you disable your on-board card, your GT220 is still going to be hw:1,7)&lt;br /&gt;
&lt;br /&gt;
I have to make a &#039;&#039;&#039;BIG NOTE&#039;&#039;&#039; that I don&#039;t have another Nvidia sound card on the motherboard, and that&#039;s why the above works for me. It won&#039;t work if you have an integrated nvidia sound AND a GT220.&lt;br /&gt;
&lt;br /&gt;
For the case with Nvidia motherboard audio + GT210/GT220/GT240 HDMI don&#039;t be discouraged by the note above. I added the &amp;quot;enable_msi=0 probe_mask=0xffff,0xfff2&amp;quot; to /etc/modprobe.d/alsa-base.conf (Ubuntu 9.04) but I&#039;m not 100% sure that&#039;s even necessary with 1.0.23. After that my HDMI audio showed up as plughw:2,3.&lt;br /&gt;
&lt;br /&gt;
If multiple nVidia devices still show up with the recommended probe_mask, you may need to adjust it. More information about selecting the correct parameters for this option can be found in [http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/HD-Audio.html#_codec_probing_problem Takashi Iwai&#039;s documentation for the High-Definition Audio drivers].&lt;br /&gt;
&lt;br /&gt;
== XBMC Configuration ==&lt;br /&gt;
It may happen that even the PulseAudio configuration doesn&#039;t work. For example with the Point of View GeForce G210. In this case, simply set up the module options as described above, and then go into the XBMC Settings -&amp;gt; System -&amp;gt; Audio, select a custom device for audio and insert plughw:X,7. The audio should now work!&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Configuration ==&lt;br /&gt;
If using PulseAudio, add the following line to /etc/pulse/default.pa:&lt;br /&gt;
&lt;br /&gt;
 load-module module-alsa-sink device=hw:1,3&lt;br /&gt;
&lt;br /&gt;
Where 1,3 is card#,device# for the nVidia HDMI output given by &amp;lt;tt&amp;gt;aplay -l&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Finishing Installation ==&lt;br /&gt;
Now, reboot your system. Using &amp;lt;tt&amp;gt;`alsamixer&#039;&amp;lt;/tt&amp;gt;, select your nVidia card (select it from the F6 menu, or use the &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt; option) and unmute the S/PDIF output (press &amp;quot;m&amp;quot;; the box should change from &amp;quot;MM&amp;quot; to &amp;quot;OO&amp;quot;.) Enjoy!&lt;br /&gt;
&lt;br /&gt;
If you have no sound, you should ensure that your user is a member of the &amp;quot;audio&amp;quot; group:&lt;br /&gt;
&lt;br /&gt;
 $ groups&lt;br /&gt;
 adm dialout cdrom &#039;&#039;&#039;audio&#039;&#039;&#039; video plugdev mythtv lpadmin&lt;br /&gt;
&lt;br /&gt;
Consult your distributions&#039; documentation to determine how to add users to groups.&lt;br /&gt;
&lt;br /&gt;
If you still have no sound, you can try editing/creating /etc/asound.conf:&lt;br /&gt;
 &lt;br /&gt;
 pcm.!default hdmi:NVidia&lt;br /&gt;
 pcm:iec958 hdmi:NVidia&lt;br /&gt;
&lt;br /&gt;
Ensure that &amp;lt;tt&amp;gt;$HOME/.asoundrc&amp;lt;/tt&amp;gt; is empty, does not exist, or does not override these settings. Reboot.&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up HDMI audio on GeForce GT210, GT220, or GT240|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:HOW-TO:Set_up_audio_over_HDMI_on_nVidia_GeForce/nForce_controller&amp;diff=79550</id>
		<title>Archive:HOW-TO:Set up audio over HDMI on nVidia GeForce/nForce controller</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:HOW-TO:Set_up_audio_over_HDMI_on_nVidia_GeForce/nForce_controller&amp;diff=79550"/>
		<updated>2014-10-13T17:33:28Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{outdated|These instructions are likely not compatible with &#039;&#039;&#039;Frodo&#039;&#039;&#039; [[AudioEngine]] builds|&amp;lt;big&amp;gt;NOTICE&amp;lt;/big&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;All the information described below, taken from XBMC and Ubuntu forum&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{note|This method was tested on ASUS P5N7A-VM motherboard [GeForce 9300 / nForce 730i] but it&#039;s believed to be working for any nVidia chipset that supports audio over HDMI. Also confirmed to work on ASUS M3N78-EM motherboard [nVidia GeForce 8300]. This method has also been confirmed working for ASUS AT3IONT-I Deluxe edition. For ASUS M78SM-S2H [nVidia GeForce 8200], updating to NVidia driver 310.19 and unmuting S/PDIF 1 was sufficient using XBMCbuntu &amp;quot;Eden&amp;quot; (Lubuntu 11.10 Oneiric Ocelot)}}&lt;br /&gt;
* This method works pretty well with the default installation of ALSA v1.0.22 (as of Ubuntu 10.04, lucid). There is no need to upgrade ALSA with the alsa-upgrade script. &lt;br /&gt;
* This guide configures ALSA, you should remove pulseaudio first.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get remove pulseaudio&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, check which ALSA playback devices you have, you can use this command:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
aplay -l&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;xbmc@htpc:~$ aplay -l&lt;br /&gt;
 **** List of PLAYBACK Hardware Devices ****&lt;br /&gt;
 card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]&lt;br /&gt;
   Subdevices: 1/1&lt;br /&gt;
   Subdevice #0: subdevice #0&lt;br /&gt;
 card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]&lt;br /&gt;
   Subdevices: 1/1&lt;br /&gt;
   Subdevice #0: subdevice #0&lt;br /&gt;
 card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]&lt;br /&gt;
   Subdevices: 0/1&lt;br /&gt;
   Subdevice #0: subdevice #0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The device is specified as hw:(card),(device). The sample above shows device 3 is labeled &amp;quot;NVIDIA HDMI&amp;quot;; we are gonna use that and it would be called hw:0,3.&lt;br /&gt;
&lt;br /&gt;
Before continuing, run&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
alsamixer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
then make sure &amp;quot;S/PDIF 1&amp;quot; is not set to &#039;&#039;&#039;MM&#039;&#039;&#039; (Mute). If it is, press M to unmute that channel.&lt;br /&gt;
&#039;&#039;This was enough to make the sound work on my card. --[[User:Sim175|Sim175]] 01:37, 5 August 2011 (UTC)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create the file &amp;quot;/etc/asound.conf&amp;quot;, which configures the ALSA library for the user.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano /etc/asound.conf&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
pcm.!hdmi-remap {&lt;br /&gt;
  type asym&lt;br /&gt;
  playback.pcm {&lt;br /&gt;
    type plug&lt;br /&gt;
    slave.pcm &amp;quot;remap-surround71&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!remap-surround71 {&lt;br /&gt;
  type route&lt;br /&gt;
  slave.pcm &amp;quot;hw:0,3&amp;quot;&lt;br /&gt;
  ttable {&lt;br /&gt;
    0.0= 1&lt;br /&gt;
    1.1= 1&lt;br /&gt;
    2.4= 1&lt;br /&gt;
    3.5= 1&lt;br /&gt;
    4.2= 1&lt;br /&gt;
    5.3= 1&lt;br /&gt;
    6.6= 1&lt;br /&gt;
    7.7= 1&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{note|This file only has an effect on the ALSA library if it is included by the user’s .asoundrc file, located in the user’s home directory.}}&lt;br /&gt;
&lt;br /&gt;
The ttable section entries match sound channels (eg front left, centre, sub woofer) to speakers. You may find that you need to change the entries above if you find that your speakers are not playing the right channels afterwards. In particular you may need to change 2.4 to 2.2 and 4.2 to 4.4, as well as 3.5 to 3.3 and 5.3 to 3.5&lt;br /&gt;
&lt;br /&gt;
Next, add the following lines to the end of the &amp;quot;/etc/modprobe.d/alsa-base.conf&amp;quot; file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Audio over HDMI&lt;br /&gt;
options snd-hda-intel model=6stack-dig&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The commands below should do the job:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo su -&lt;br /&gt;
echo &amp;quot;# Audio over HDMI&amp;quot; &amp;gt;&amp;gt; /etc/modprobe.d/alsa-base.conf&lt;br /&gt;
echo &amp;quot;options snd-hda-intel model=6stack-dig&amp;quot; &amp;gt;&amp;gt; /etc/modprobe.d/alsa-base.conf&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now change to &amp;quot;/usr/share/alsa/cards&amp;quot; and replace the default HDA-Intel.conf with the one at [http://pastebin.com/f2e38265 pastebin]. Don&#039;t forget to make a backup copy of the original one before proceeding, in case you need it in future. The command set below should do the job (you will have do this as &amp;quot;root&amp;quot;): &lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo su -&lt;br /&gt;
cd /usr/share/alsa/cards&lt;br /&gt;
mv HDA-Intel.conf HDA-Intel.conf-ORIG&lt;br /&gt;
curl &amp;quot;http://pastebin.com/download.php?i=f2e38265&amp;quot; | tr -d \\r &amp;gt; HDA-Intel.conf&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, things will only work if there is a &amp;quot;.asoundrc&amp;quot; file in users&#039; home directory; in this case the user is xbmc. So fire up a terminal and create one with the following (assuming the HDMI device is specified as hw:0,3, change it to suit your configuration):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo nano ~xbmc/.asoundrc&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
pcm.dmixer {&lt;br /&gt;
   type dmix&lt;br /&gt;
   ipc_key 1024&lt;br /&gt;
   ipc_key_add_uid false&lt;br /&gt;
   ipc_perm 0660&lt;br /&gt;
   slave {&lt;br /&gt;
      pcm &amp;quot;hw:0,3&amp;quot;&lt;br /&gt;
      rate 48000&lt;br /&gt;
      channels 2&lt;br /&gt;
      format S32_LE&lt;br /&gt;
      period_time 0&lt;br /&gt;
      period_size 1024&lt;br /&gt;
      buffer_time 0&lt;br /&gt;
      buffer_size 4096&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
pcm.!default {&lt;br /&gt;
   type plug&lt;br /&gt;
   slave.pcm &amp;quot;dmixer&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Make sure that master volume and default PCM devices are not muted.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo /usr/bin/amixer -q -c 0 sset &#039;Master&#039;,0 unmute &amp;amp;&amp;amp; /usr/bin/amixer -q -c 0 sset &#039;Master&#039;,0 100 &lt;br /&gt;
sudo /usr/bin/amixer -q -c 0 sset &#039;IEC958 Default PCM&#039;,0 unmute&lt;br /&gt;
sudo /usr/bin/amixer -q -c 0 sset &#039;IEC958&#039;,0 unmute &amp;amp;&amp;amp; /usr/bin/amixer -q -c 0 sset &#039;IEC958&#039;,1 unmute&lt;br /&gt;
sudo alsactl store 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is the time to reboot the system to make changes take the effect. When you log back in, you can test the speakers with &amp;quot;speaker-test&amp;quot; command like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
speaker-test -D hdmi -c6 -r19200 -FS32_LE&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The output should be something like the following. Although if you get a &amp;quot;Playback open error: -16,Device or resource busy&amp;quot; message, go back into XBMC and double check your sound, it may already be working through HDMI ;-)&lt;br /&gt;
 xbmc@htpc:~$ speaker-test -D hdmi -c6 -r19200 -FS32_LE&lt;br /&gt;
 speaker-test 1.0.23&lt;br /&gt;
 Playback device is hdmi&lt;br /&gt;
 Stream parameters are 19200Hz, S32_LE, 6 channels&lt;br /&gt;
 Using 16 octaves of pink noise&lt;br /&gt;
 Rate set to 19200Hz (requested 19200Hz)&lt;br /&gt;
 Buffer size range from 6 to 544&lt;br /&gt;
 Period size range from 3 to 273&lt;br /&gt;
 Using max buffer size 544&lt;br /&gt;
 Periods = 4&lt;br /&gt;
 was set period_size = 108&lt;br /&gt;
 was set buffer_size = 544&lt;br /&gt;
  0 - Front Left&lt;br /&gt;
  4 - Centre&lt;br /&gt;
  1 - Front Right&lt;br /&gt;
  3 - Rear Right&lt;br /&gt;
  2 - Rear Left&lt;br /&gt;
  5 - LFE&lt;br /&gt;
&lt;br /&gt;
It appeared to be important that &amp;quot;Audio Settings&amp;quot; in the XBMC needs to be modified as well. Go to &amp;quot;Settings &amp;gt; System &amp;gt; Audio&amp;quot; and make the entries like the picture below.&lt;br /&gt;
 &lt;br /&gt;
[[File:Xbmc_audio_settings.jpg]]&lt;br /&gt;
{{|note|The values for the &amp;quot;Custom audio device&amp;quot; are case-sensitive, should be exactly as it&#039;s written. Always use the default skin for basic system setup. Now try playing a video or audio file, preferably one with multiple channels, and see If you find you have sound. If you dont, try changing the settings, for example changing Audio output to HDMI. You can also try changing the custom passthrough device and audio output device entries to hw:0,3 or whatever matches your system as explained above under the explanation of aplay -l output}}&lt;br /&gt;
&lt;br /&gt;
You may notice that the mp3 playback is faster than that usual. If that happens put these in the advancedsettings.xml and should fix the problem.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;audio&amp;gt;&lt;br /&gt;
        &amp;lt;resample&amp;gt;48000&amp;lt;/resample&amp;gt;&lt;br /&gt;
  &amp;lt;/audio&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If everything goes well, by now you are listening to the audio over HDMI. If you have sound, but find sounds are not coming out of the correct speakers, check the ttable entry mappings in ./.asoundrc Enjoy!!&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up audio over HDMI on nVidia GeForce/nForce controller|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_PS3_BD_Remote&amp;diff=79549</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=79549"/>
		<updated>2014-10-13T17:32:03Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This HOW-TO explains how to setup 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.xbmc.org/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 setup 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.xbmc.org/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 (in minutes) for this device&lt;br /&gt;
IdleTimeout=1   &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;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up PS3 BD Remote|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_Streamzap_PC_Remote_for_Linux&amp;diff=79548</id>
		<title>Archive:Set up Streamzap PC Remote for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Set_up_Streamzap_PC_Remote_for_Linux&amp;diff=79548"/>
		<updated>2014-10-13T17:30:56Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is all about getting the &#039;&#039;&#039;[[Streamzap PC Remote]]&#039;&#039;&#039; to work completely with XBMC. Currently it includes only information on how to configure Streamzap on Linux.&lt;br /&gt;
&lt;br /&gt;
== Remote button configuration ==&lt;br /&gt;
&lt;br /&gt;
In this tutorial all buttons have mapped to their matching functionality in XBMC. However, since the remote has no display, info, or title button those have been mapped to the color buttons on the bottom of the remote. Feel free to change them as necessary.&lt;br /&gt;
&lt;br /&gt;
Here are the mappings:&lt;br /&gt;
* Display Command: YELLOW button&lt;br /&gt;
* Title Command: RED button&lt;br /&gt;
* Info Command: GREEN Button &lt;br /&gt;
* Blue Command: BLUE Button&lt;br /&gt;
&lt;br /&gt;
== Linux setups ==&lt;br /&gt;
&lt;br /&gt;
There are two ways you can set up Streamzap to work with XBMC on Linux.&lt;br /&gt;
* LIRC&lt;br /&gt;
* inputlirc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Important Note&#039;&#039;&#039;:&amp;lt;br /&amp;gt;&lt;br /&gt;
If you run LIRC and Inputlirc they will conflict when it comes to ownership /dev/lircd. That is service that runs last gets control of it (and on Ubuntu that services always seems to be inputlirc). You can check it out for yourself by restarting either service and the doing ls -la /dev/lircd. Please make sure only one is running at one time.&lt;br /&gt;
&lt;br /&gt;
== Setups tested ==&lt;br /&gt;
&lt;br /&gt;
LIRCD:&lt;br /&gt;
* Gentoo and XBMC 9.11 (Camelot) and official app-misc/lirc-0.8.7 from portage&lt;br /&gt;
* Ubuntu 10.04 (Lucid Lynx) and XBMC 9.11 (Camelot)&lt;br /&gt;
* Ubuntu 10.10 (Maverick Meerkat) and XBMC 10.0 (Dharma RC1) [buggy, but has workaround, see below]&lt;br /&gt;
&lt;br /&gt;
Inputlirc:&lt;br /&gt;
* Ubuntu 10.10 (Maverick Meerkat)and XBMC 10.0 (Dharma RC1) [buggy, no workaround yet, see below]&lt;br /&gt;
&lt;br /&gt;
== Drivers ==&lt;br /&gt;
Streamzap PC Remote is well supported in linux. However, I have seen drivers named differently. Here are the variations I&#039;ve run into:&lt;br /&gt;
* lirc_streamzap&lt;br /&gt;
* streamzap (new ir_core implementation?)&lt;br /&gt;
* rc_streamzap (new ir_core implementation?)&lt;br /&gt;
&lt;br /&gt;
The configuration of LIRCD I&#039;ve used in the past combine streamzap with lirc_dev.&lt;br /&gt;
&lt;br /&gt;
== Bugs and workarounds ==&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 10.10 (Maverick Meerkat), pressing any button on the remote will send the event twice to the system. It seems to have been caused by including both the new and the old drivers in the kernel and each of the drivers sending the events to /dev/input/*.&lt;br /&gt;
&lt;br /&gt;
Bug has been filed and confirmed, but the fix is still pending: [https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/663651 https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/663651]&amp;lt;br /&amp;gt;&lt;br /&gt;
There is also a forum thread on this: http://ubuntuforums.org/showthread.php?s=68f4cf4da940af13a8e70457b034938d&amp;amp;t=1595018&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workarounds&#039;&#039;&#039;:&lt;br /&gt;
* LIRD: Using a LIRCD with a socket configuration bypasses the problem of duplicate events. &#039;&#039;&#039;However&#039;&#039;&#039;, if Streamzap still gets configured as keyboard input device it send keystrokes to the system. This can be fixed by disabling the Streamzap as keyboard as described below.&lt;br /&gt;
* Inputlirc: Disabling XInput device does not work when using Inputlirc since it uses the same event input system and gets the event twice anyways.&lt;br /&gt;
&lt;br /&gt;
== Xinput: Preventing Streamzap from becoming a keyboard ==&lt;br /&gt;
&lt;br /&gt;
This applies to people using Xorg 1.8 or higher (i.e. Ubuntu 10.10 (Maverick Meerkat) users)&lt;br /&gt;
&lt;br /&gt;
Xorg 1.8 (and on) automatically scans attached devices using udev and add them as an input device (using Xinput). This creates a problem because Streamzap is then detected and added as keyboard device, and number of remotes keys are mapped to keyboard keys. For example in fresh install of Ubuntu 10.10 (Maverick Meerkat) the arrow buttons can be using to navigate around, volume and mute buttons control sound and power key pops up the shutdown dialog (other keys might work but I have not tested them).&lt;br /&gt;
&lt;br /&gt;
While this feature is cool it does interfere with using the remote properly with XBMC since it is not integrated with Xorg standard keys (maybe one day?). As such I suggest disabling the remote from being detected/used as a keyboard. There are several solutions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important Note&#039;&#039;&#039;: if you set AutoAddDevices to false in your xorg configuration, you can skip this section&lt;br /&gt;
&lt;br /&gt;
=== Option 1: Disable Streamzap Xinput device usign xorg configuration ===&lt;br /&gt;
&lt;br /&gt;
The correct way to disable Xinput device on Xorg 1.8 and higher is to use one or more of Match* statement and &amp;quot;Option Ignore&amp;quot; in an &amp;quot;Input Class&amp;quot; Section.&lt;br /&gt;
&lt;br /&gt;
The following configuration block needs to to be added to xorg configuration.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
  Identifier &amp;quot;Ignore Streamzap IR&amp;quot;&lt;br /&gt;
  MatchProduct &amp;quot;Streamzap&amp;quot;&lt;br /&gt;
  MatchIsKeyboard &amp;quot;true&amp;quot;&lt;br /&gt;
  Option &amp;quot;Ignore&amp;quot; &amp;quot;true&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are two ways to do it:&lt;br /&gt;
* &#039;&#039;&#039;Recommended:&#039;&#039;&#039; add a 90-streamzap.conf file to a xorg.conf.d directory&lt;br /&gt;
* add the configuration directly to /etx/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;xorg.conf.d locations&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
xorg.conf.d location may vary on your system.&lt;br /&gt;
* Ubuntu 10.10 (Maverick Meerkat): /usr/share/X11/xorg.conf.d&lt;br /&gt;
* Ubuntu 10.04 (Lucid Lynx): /usr/lib/X11/xorg.conf.d &lt;br /&gt;
* ArchLinux: /etc/X11/xorg.conf.d/&lt;br /&gt;
&lt;br /&gt;
So on Ubuntu 10.10 (Maverick Meerkat) run the following command and paste the configuration into the file.&lt;br /&gt;
&lt;br /&gt;
 sudo nano -w /usr/share/X11/xorg.conf.d/90-streamzap.conf&lt;br /&gt;
&lt;br /&gt;
=== Option 2: Disable Streamzap Xinput device on user session start ===&lt;br /&gt;
&lt;br /&gt;
Alternatively the Streamzap Xinput device can be disabled by a script run at login.&lt;br /&gt;
&lt;br /&gt;
The following script disables the Streamzap as an Xinput device. Save it locally as &#039;&#039;&#039;streamzap-xinput-disabler&#039;&#039;&#039; in &#039;&#039;&#039;&amp;lt;SCRIPT_LOCATION&amp;gt;&#039;&#039;&#039;.&amp;lt;br /&amp;gt;&lt;br /&gt;
The script is configured to look for Streamzap device attached to /dev/lirc0, you might need to change it if you have multiple IR Receivers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/bash&lt;br /&gt;
&lt;br /&gt;
REMOTE_DEVICE=/dev/lirc0&lt;br /&gt;
&lt;br /&gt;
namePath=&amp;quot;/sys/`udevadm info -q path -n $REMOTE_DEVICE`/../input*/name&amp;quot;&lt;br /&gt;
xinputLine=`xinput list | grep &amp;quot;$(cat $namePath)&amp;quot;`&lt;br /&gt;
id=`expr substr &amp;quot;$xinputLine&amp;quot; $(expr $(expr index &amp;quot;$xinputLine&amp;quot; &amp;quot;=&amp;quot;) + 1) 100 | awk &#039;{print $1}&#039;`&lt;br /&gt;
propID=`xinput list-props $id | grep Enabled | awk &#039;{print $3}&#039;`&lt;br /&gt;
propID=${propID#&amp;quot;(&amp;quot;}&lt;br /&gt;
propID=${propID%&amp;quot;):&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
xinput set-prop $id $propID 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;small&amp;gt;Borrowed and slightly modified from: [https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/663651/comments/14 https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/663651/comments/14]&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a start up entry for this script in your window manager to run this at start up. GNOME, KDE, XFCE and most WMs have a GUI for that. Alternatively one way to do it is by adding streamzap.desktop in ~/.config/autostart/ with following content. Make sure to replace &#039;&#039;&#039;&amp;lt;SCRIPT_LOCATION&amp;gt;&#039;&#039;&#039; with path you stored the script in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[Desktop Entry]&lt;br /&gt;
Encoding=UTF-8&lt;br /&gt;
Version=0.9.4&lt;br /&gt;
Type=Application&lt;br /&gt;
Name=Streamzap PC Remote Xinput Disabler&lt;br /&gt;
Comment=&lt;br /&gt;
Exec=&amp;lt;SCRIPT_LOCATION&amp;gt;/streamzap-xinput-disabler&lt;br /&gt;
StartupNotify=false&lt;br /&gt;
Terminal=false&lt;br /&gt;
Hidden=false&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Option 3: Use inputlirc to cripple Streamzap Xinput device ===&lt;br /&gt;
&lt;br /&gt;
This a total hack. Not at all recommended. Use it at your own risk.&lt;br /&gt;
&lt;br /&gt;
The premise of this, is that if inputlirc is configured with -g it grabs the input from the devices, specified under EVENTS= setting for inputlirc, so that no other application interferes with it. This way when X initializes the remote will be added as Xinput keyboard but won&#039;t receive any events, hence disabling it. This also means that at the end of the boot LIRC daemon needs restarted so it can take back /dev/lircd from inputlirc, making it the primary LIRC device.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1, First follow the Inputlirc setup exactly as described in [[#Inputlirc]]&lt;br /&gt;
&lt;br /&gt;
Step 2, Add a line to restart the LIRC daemon at the end of the boot sequence so it can take back control by editing /etc/rc.local&lt;br /&gt;
 nano -w /etc/rc.local&lt;br /&gt;
Add following (above exit 0).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service lirc restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== LIRC ==&lt;br /&gt;
&lt;br /&gt;
[http://lirc.org/ LIRC] is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls. The most important part of LIRC is the lircd daemon that will decode IR signals received by the device drivers and provide the information to the system.&lt;br /&gt;
&lt;br /&gt;
LIRC is versatile and can be configured to received from either a simple device node like /dev/lirc0 or from any device in /dev/input/ layer and to write either to a socket or to generate Linux input events. This tutorial currently only covers the default setup of reading from /dev/lirc0 device node and writing to socket /dev/lircd socket.&lt;br /&gt;
&lt;br /&gt;
=== Installation and Configuration ===&lt;br /&gt;
&lt;br /&gt;
Starting with LIRC 0.7.1 Streamzap PC Remote configuration has been included in the base package.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu ====&lt;br /&gt;
&lt;br /&gt;
During the install when prompted to select the IR Receiver please select &amp;quot;Streamzap PC Remote&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install lirc&lt;br /&gt;
&lt;br /&gt;
If LIRC is already installed on your system you need run the following to configure it.&amp;lt;br /&amp;gt;&lt;br /&gt;
Again, when prompted to select the IR Receiver, select &amp;quot;Streamzap PC Remote&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 sudo dpkg-reconfigure lirc&lt;br /&gt;
&lt;br /&gt;
This will automatically setup the following files like so:&lt;br /&gt;
&lt;br /&gt;
/etc/lirc/hardware.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REMOTE=&amp;quot;Streamzap PC Remote&amp;quot;&lt;br /&gt;
REMOTE_MODULES=&amp;quot;lirc_dev streamzap&amp;quot;&lt;br /&gt;
REMOTE_DRIVER=&amp;quot;&amp;quot;&lt;br /&gt;
REMOTE_DEVICE=&amp;quot;/dev/lirc0&amp;quot;&lt;br /&gt;
REMOTE_SOCKET=&amp;quot;&amp;quot;&lt;br /&gt;
REMOTE_LIRCD_CONF=&amp;quot;streamzap/lircd.conf.streamzap&amp;quot;&lt;br /&gt;
REMOTE_LIRCD_ARGS=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
START_LIRCD=&amp;quot;true&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/etc/lirc/lircd.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
#Configuration for the Streamzap PC Remote remote:&lt;br /&gt;
include &amp;quot;/usr/share/lirc/remotes/streamzap/lircd.conf.streamzap&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fixing Ubuntu 10.10 (Maverick Meerkat) Duplicate Keypresses Issue&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 10.10 (Maverick Meerkat), pressing any button on the remote will send the event twice to the system. For more information read this: [[#Bugs and Workarounds]].&lt;br /&gt;
&lt;br /&gt;
The solution is to prevent Streamzap from becoming a keyboard as describe here [[#Xinput: Preventing Streamzap from becoming a keyboard]]&lt;br /&gt;
&lt;br /&gt;
==== Gentoo ====&lt;br /&gt;
&lt;br /&gt;
Add streamzap to LIRC_DEVICES in /etc/make.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
LIRC_DEVICES=&amp;quot;${LIRC_DEVICES} streamzap&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install app-misc/lirc, add it to boot, and run it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
emerge -av app-misc/lirc&lt;br /&gt;
rc-update add lircd default&lt;br /&gt;
/etc/init.d/lircd start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It works out of the box. However if you need to edit the either LIRC or remote configuration, use the following files:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;LIRCD config&#039;&#039;&#039;: /etc/conf.d/lircd &amp;lt;br /&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Streamzap Remote config&#039;&#039;&#039;: /etc/lirc/lircd.conf &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring XBMC ===&lt;br /&gt;
The last thing you need to do is let XBMC know to what buttons to respond.&lt;br /&gt;
This is done by editing a LIRC Map for XBMC.&lt;br /&gt;
&lt;br /&gt;
 nano -w ~/.xbmc/userdata/Lircmap.xml&lt;br /&gt;
&lt;br /&gt;
and pasting the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;lircmap&amp;gt;&lt;br /&gt;
  &amp;lt;remote device=&amp;quot;Streamzap_PC_Remote&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;play&amp;gt;PLAY&amp;lt;/play&amp;gt;&lt;br /&gt;
    &amp;lt;pause&amp;gt;PAUSE&amp;lt;/pause&amp;gt;&lt;br /&gt;
    &amp;lt;stop&amp;gt;STOP&amp;lt;/stop&amp;gt;&lt;br /&gt;
    &amp;lt;forward&amp;gt;&amp;amp;amp;gt;&amp;amp;amp;gt;&amp;lt;/forward&amp;gt;&lt;br /&gt;
    &amp;lt;reverse&amp;gt;&amp;amp;amp;lt;&amp;amp;amp;lt;&amp;lt;/reverse&amp;gt;&lt;br /&gt;
    &amp;lt;left&amp;gt;LEFT&amp;lt;/left&amp;gt;&lt;br /&gt;
    &amp;lt;right&amp;gt;RIGHT&amp;lt;/right&amp;gt;&lt;br /&gt;
    &amp;lt;up&amp;gt;UP&amp;lt;/up&amp;gt;&lt;br /&gt;
    &amp;lt;down&amp;gt;DOWN&amp;lt;/down&amp;gt;&lt;br /&gt;
    &amp;lt;pageplus&amp;gt;CH_UP&amp;lt;/pageplus&amp;gt;&lt;br /&gt;
    &amp;lt;pageminus&amp;gt;CH_DOWN&amp;lt;/pageminus&amp;gt;&lt;br /&gt;
    &amp;lt;select&amp;gt;OK&amp;lt;/select&amp;gt;&lt;br /&gt;
    &amp;lt;back&amp;gt;EXIT&amp;lt;/back&amp;gt;&lt;br /&gt;
    &amp;lt;menu&amp;gt;MENU&amp;lt;/menu&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;RED&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;info&amp;gt;GREEN&amp;lt;/info&amp;gt;&lt;br /&gt;
    &amp;lt;skipplus&amp;gt;&amp;amp;amp;gt;&amp;amp;amp;gt;|&amp;lt;/skipplus&amp;gt;&lt;br /&gt;
    &amp;lt;skipminus&amp;gt;|&amp;amp;amp;lt;&amp;amp;amp;lt;&amp;lt;/skipminus&amp;gt;&lt;br /&gt;
    &amp;lt;display&amp;gt;YELLOW&amp;lt;/display&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;volumeplus&amp;gt;VOL_UP&amp;lt;/volumeplus&amp;gt;&lt;br /&gt;
    &amp;lt;volumeminus&amp;gt;VOL_DOWN&amp;lt;/volumeminus&amp;gt;&lt;br /&gt;
    &amp;lt;mute&amp;gt;MUTE&amp;lt;/mute&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;power&amp;gt;POWER&amp;lt;/power&amp;gt;&lt;br /&gt;
    &amp;lt;blue&amp;gt;BLUE&amp;lt;/blue&amp;gt;&lt;br /&gt;
    &amp;lt;one&amp;gt;1&amp;lt;/one&amp;gt;&lt;br /&gt;
    &amp;lt;two&amp;gt;2&amp;lt;/two&amp;gt;&lt;br /&gt;
    &amp;lt;three&amp;gt;3&amp;lt;/three&amp;gt;&lt;br /&gt;
    &amp;lt;four&amp;gt;4&amp;lt;/four&amp;gt;&lt;br /&gt;
    &amp;lt;five&amp;gt;5&amp;lt;/five&amp;gt;&lt;br /&gt;
    &amp;lt;six&amp;gt;6&amp;lt;/six&amp;gt;&lt;br /&gt;
    &amp;lt;seven&amp;gt;7&amp;lt;/seven&amp;gt;&lt;br /&gt;
    &amp;lt;eight&amp;gt;8&amp;lt;/eight&amp;gt;&lt;br /&gt;
    &amp;lt;nine&amp;gt;9&amp;lt;/nine&amp;gt;&lt;br /&gt;
    &amp;lt;zero&amp;gt;0&amp;lt;/zero&amp;gt;&lt;br /&gt;
  &amp;lt;/remote&amp;gt;&lt;br /&gt;
&amp;lt;/lircmap&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In lirc 0.9 the names of the keys changed, so you should used the following configuration for the LIRC MAP:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;lircmap&amp;gt;&lt;br /&gt;
  &amp;lt;remote device=&amp;quot;Streamzap_PC_Remote&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;play&amp;gt;KEY_PLAY&amp;lt;/play&amp;gt;&lt;br /&gt;
    &amp;lt;pause&amp;gt;KEY_PAUSE&amp;lt;/pause&amp;gt;&lt;br /&gt;
    &amp;lt;stop&amp;gt;KEY_STOP&amp;lt;/stop&amp;gt;&lt;br /&gt;
    &amp;lt;forward&amp;gt;KEY_FORWARD&amp;lt;/forward&amp;gt;&lt;br /&gt;
    &amp;lt;reverse&amp;gt;KEY_REWIND&amp;lt;/reverse&amp;gt;&lt;br /&gt;
    &amp;lt;left&amp;gt;KEY_LEFT&amp;lt;/left&amp;gt;&lt;br /&gt;
    &amp;lt;right&amp;gt;KEY_RIGHT&amp;lt;/right&amp;gt;&lt;br /&gt;
    &amp;lt;up&amp;gt;KEY_UP&amp;lt;/up&amp;gt;&lt;br /&gt;
    &amp;lt;down&amp;gt;KEY_DOWN&amp;lt;/down&amp;gt;&lt;br /&gt;
    &amp;lt;pageplus&amp;gt;KEY_CHANNELUP&amp;lt;/pageplus&amp;gt;&lt;br /&gt;
    &amp;lt;pageminus&amp;gt;KEY_CHANNELDOWN&amp;lt;/pageminus&amp;gt;&lt;br /&gt;
    &amp;lt;select&amp;gt;KEY_OK&amp;lt;/select&amp;gt;&lt;br /&gt;
    &amp;lt;back&amp;gt;KEY_EXIT&amp;lt;/back&amp;gt;&lt;br /&gt;
    &amp;lt;menu&amp;gt;KEY_MENU&amp;lt;/menu&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;KEY_RED&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;info&amp;gt;KEY_GREEN&amp;lt;/info&amp;gt;&lt;br /&gt;
    &amp;lt;skipplus&amp;gt;KEY_NEXT&amp;lt;/skipplus&amp;gt;&lt;br /&gt;
    &amp;lt;skipminus&amp;gt;KEY_PREVIOUS&amp;lt;/skipminus&amp;gt;&lt;br /&gt;
    &amp;lt;display&amp;gt;KEY_YELLOW&amp;lt;/display&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;KEY_RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;volumeplus&amp;gt;KEY_VOLUMEUP&amp;lt;/volumeplus&amp;gt;&lt;br /&gt;
    &amp;lt;volumeminus&amp;gt;KEY_VOLUMEDOWN&amp;lt;/volumeminus&amp;gt;&lt;br /&gt;
    &amp;lt;mute&amp;gt;KEY_MUTE&amp;lt;/mute&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;KEY_RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;power&amp;gt;KEY_POWER&amp;lt;/power&amp;gt;&lt;br /&gt;
    &amp;lt;blue&amp;gt;KEY_BLUE&amp;lt;/blue&amp;gt;&lt;br /&gt;
    &amp;lt;one&amp;gt;KEY_1&amp;lt;/one&amp;gt;&lt;br /&gt;
    &amp;lt;two&amp;gt;KEY_2&amp;lt;/two&amp;gt;&lt;br /&gt;
    &amp;lt;three&amp;gt;KEY_3&amp;lt;/three&amp;gt;&lt;br /&gt;
    &amp;lt;four&amp;gt;KEY_4&amp;lt;/four&amp;gt;&lt;br /&gt;
    &amp;lt;five&amp;gt;KEY_5&amp;lt;/five&amp;gt;&lt;br /&gt;
    &amp;lt;six&amp;gt;KEY_6&amp;lt;/six&amp;gt;&lt;br /&gt;
    &amp;lt;seven&amp;gt;KEY_7&amp;lt;/seven&amp;gt;&lt;br /&gt;
    &amp;lt;eight&amp;gt;KEY_8&amp;lt;/eight&amp;gt;&lt;br /&gt;
    &amp;lt;nine&amp;gt;KEY_9&amp;lt;/nine&amp;gt;&lt;br /&gt;
    &amp;lt;zero&amp;gt;KEY_0&amp;lt;/zero&amp;gt;&lt;br /&gt;
  &amp;lt;/remote&amp;gt;&lt;br /&gt;
&amp;lt;/lircmap&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Inputlirc ==&lt;br /&gt;
&lt;br /&gt;
Inputlirc is a daemon which maps remote events as given to it by the driver to linux /dev/input/event*&amp;quot; system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Attention Ubuntu 10.10 (Maverick Meerkat) users&#039;&#039;&#039;. There is currently a bug with using inputlirc with no workaround.See [[#Bugs and Workarounds]] for more details.&lt;br /&gt;
&lt;br /&gt;
=== UDEV Setup ===&lt;br /&gt;
First you have to create an own udev rule to ensure, that your device nodes are always the same.&lt;br /&gt;
&lt;br /&gt;
We get the physical address from &#039;&#039;/proc/bus/input/devices&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
 cat /proc/bus/input/devices&lt;br /&gt;
&lt;br /&gt;
the output is something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
I: Bus=0000 Vendor=0000 Product=0000 Version=0000&lt;br /&gt;
N: Name=&amp;quot;Streamzap PC Remote Infrared Receiver (0e9c:0000)&amp;quot;&lt;br /&gt;
P: Phys=usb-0000:00:06.0-1/input0&lt;br /&gt;
S: Sysfs=/devices/virtual/rc/rc0/input4&lt;br /&gt;
U: Uniq=&lt;br /&gt;
H: Handlers=kbd event4 &lt;br /&gt;
B: EV=100003&lt;br /&gt;
B: KEY=3ff 0 0 0 fc000 1 0 0 0 0 18000 4180 c0000801 9e1680 0 0 0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What we need are the values behind &#039;&#039;Phys=&#039;&#039;. In my case it is &#039;&#039;&#039;usb-0000:00:06.0-1/input0&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Do not worry about any second device appearing for the streamzap with a Phys= like&#039;&#039; &#039;&#039;&#039;/input0&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we write a new rules file for udev:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/udev/rules.d/10-irremote.rules&lt;br /&gt;
&lt;br /&gt;
and put the following content in:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;,ATTRS{phys}==&amp;quot;usb-0000:00:06.0-1/input0&amp;quot;,SYMLINK=&amp;quot;input/irremote0&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now restart udev and trigger a new discovery:&lt;br /&gt;
&lt;br /&gt;
 sudo restart udev&lt;br /&gt;
 sudo udevadm trigger&lt;br /&gt;
&lt;br /&gt;
Under /dev/input should now be a symlink call irremote0:&lt;br /&gt;
&lt;br /&gt;
 ls /dev/input&lt;br /&gt;
&lt;br /&gt;
=== Inputlirc Installation and Configuraiton ===&lt;br /&gt;
&lt;br /&gt;
First you have to install inputlirc and lirc. &#039;&#039;&#039;Please note that here we only need the lirc package because it contains &amp;quot;irw&amp;quot; and other utils. Please do not configure it for the Streamzap PC Remote.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install inputlirc lirc&lt;br /&gt;
&lt;br /&gt;
Then you need to configure it properly:&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/default/inputlirc&lt;br /&gt;
&lt;br /&gt;
and put the following content in:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EVENTS=&amp;quot;/dev/input/irremote0&amp;quot;&lt;br /&gt;
OPTIONS=&amp;quot;-c -g -m 0&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The entries under EVENTS are the devices we created via udev.&lt;br /&gt;
The OPTION entries mean the following:&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
!-g&lt;br /&gt;
|Grabs the input from the devices, specified under EVENTS, so that no other application interferes with it.&lt;br /&gt;
|-&lt;br /&gt;
!-m 0&lt;br /&gt;
|By default, all keycodes below 88 are filtered out. This setting ensures, that all keycodes are captured&lt;br /&gt;
|-&lt;br /&gt;
!-c&lt;br /&gt;
|Because some of the keys on the remote are mapped to keys with modifiers, this option maps this codes to single events.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now restart inputlirc&lt;br /&gt;
 sudo /etc/init.d/inputlirc restart&lt;br /&gt;
&lt;br /&gt;
You can now test the remote via &#039;irw&#039;:&lt;br /&gt;
 irw /dev/lircd&lt;br /&gt;
&lt;br /&gt;
This is some sample output from irw when pressing buttons:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6a 0 KEY_RIGHT irremote0&lt;br /&gt;
6c 0 KEY_DOWN irremote0&lt;br /&gt;
160 0 KEY_OK irremote0&lt;br /&gt;
8b 0 KEY_MENU irremote0&lt;br /&gt;
ae 0 KEY_EXIT irremote0&lt;br /&gt;
191 0 KEY_BLUE irremote0&lt;br /&gt;
18e 0 KEY_RED irremote0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: You may see &#039;&#039;&#039;/dev/input/irremote0&#039;&#039;&#039; instead of &#039;&#039;&#039;irremote0&#039;&#039;&#039;. If so, that is name &#039;&#039;&#039;inputlirc&#039;&#039;&#039; knows it as and is what you will need to put XBMC&#039;s &#039;&#039;&#039;Lircmap.xml&#039;&#039;&#039; instead of just &#039;&#039;&#039;irremote0&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Configuring XBMC ===&lt;br /&gt;
The last thing you need to do is let XBMC know to what buttons to respond. This is done by editing a LIRC Map for XBMC.&lt;br /&gt;
&lt;br /&gt;
 nano -w ~/.xbmc/userdata/Lircmap.xml&lt;br /&gt;
&lt;br /&gt;
and pasting in the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;lircmap&amp;gt;&lt;br /&gt;
  &amp;lt;remote device=&amp;quot;irremote0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;play&amp;gt;KEY_PLAY&amp;lt;/play&amp;gt;&lt;br /&gt;
    &amp;lt;pause&amp;gt;KEY_PAUSE&amp;lt;/pause&amp;gt;&lt;br /&gt;
    &amp;lt;stop&amp;gt;KEY_STOP&amp;lt;/stop&amp;gt;&lt;br /&gt;
    &amp;lt;forward&amp;gt;KEY_FASTFORWARD&amp;lt;/forward&amp;gt;&lt;br /&gt;
    &amp;lt;reverse&amp;gt;KEY_REWIND&amp;lt;/reverse&amp;gt;&lt;br /&gt;
    &amp;lt;left&amp;gt;KEY_LEFT&amp;lt;/left&amp;gt;&lt;br /&gt;
    &amp;lt;right&amp;gt;KEY_RIGHT&amp;lt;/right&amp;gt;&lt;br /&gt;
    &amp;lt;up&amp;gt;KEY_UP&amp;lt;/up&amp;gt;&lt;br /&gt;
    &amp;lt;down&amp;gt;KEY_DOWN&amp;lt;/down&amp;gt;&lt;br /&gt;
    &amp;lt;pageplus&amp;gt;KEY_CHANNELUP&amp;lt;/pageplus&amp;gt;&lt;br /&gt;
    &amp;lt;pageminus&amp;gt;KEY_CHANNELDOWN&amp;lt;/pageminus&amp;gt;&lt;br /&gt;
    &amp;lt;select&amp;gt;KEY_OK&amp;lt;/select&amp;gt;&lt;br /&gt;
    &amp;lt;back&amp;gt;KEY_EXIT&amp;lt;/back&amp;gt;&lt;br /&gt;
    &amp;lt;menu&amp;gt;KEY_MENU&amp;lt;/menu&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;KEY_RED&amp;lt;/title&amp;gt;&lt;br /&gt;
    &amp;lt;info&amp;gt;KEY_GREEN&amp;lt;/info&amp;gt;&lt;br /&gt;
    &amp;lt;skipplus&amp;gt;KEY_FORWARD&amp;lt;/skipplus&amp;gt;&lt;br /&gt;
    &amp;lt;skipminus&amp;gt;KEY_BACK&amp;lt;/skipminus&amp;gt;&lt;br /&gt;
    &amp;lt;display&amp;gt;KEY_YELLOW&amp;lt;/display&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;KEY_RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;volumeplus&amp;gt;KEY_VOLUMEUP&amp;lt;/volumeplus&amp;gt;&lt;br /&gt;
    &amp;lt;volumeminus&amp;gt;KEY_VOLUMEDOWN&amp;lt;/volumeminus&amp;gt;&lt;br /&gt;
    &amp;lt;mute&amp;gt;KEY_MUTE&amp;lt;/mute&amp;gt;&lt;br /&gt;
    &amp;lt;record&amp;gt;KEY_RECORD&amp;lt;/record&amp;gt;&lt;br /&gt;
    &amp;lt;power&amp;gt;KEY_POWER&amp;lt;/power&amp;gt;&lt;br /&gt;
    &amp;lt;blue&amp;gt;KEY_BLUE&amp;lt;/blue&amp;gt;&lt;br /&gt;
    &amp;lt;one&amp;gt;KEY_NUMERIC_1&amp;lt;/one&amp;gt;&lt;br /&gt;
    &amp;lt;two&amp;gt;KEY_NUMERIC_2&amp;lt;/two&amp;gt;&lt;br /&gt;
    &amp;lt;three&amp;gt;KEY_NUMERIC_3&amp;lt;/three&amp;gt;&lt;br /&gt;
    &amp;lt;four&amp;gt;KEY_NUMERIC_4&amp;lt;/four&amp;gt;&lt;br /&gt;
    &amp;lt;five&amp;gt;KEY_NUMERIC_5&amp;lt;/five&amp;gt;&lt;br /&gt;
    &amp;lt;six&amp;gt;KEY_NUMERIC_6&amp;lt;/six&amp;gt;&lt;br /&gt;
    &amp;lt;seven&amp;gt;KEY_NUMERIC_7&amp;lt;/seven&amp;gt;&lt;br /&gt;
    &amp;lt;eight&amp;gt;KEY_NUMERIC_8&amp;lt;/eight&amp;gt;&lt;br /&gt;
    &amp;lt;nine&amp;gt;KEY_NUMERIC_9&amp;lt;/nine&amp;gt;&lt;br /&gt;
    &amp;lt;zero&amp;gt;KEY_NUMERIC_0&amp;lt;/zero&amp;gt;&lt;br /&gt;
  &amp;lt;/remote&amp;gt;&lt;br /&gt;
&amp;lt;/lircmap&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up Streamzap PC Remote for Linux|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Set_up_LIRC&amp;diff=79547</id>
		<title>HOW-TO:Set up LIRC</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Set_up_LIRC&amp;diff=79547"/>
		<updated>2014-10-13T17:29:40Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{cleanup}}&lt;br /&gt;
&lt;br /&gt;
This guide explains how to set up xbmc to understand a universal remote&#039;s commands (so not the standard MCE remotes that work out of the box). You obviously need some hardware device for this that reads infrared commands. I&#039;m using a cheap (+- 10 euro) device called the IRMan. You can find a list of supported devices [http://www.lirc.org/html/table.html here].&lt;br /&gt;
&lt;br /&gt;
== Download and install Lirc ==&lt;br /&gt;
First you have to download and install Lirc. If you&#039;re using Ubuntu or Debian you can just type &#039;&#039;&#039;apt-get install lirc&#039;&#039;&#039;. If you don&#039;t have a lirc package in you distribution or (in my case) a buggy version, it&#039;s pretty easy to compile lirc from source:&lt;br /&gt;
&lt;br /&gt;
 user@computer:~$ wget http://prdownloads.sourceforge.net/lirc/lirc-0.8.4a.tar.bz2&lt;br /&gt;
 user@computer:~$ tar -jxf lirc-0.8.4a.tar.bz2&lt;br /&gt;
 user@computer:~$ cd lirc-0.8.4a&lt;br /&gt;
 user@computer:~/lirc-0.8.4a$ aclocal &amp;amp;&amp;amp; autoheader &amp;amp;&amp;amp; autoconf&lt;br /&gt;
 user@computer:~/lirc-0.8.4a$ ./configure --with-x --with-driver=irman  (or whatever remote you are using, check ./configure --help for supported ones - for homebrew serial IR use --driver=serial)&lt;br /&gt;
 user@computer:~/lirc-0.8.4a$ make &amp;amp;&amp;amp; sudo make install&lt;br /&gt;
&lt;br /&gt;
Next comes the interesting part.&lt;br /&gt;
&lt;br /&gt;
== Configure Lirc to understand your remote&#039;s commands ==&lt;br /&gt;
You have downloaded and installed Lirc and are now ready to set it up. First, check if your IR receiver is already preconfigured. Ubuntu stores the configuration files in &#039;&#039;&#039;/usr/share/lirc/remotes&#039;&#039; but you can also find them in the source tree in the remotes directory. If you can find you remote, copy the config file to /etc/lirc/lircd.conf and open the file with a text editor. Delete the lines between &#039;&#039;begin codes&#039;&#039; and &#039;&#039;end codes&#039;&#039;.&lt;br /&gt;
 &lt;br /&gt;
=== Learning Commands ===&lt;br /&gt;
Now we&#039;re going to learn commands. Fire up &#039;&#039;&#039;irrecord&#039;&#039;&#039; with the following command:&lt;br /&gt;
 user@computer:~$ sudo -s ## you have to be root for this part&lt;br /&gt;
 [sudo] password for user:&lt;br /&gt;
 root@computer:~# cd /etc/lirc&lt;br /&gt;
 root@computer:/etc/lirc# irrecord --driver=irman --device=/dev/ttyS0 MyRemote ## use the driver that you chose in the previous part. /dev/ttyS0 = first com port&lt;br /&gt;
&lt;br /&gt;
You&#039;ll get a wall of text and are asked to press enter. Next you&#039;ll see a prompt.&lt;br /&gt;
 Hold down an arbitrary button.&lt;br /&gt;
Just hold down any button on your remote until the next prompt. &lt;br /&gt;
 Found gap length: 215947&lt;br /&gt;
 Now enter the names for the buttons.&lt;br /&gt;
Now you have to learn all buttons. Enter a name, press enter, hold down the button you are learning and repeat. When you&#039;re done, press enter. Press one button on your remote as fast as possible but DO NOT hold it down.&lt;br /&gt;
 &lt;br /&gt;
=== Testing the new lirc configuration ===&lt;br /&gt;
Next we&#039;re going to test the config file we just created. Start lirc with the following command:&lt;br /&gt;
 root@computer:/etc/lirc# lircd --driver=irman --device=/dev/ttyS0 /etc/lirc/MyRemote&lt;br /&gt;
You can test your config by starting irw:&lt;br /&gt;
 root@computer:/etc/lirc# irw&lt;br /&gt;
Press the buttons on your remote you just learned and see if they match. Press ctrl+c to quit irw. If there&#039;s a problem, stop lirc with&lt;br /&gt;
 root@computer:/etc/lirc# killall lircd&lt;br /&gt;
delete the file we just created&lt;br /&gt;
 root@computer:/etc/lirc# rm -f MyRemote&lt;br /&gt;
and repeat the whole learning process back from the top. If it still doesn&#039;t work, have a look at [http://www.lirc.org/html/help.html#new_remote this site] or ask on the forums.&lt;br /&gt;
 &lt;br /&gt;
=== Make the changes to lirc ===&lt;br /&gt;
If &#039;&#039;irw&#039;&#039; gave the right output, stop lirc with&lt;br /&gt;
 root@computer:/etc/lirc# killall lircd&lt;br /&gt;
and move the file we created to lircd.conf&lt;br /&gt;
 root@computer:/etc/lirc# mv MyRemote lircd.conf&lt;br /&gt;
Finally start up lirc with&lt;br /&gt;
 root@computer:/etc/lirc# /etc/init.d/lircd start&lt;br /&gt;
You can now leave your root shell.&lt;br /&gt;
&lt;br /&gt;
== Configure XBMC to understand Lirc&#039;s commands ==&lt;br /&gt;
So now that you configured lirc and &#039;&#039;irw&#039;&#039; gives the expected output, it&#039;s time to let lirc talk to XBMC. Start your text editor and open the file named &#039;&#039;&#039;Lircmap.xml&#039;&#039;&#039;, which is usually located in &#039;&#039;&#039;$home$/.xbmc/userdata/&#039;&#039;&#039; and the generic is on &#039;&#039;&#039;/usr/share/xbmc/system/&#039;&#039;&#039;.&lt;br /&gt;
There are some remotes in there by default. Copy the part between&lt;br /&gt;
 &amp;amp;lt;remote device=&amp;quot;mceusb&amp;quot;&amp;amp;gt; ... &amp;amp;lt;/remote&amp;amp;gt;&lt;br /&gt;
and paste it in the file. Change the new &#039;&#039;mceusb&#039;&#039; to &#039;&#039;MyRemote&#039;&#039; (or whatever name you picked for your remote in the lirc configuration) and change the values of the tags to the names of the buttons. If you forgot them, they are in /etc/lirc/lircd.conf.&lt;br /&gt;
 &lt;br /&gt;
The &#039;&#039;&#039;Lircmap.xml&#039;&#039;&#039; configuration is explained in more detail in [http://forum.xbmc.org/showthread.php?t=45972 this forum post]&lt;br /&gt;
&lt;br /&gt;
== It works :) ==&lt;br /&gt;
&lt;br /&gt;
remember order to use lirc on xbmc (generic for ubuntu)&lt;br /&gt;
first install modules&lt;br /&gt;
then compiling lirc&lt;br /&gt;
then setting remote&lt;br /&gt;
&lt;br /&gt;
== Changes in Linux IR ==&lt;br /&gt;
&lt;br /&gt;
With kernel 2.6.35 some changes began to be made in the way Linux handles infrared remotes. What used to be a job just for LIRC is now partly done by the Linux kernel. Some distributions &#039;backport&#039; changes to the kernel, so even though your kernel is older than 2.6.35 it might affect you.&lt;br /&gt;
&lt;br /&gt;
The drivers for several remotes have been moved into the kernel and this means that many of them should &#039;Just Work&#039; out of the box. Unfortunately LIRC, the LIRC configuration tools, the distribution setup scripts for LIRC and most of the documentation available has not yet (as of February 2011) been updated to reflect these changes.&lt;br /&gt;
If you are experiencing problems, your remotedriver may have been moved to the kernel. In this case, try to setup LIRC with &#039;devinput&#039; as the driver (and something like /dev/input/event3 as the device).&lt;br /&gt;
Further reading:&lt;br /&gt;
[http://wilsonet.com/?page_id=95 Linux 2.6.35+ Remote Control Overview]&lt;br /&gt;
[http://wilsonet.com/?cat=11 What’s new in IR?]&lt;br /&gt;
[http://lirc.org/html/devinput.html Linux input layer driver]&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to|Lirc]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:XBMCbuntu]]&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up Lirc|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Set_up_an_MCE_remote_control_in_Linux&amp;diff=79546</id>
		<title>HOW-TO:Set up an MCE remote control in Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Set_up_an_MCE_remote_control_in_Linux&amp;diff=79546"/>
		<updated>2014-10-13T17:28:44Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar error, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide will help to configure an MCE Remote on a linux HTPC, even if all the commands are specific to Ubuntu, the main steps are the same on any modern linux distribution.&lt;br /&gt;
&lt;br /&gt;
MCE remotes are IR remotes that split into two main categories:&lt;br /&gt;
*MCE remotes that send keystrokes&lt;br /&gt;
*Windows remotes also known as RC6 or eHome remotes&lt;br /&gt;
&lt;br /&gt;
Most remotes work out of the box through the kernel input event subsystem. However they are often unusable in this state due to laggy/buggy behavior.   &lt;br /&gt;
On Linux it is often easier to use the [http://www.wikipedia.org Lirc] package.&lt;br /&gt;
&lt;br /&gt;
== Install the remote == &lt;br /&gt;
=== Simple Installation method with Lircd ===&lt;br /&gt;
&lt;br /&gt;
The easiest way is to use the lircd daemon shipped with lirc package.&lt;br /&gt;
&lt;br /&gt;
In terminal, use the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install -y lirc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the installation a configuration dialog will appear on Ubuntu.&lt;br /&gt;
Choose the correct values corresponding to your receiver (and eventually transmitter)&lt;br /&gt;
&lt;br /&gt;
you can now test if the correct value are send by the remote buttons by using the &amp;lt;code&amp;gt;irw&amp;lt;/code&amp;gt; command tool and then launch XBMC and check if the main button are responding correctly.&lt;br /&gt;
&lt;br /&gt;
You can always reconfigure the lirc package with the dpkg-reconfigure command:&lt;br /&gt;
 &amp;lt;pre&amp;gt;dpkg-reconfigure lirc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the remote don&#039;t work it is always a good idea to reconfigure lirc package by choosing one of those 2 generic value for the receiver option :&lt;br /&gt;
*Windows Media Center Transceivers/Remotes (all)&lt;br /&gt;
*Linux input layer (/dev/input/eventX)&lt;br /&gt;
&lt;br /&gt;
a more complete guide is available here : [[HOW-TO:Setup_Lirc|HOW-TO: Setup Lirc]]&lt;br /&gt;
&lt;br /&gt;
=== Alternative Installation method using InputLirc ===&lt;br /&gt;
&lt;br /&gt;
In some cases the simple method will work in a buggy way (keys pressed twice, key burst, laggy key, ... ).&lt;br /&gt;
If this is the case or you want deeper control over the configuration then use inputlirc.&lt;br /&gt;
Inputlirc is a small LIRC-compatible daemon that reads from /dev/input/eventX devices and sends the received keycodes to connecting LIRC clients.&lt;br /&gt;
&lt;br /&gt;
*It is important to disable lircd daemon from lirc package, On ubuntu launch the lirc reconfiguration process with :&lt;br /&gt;
&amp;lt;pre&amp;gt;dpkg-reconfigure lirc&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then choose twice none for receiver and transmitter.&lt;br /&gt;
&lt;br /&gt;
Make sure that lircd is not running. The START_LIRCD parameter should be now set to false in /etc/lirc/hardware.conf configuration file.&lt;br /&gt;
&lt;br /&gt;
*Install now inputlirc :&lt;br /&gt;
 sudo apt-get install inputlirc&lt;br /&gt;
&lt;br /&gt;
*Before proceeding we need to know the eventX number corresponding to our remote :&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/bus/input/devices&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For instance on my xtreamer ultra V1, the nuvoton receiver remote correspond to event4&lt;br /&gt;
&amp;lt;pre&amp;gt;cI: Bus=0019 Vendor=1050 Product=00c3 Version=0033&lt;br /&gt;
N: Name=&amp;quot;Nuvoton w836x7hg Infrared Remote Transceiver&amp;quot;&lt;br /&gt;
P: Phys=nuvoton/cir0&lt;br /&gt;
S: Sysfs=/devices/pnp0/00:09/rc/rc0/input4&lt;br /&gt;
U: Uniq=&lt;br /&gt;
H: Handlers=kbd event4&lt;br /&gt;
...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*As the eventX number may sometimes varry upon reboot, one need to know a unique id value corresponding to our remote to further create a udev rule :&lt;br /&gt;
&amp;lt;pre&amp;gt;udevadm info -a -p $(udevadm info -q path -n /dev/input/event4)&amp;lt;/pre&amp;gt; &lt;br /&gt;
For the nuvoton, the ATTRS(id) will be used from the following output&lt;br /&gt;
&amp;lt;pre&amp;gt;looking at device &#039;/devices/pnp0/00:09/rc/rc0/input4/event4&#039;:&lt;br /&gt;
KERNEL==&amp;quot;event4&amp;quot;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;&lt;br /&gt;
DRIVER==&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
looking at parent device &#039;/devices/pnp0/00:09/rc/rc0/input4&#039;:&lt;br /&gt;
KERNELS==&amp;quot;input4&amp;quot;&lt;br /&gt;
SUBSYSTEMS==&amp;quot;input&amp;quot;&lt;br /&gt;
DRIVERS==&amp;quot;&amp;quot;&lt;br /&gt;
ATTRS{name}==&amp;quot;Nuvoton w836x7hg Infrared Remote Transceiver&amp;quot;&lt;br /&gt;
ATTRS{phys}==&amp;quot;nuvoton/cir0&amp;quot;&lt;br /&gt;
ATTRS{uniq}==&amp;quot;&amp;quot;&lt;br /&gt;
ATTRS{properties}==&amp;quot;0&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
looking at parent device &#039;/devices/pnp0/00:09/rc/rc0&#039;:&lt;br /&gt;
KERNELS==&amp;quot;rc0&amp;quot;&lt;br /&gt;
SUBSYSTEMS==&amp;quot;rc&amp;quot;&lt;br /&gt;
DRIVERS==&amp;quot;&amp;quot;&lt;br /&gt;
ATTRS{protocols}==&amp;quot;rc-5 nec [rc-6] jvc sony mce_kbd lirc&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
looking at parent device &#039;/devices/pnp0/00:09&#039;:&lt;br /&gt;
KERNELS==&amp;quot;00:09&amp;quot;&lt;br /&gt;
SUBSYSTEMS==&amp;quot;pnp&amp;quot;&lt;br /&gt;
DRIVERS==&amp;quot;nuvoton-cir&amp;quot;&lt;br /&gt;
ATTRS{options}==&amp;quot;&lt;br /&gt;
ATTRS{id}==&amp;quot;NTN0530&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
looking at parent device &#039;/devices/pnp0&#039;:&lt;br /&gt;
KERNELS==&amp;quot;pnp0&amp;quot;&lt;br /&gt;
SUBSYSTEMS==&amp;quot;&lt;br /&gt;
DRIVERS==&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*One can now create a permanent symbolic link to our eventX device by creating a custom udev rule :&lt;br /&gt;
&amp;lt;pre&amp;gt;echo &#039;KERNEL==&amp;quot;event*&amp;quot;,ATTRS{id}==&amp;quot;NTN0530&amp;quot;,SYMLINK=&amp;quot;input/myremote&amp;quot;&#039; &amp;gt; /etc/udev/rules.d/10-persistent-ir.rules&amp;lt;/pre&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
Reload the udev configuration and trigger these changes :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/init.d/udev reload&lt;br /&gt;
udevadm trigger&amp;lt;/pre&amp;gt;&lt;br /&gt;
Aternatively, reboot in order to apply the udev changes.&lt;br /&gt;
&lt;br /&gt;
There should now be a symbolic link in /dev/input/myremote&lt;br /&gt;
&lt;br /&gt;
*Configure inputlirc by editing /etc/default/inputlirc like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;EVENTS=&amp;quot;/dev/input/myremote&amp;quot;&lt;br /&gt;
OPTIONS=&amp;quot;-g -m 0 -c&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Restart inputlirc&lt;br /&gt;
&amp;lt;pre&amp;gt;/etc/init.d/inputlirc stop&lt;br /&gt;
/etc/init.d/inputlirc start&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy the LircMap configuration file into the personal directory&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /usr/share/xbmc/system/Lircmap.xml ~/.xbmc/userdata/Lircmap.xml&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the linux-input-layer remote section to add the remote link name, one should have something like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;remote device=&amp;quot;linux-input-layer&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;altname&amp;gt;cx23885_remote&amp;lt;/altname&amp;gt;&lt;br /&gt;
&amp;lt;altname&amp;gt;devinput&amp;lt;/altname&amp;gt;&lt;br /&gt;
&amp;lt;altname&amp;gt;/dev/input/myremote&amp;lt;/altname&amp;gt;&lt;br /&gt;
   &amp;lt;left&amp;gt;KEY_LEFT&amp;lt;/left&amp;gt;&lt;br /&gt;
   ...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Launch xbmc and test the working remote&lt;br /&gt;
&lt;br /&gt;
Based on : [http://www.mobidyc.net/2012/09/xtreamer-ultra-ubuntu-12-04/]&lt;br /&gt;
&lt;br /&gt;
== Configure the remote buttons ==&lt;br /&gt;
=== Edit the driver table ===&lt;br /&gt;
&lt;br /&gt;
If you are using inputlirc or lircd with the &amp;lt;code&amp;gt;Linux input layer (/dev/input/eventX)&amp;lt;/code&amp;gt; value for the receiver parameter, you can tweak the driver keycode/scancode table with the ir-keytable command line tool.&lt;br /&gt;
In the following example one will make some changes on the driver table used by the nuvoton remote shipped with the Xtreamer Ultra V1. This example can be adapted to any remote.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, after using the inputlirc method on ubuntu 13.04, the subtitle, tilte and enter button are mapped like this for this remote on this HTPC :&lt;br /&gt;
&amp;lt;pre&amp;gt;subtitle =&amp;gt; KEY_TITLE&lt;br /&gt;
title =&amp;gt; no key code sent&lt;br /&gt;
enter =&amp;gt; no key code sent&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One will change the driver table to map those 3 buttons like  this :&lt;br /&gt;
&amp;lt;pre&amp;gt;subtitle =&amp;gt; KEY_SUBTITLE&lt;br /&gt;
title =&amp;gt; KEY_TITLE&lt;br /&gt;
enter =&amp;gt; KEY_SELECT&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*First install the ir-keytable package&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install ir-keytable&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Stop or kill any lirc daemon (inputlircd or lircd)&lt;br /&gt;
&amp;lt;pre&amp;gt;pkill lirc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Launch ir-keytable in test mode for the remote and read the scancode sent by pressing the buttons :&lt;br /&gt;
&amp;lt;pre&amp;gt;ir-keytable  -t --device=/dev/input/myremote&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output looks like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Testing events. Please, press CTRL-C to abort.&lt;br /&gt;
1378830829.479887: event MSC: scancode = 800f044d&lt;br /&gt;
1378830829.479887: event sync&lt;br /&gt;
1378830829.728814: event key up: KEY_TITLE (0x0171)&lt;br /&gt;
1378830829.728814: event sync&lt;br /&gt;
1378830833.290068: event MSC: scancode = 800f0451&lt;br /&gt;
...&lt;br /&gt;
1379288588.428518: event MSC: scancode = 800f0437&lt;br /&gt;
1379288588.428518: event sync&lt;br /&gt;
...&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By analyzing the ouput, one can determine the  the button/scancode association  :&lt;br /&gt;
&amp;lt;pre&amp;gt;subtitle =&amp;gt; 800f044d&lt;br /&gt;
title =&amp;gt; 800f0451&lt;br /&gt;
enter =&amp;gt;800f0437&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Dump the driver table into /etc/lirc/myirtable.cfg&lt;br /&gt;
&amp;lt;pre&amp;gt;ir-keytable -r --device=/dev/input/myremote  &amp;gt; /etc/lirc/myirtable.cfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Analyse the table file and grep the line corresponding to KEY_TITLE, KEY_SUBTITLE and KEY_SELECT&lt;br /&gt;
&amp;lt;pre&amp;gt;scancode 0x800f044d = KEY_TITLE (0x171)&lt;br /&gt;
scancode 0x800f045a = KEY_SUBTITLE (0x172)&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
As you can see, KEY_SELECT is not associated to any scancode, KEY_TITLE is associated to the subtitle button scancode and KEY_SUBTITLE is associate to a non existent scancode.&lt;br /&gt;
&lt;br /&gt;
*Before procedding, it is necessary to know the key hex value associated to KEY_SELECT&lt;br /&gt;
&lt;br /&gt;
Those are located in the kernel source code in include/uapi/linux/input.h file.&lt;br /&gt;
One can browse the source code here : [https://github.com/torvalds/linux/blob/master/include/uapi/linux/input.h]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#define KEY_SELECT		0x161&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Edit the table file dumped before to have this button key association :&lt;br /&gt;
&amp;lt;pre&amp;gt;subtitle =&amp;gt; 800f044d =&amp;gt; KEY_SUBTITLE (0x172)&lt;br /&gt;
title =&amp;gt; 800f0451 =&amp;gt; KEY_TITLE (0x171)&lt;br /&gt;
enter =&amp;gt;800f0437 =&amp;gt; KEY_SELECT (0x161)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
after modifying the KEY_TITLE,KEY_SUBTITLE lines and adding the KEY_SELECT line the edited part should look like this : &lt;br /&gt;
&amp;lt;pre&amp;gt;scancode 0x800f044d = KEY_SUBTITLE (0x172)&lt;br /&gt;
scancode 0x800f0451 = KEY_TITLE (0x171)&lt;br /&gt;
scancode 0x800f0437 = KEY_SELECT (0x161)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make sure with your favorite tool that there isn&#039;t two lines with the same scancode fot those buttons in the file and save it.&lt;br /&gt;
&lt;br /&gt;
*Clear the driver table and update it with the table file :&lt;br /&gt;
&amp;lt;pre&amp;gt;ir-keytable -c --device=/dev/input/myremote&lt;br /&gt;
ir-keytable  --device=/dev/input/myremote --write=/etc/lirc/myirtable.cfg &lt;br /&gt;
Wrote 63 keycode(s) to driver&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*To make the changes persistent upon reboot add those 2 last command above to /etc/rc.local&lt;br /&gt;
&lt;br /&gt;
*One can now test if everything works correctly with ir-keytable test mode, then restart inputlirc or lircd and launch xbmc&lt;br /&gt;
&lt;br /&gt;
=== Edit LircMap.xml and Keyboard.xml===&lt;br /&gt;
&lt;br /&gt;
First thing to do is to check the LircMap.xml located in  ~/.xbmc/userdata/Lircmap.xml.&lt;br /&gt;
&lt;br /&gt;
One can acquire the button key values with the help of irw and then edit this file to better suits our needs.&lt;br /&gt;
This can even be mandatory sometimes. &lt;br /&gt;
&lt;br /&gt;
For instance some remotes will send KEY_NUMERIC_1 instead of KEY_1 for the numeric pad. It is then necessary to edit the file at the correponding remote section from &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;one&amp;gt;KEY_1&amp;lt;/one&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;one&amp;gt;KEY_NUMERIC_1&amp;lt;/one&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A complete guide is available here : [[Userdata/lircmap.xml]]&lt;br /&gt;
&lt;br /&gt;
For further tweaking it is necessary to edit the Keyboard.xml file.&lt;br /&gt;
A complete guide is available here : [[Keymap]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Remotes]]&lt;br /&gt;
[[Category:XBMC Manual]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up an MCE remote control in Linux|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Set_up_CableCard_with_HDHomeRun_UPnP&amp;diff=79545</id>
		<title>Archive:Set up CableCard with HDHomeRun UPnP</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Set_up_CableCard_with_HDHomeRun_UPnP&amp;diff=79545"/>
		<updated>2014-10-13T17:27:24Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar issue with title, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{editor note|Here&#039;s a very rough guide I wrote up for a user on the forums. Feel free to touch it up if I don&#039;t get to it soon and make it more generic and for more cable services, etc.}}&lt;br /&gt;
&lt;br /&gt;
Here&#039;s an easy method of using XBMC, HDHomeRun Prime, and CableCard, to easily set up live TV for all of your XBMC boxes in HD. CableCard is a cable TV technology for the United States.&lt;br /&gt;
&lt;br /&gt;
I got an HDHomeRun Prime. What&#039;s great about the Prime is that if you don&#039;t need to record, as you indicated, then you can easily set it up in XBMC by adding it as a UPnP source and no additional software or hardware.&lt;br /&gt;
&lt;br /&gt;
Get an HDHomeRun Prime and then call up Comcast and find where a local customer service center is so that you can go and pick up a Cable Card. They&#039;ll charge you a small fee for picking it up or activating it or something, but the card itself should be free of monthly charges. In fact, I think they will give you a credit on your bill since you are providing your own tuner hardware (the Prime). Make sure to mention this, as sometimes people get mistakenly charged for the Cable Card, but the first one you get (that is not in Comcast branded hardware, so existing cable boxes don&#039;t count against this) should be free.&lt;br /&gt;
&lt;br /&gt;
Go home and insert the card into the Prime. Sometime now, even before you get the Cable Card, be sure to go to http://silicondust.com and grab the latest firmware update, in case the firmware on the Prime doesn&#039;t already have the UPnP update. The Prime should also instruct you on how to load up the Prime&#039;s interface in a web browser, which will tell you some numbers off of the Cable Card that you will need to activate it. Comcast should also tell you which phone number to call to activate the card, which for some reason has to be done while it is in the Prime, so it can&#039;t be done when you pick up the card (which is silly, I know). Once activated, it should be able to scan for channels from the web interface, and you should see a bunch of them show up in a list.&lt;br /&gt;
&lt;br /&gt;
In XBMC you can now simply add the Prime as a UPnP media source ( http://wiki.xbmc.org/index.php?title=UPnP/Media_source ). It&#039;s pretty basic and doesn&#039;t have a TV guide or anything, but it is possible to add those later if you wish. Here&#039;s a great YouTube video that also explains this process. In the video they use Raspberry Pis, but the process is the same for any XBMC install (except that in most cases you do not have to buy an MPEG2 codec license, so you can ignore that part): https://www.youtube.com/watch?v=kKpqmkpkyOA&lt;br /&gt;
&lt;br /&gt;
XBMC can access channels that are &amp;quot;flagged&amp;quot; as &amp;quot;copy freely&amp;quot;, which includes most Comcast/Xfinity channels. The only channels you can&#039;t access in XBMC are premium channels like HBO, Showtime, etc. There were one or two sports channels that also didn&#039;t work for me, but most sports channels did seem to work, like ESPN, Fox Sports, etc. You can still use those channels with the Prime, but they require a UPnP client that can work with &amp;quot;copy once&amp;quot; channels, like a PS3, or HDHomeRun&#039;s Android app.&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Live TV]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up CableCard with HDHomeRun UPnP|Spelling/grammar error, i.e. &#039;setup&#039; is a noun, &#039;set up&#039; is a verb, and &#039;set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Set_up_subtitle_services&amp;diff=79544</id>
		<title>HOW-TO:Set up subtitle services</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Set_up_subtitle_services&amp;diff=79544"/>
		<updated>2014-10-13T17:24:25Z</updated>

		<summary type="html">&lt;p&gt;Slvr32: Spelling/grammar issues with title, setup vs set up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav| [[Video library]] | [[Video playback|Playback]] | [[Subtitles]] }}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;Starting in XBMC v13 &amp;quot;Gotham&amp;quot; subtitles are now built into XBMC, and instead of downloading the subtitle download add-on, you install specific subtitle services.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
* You have to use a pretty up-to-date skin or the new options won’t be implemented yet. To be safe work with confluence until you do this one-time setup.&lt;br /&gt;
&lt;br /&gt;
* If you have bound a remote key to bring up the subtitle search window, you will need to update the [[keymap]] to use this instead: &amp;lt;code&amp;gt;ActivateWindow(subtitlesearch)&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
{{how-to&lt;br /&gt;
|Step1= [[File:GothamNewSubs1.png|right|500px]] From XBMC&#039;s home screen, go to {{highlight|bordered=yes|Settings -&amp;gt; Video -&amp;gt; Subtitles}}. There you will see the new subtitles settings.&lt;br /&gt;
| Step2= [[File:GothamNewSubs0a.png|right|500px]] [[File:GothamNewSubs0b.png|right|500px]]Select the languages you want to get when searching for subtitles. For the time being there is no way of selecting order (or main language for that matter) so the search results will be shown in whatever order your service of choice (we’ll come to that) decides it fits.&lt;br /&gt;
| Step3= [[File:GothamNewSubs1.png|right|500px]] Select either default Service for TV Episodes and Movies to select the default service or download extra services.&lt;br /&gt;
| Step4= [[File:GothamNewSubs2.png|right|500px]] Here you can select the default service to use. If the list is still empty you can hit the &amp;quot;Get more&amp;quot;button to download additional services.&lt;br /&gt;
| Step5= [[File:GothamNewSubs3.png|right|500px]] Here you see the available list of subtitle services to download. Simply click on it to install the currently selected. If no subtitle services show up in this list you need to do the following one time: [[Add-on_manager#Empty_repository_list]]. After that you can go back to step 1 and repeat the process.&lt;br /&gt;
| Step6= [[File:GothamNewSubs4.png|right|500px]] After you have installed several services you can select the default one to use.&lt;br /&gt;
| Step7= [[File:NewSubs4.jpg|right]] Each subtitles module might have additional settings (for example you have options to enter your login info in podnapisi). To change this you have to go to each service options through {{highlight|bordered=yes|Settings -&amp;gt; Add-ons -&amp;gt; Enabled Add-ons -&amp;gt; Subtitles -&amp;gt; select the service add-on -&amp;gt; Configure}} &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
*Credit goes to jurrabi for the original guide.&lt;br /&gt;
&lt;br /&gt;
{{gotham updated}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Subtitles]]&lt;br /&gt;
[[Category:XBMC Manual]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Add-ons]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
&lt;br /&gt;
{{rename media|HOW-TO:Set up subtitle services|Spelling/grammar error, i.e. &#039;Setup&#039; is a noun, &#039;Set up&#039; is a verb, and &#039;Set up&#039; is correct here}}&lt;/div&gt;</summary>
		<author><name>Slvr32</name></author>
	</entry>
</feed>