<?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=Niklas+Holm</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=Niklas+Holm"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Niklas_Holm"/>
	<updated>2026-06-17T04:03:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128872</id>
		<title>Archive:Upgrade Python interpreter on Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128872"/>
		<updated>2017-04-04T13:57:26Z</updated>

		<summary type="html">&lt;p&gt;Niklas Holm: /* Launch Kodi */ fix typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Development]]|[[Add-on development]]|[[Python development]]}}&lt;br /&gt;
&lt;br /&gt;
{{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kodi.}}&lt;br /&gt;
&lt;br /&gt;
If you have TLS-handshake errors with some plugin(s) in Kodi under Linux, this page is for you. The problem is caused by an outdated system-wide Python 2 interpreter installed on your system. Some users may instinctively attempt to upgrade the system-wide Python interpreter, from source, from a PPA, using a third-party package manager or whatever. &#039;&#039;&#039;&#039;&#039;Do not do that!&#039;&#039;&#039;&#039;&#039; Python is an integral part of many distributions, including Ubuntu, and messing with the vendor-supplied interpreter may cause all kinds of problems. This method uses Miniconda and a modified environment to launch Kodi with it&#039;s very own, updated Python interpreter.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
{{Note|This procedure is tested on Ubuntu 14.04 LTS}}&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
* Miniconda. To download and install follow the instructions [https://conda.io/docs/install/quick.html#linux-miniconda-install here].&lt;br /&gt;
* BlueZ development files to compile PyBluez. Install with&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 install libbluetooth-dev&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create the environment ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ conda create --name kodi python=2.7&lt;br /&gt;
$ source activate kodi&lt;br /&gt;
(kodi) $ conda install simplejson pillow&lt;br /&gt;
(kodi) $ pip install PyBluez PIL-compat&lt;br /&gt;
(kodi) $ source deactivate&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launch Kodi ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ env PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/lib&amp;quot; kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(obviously replace &amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;&amp;quot; with wherever you installed miniconda)&lt;br /&gt;
&lt;br /&gt;
==== Modify the .desktop-file (optional) ====&lt;br /&gt;
You can also put the above command inside your .desktop-file to enable launching directly from your desktop environment.&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;
$ mkdir -p ~/.local/share/applications&lt;br /&gt;
$ x=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi&amp;quot;&lt;br /&gt;
$ sed &#039;s|Exec=kodi|Exec=env PATH=&amp;quot;&#039;&amp;quot;${x}&amp;quot;&#039;/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;&#039;&amp;quot;${x}&amp;quot;&#039;/lib&amp;quot; kodi|g&#039; /usr/share/applications/kodi.desktop &amp;gt; ~/.local/share/applications/kodi.desktop&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{forum link2|[[forum:307169#pid2534910|Original forum post]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Like}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:How-to]]&lt;/div&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128870</id>
		<title>Archive:Upgrade Python interpreter on Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128870"/>
		<updated>2017-04-04T13:35:24Z</updated>

		<summary type="html">&lt;p&gt;Niklas Holm: Created page with &amp;quot;{{mininav|Development|Add-on development|Python development}}  {{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kod...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Development]]|[[Add-on development]]|[[Python development]]}}&lt;br /&gt;
&lt;br /&gt;
{{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kodi.}}&lt;br /&gt;
&lt;br /&gt;
If you have TLS-handshake errors with some plugin(s) in Kodi under Linux, this page is for you. The problem is caused by an outdated system-wide Python 2 interpreter installed on your system. Some users may instinctively attempt to upgrade the system-wide Python interpreter, from source, from a PPA, using a third-party package manager or whatever. &#039;&#039;&#039;&#039;&#039;Do not do that!&#039;&#039;&#039;&#039;&#039; Python is an integral part of many distributions, including Ubuntu, and messing with the vendor-supplied interpreter may cause all kinds of problems. This method uses Miniconda and a modified environment to launch Kodi with it&#039;s very own, updated Python interpreter.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
{{Note|This procedure is tested on Ubuntu 14.04 LTS}}&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
* Miniconda. To download and install follow the instructions [https://conda.io/docs/install/quick.html#linux-miniconda-install here].&lt;br /&gt;
* BlueZ development files to compile PyBluez. Install with&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 install libbluetooth-dev&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create the environment ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ conda create --name kodi python=2.7&lt;br /&gt;
$ source activate kodi&lt;br /&gt;
(kodi) $ conda install simplejson pillow&lt;br /&gt;
(kodi) $ pip install PyBluez PIL-compat&lt;br /&gt;
(kodi) $ source deactivate&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launch Kodi ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ env PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/lib&amp;quot; kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(obliviously replace &amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;&amp;quot; with wherever you installed miniconda)&lt;br /&gt;
&lt;br /&gt;
==== Modify the .desktop-file (optional) ====&lt;br /&gt;
You can also put the above command inside your .desktop-file to enable launching directly from your desktop environment.&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;
$ mkdir -p ~/.local/share/applications&lt;br /&gt;
$ x=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi&amp;quot;&lt;br /&gt;
$ sed &#039;s|Exec=kodi|Exec=env PATH=&amp;quot;&#039;&amp;quot;${x}&amp;quot;&#039;/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;&#039;&amp;quot;${x}&amp;quot;&#039;/lib&amp;quot; kodi|g&#039; /usr/share/applications/kodi.desktop &amp;gt; ~/.local/share/applications/kodi.desktop&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{forum link2|[[forum:307169#pid2534910|Original forum post]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Like}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:How-to]]&lt;/div&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=PulseAudio&amp;diff=123158</id>
		<title>PulseAudio</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=PulseAudio&amp;diff=123158"/>
		<updated>2016-06-08T14:32:10Z</updated>

		<summary type="html">&lt;p&gt;Niklas Holm: /* FAQ */ use pasuspender&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{mininav|[[Audio]]|[[Linux audio]]}}&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page goes into detail on using PulseAudio on Linux systems. PulseAudio is used when Kodi is installed in a desktop-environment rather than a dedicated/direct boot setup. PulseAudio allows normal video &amp;amp; audio playback in XBMC while at the same time allowing the user to get audio in their browser or other applications. It also allows Kodi playback of video or audio to be paused in order to run a game, Skype or similar. Kodi is set to only use PulseAudio if you have installed it and running.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
In the past users have experienced problems with audio not working within Kodi, because they were running a full-blown Ubuntu desktop environment with PulseAudio installed. This happened because PulseAudio blocked the device Kodi required, and audio playback only worked reliably when using the virtual Pulse device.&lt;br /&gt;
&lt;br /&gt;
Our workaround for those users has been to uninstall PulseAudio which completely broke desktop audio.&lt;br /&gt;
&lt;br /&gt;
For XBMC 13 &#039;Gotham&#039; and later (named Kodi since 14 &#039;Helix&#039;) we wanted this situation to change, so thanks to the new &#039;&#039;&#039;PulseAudio Sink&#039;&#039;&#039; users now can run a normal Ubuntu desktop.&lt;br /&gt;
&lt;br /&gt;
== PulseAudio Output Configuration ==&lt;br /&gt;
PulseAudio will be automatically detected and selected in Kodi when it is running.&lt;br /&gt;
&lt;br /&gt;
PulseAudio can be run in one of two modes these are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Passthrough Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
Used if you want to passthrough (bitstream) AC3, DTS, and EAC3 to an AVR or other device. In order to allow passthrough to work with PulseAudio then it &#039;&#039;&#039;MUST&#039;&#039;&#039; be set to use a 2.0 channel configuration, despite the 2.0 setting this will still allow 5.1 audio from AC3, DTS, and EAC3.&lt;br /&gt;
&lt;br /&gt;
{{Note| PulseAudio does not currently allow TrueHD or DTS-MA passthrough, this is a PulseAudio limitation and not a limitation of the Kodi implementation.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&#039;&#039;&#039;Multichannel Mode&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Used if you want Multichannel PCM out, in this mode you can configure PulseAudio for up to 7.1 channels. In this mode Kodi must decode all audio formats to PCM for passing onto the PulseAudio, this can have the advantage of improve audio/video sync.&lt;br /&gt;
&lt;br /&gt;
{{Note| Audio decoded to PCM and sent through PulseAudio the audio will not likely be &amp;quot;bit perfect&amp;quot;. Where a video has TrueHD 7.1 audio, this can be decoded by Kodi to PCM 7.1, however DTS-HD 7.1 audio can&#039;t be decoded by Kodi, only the embedded DTS Core 5.1 can be decoded to PCM 5.1 audio. Als Pulseaudio will always open the number of channels you have configured. You can stop it doing upmixing (see Known issues), but it will still open all configured channels which makes Dolby Pro Logic II of your AVR not usable.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up pavucontrol  ==&lt;br /&gt;
&lt;br /&gt;
=== Passthrough Mode ===&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;|Passthrough is always exclusive mode. If you have another application hogging the device, e.g. google chrome or skype or something else, Passthrough won&#039;t work.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| To use passthrough you need to be using &#039;&#039;&#039;2.0&#039;&#039;&#039; channel configuration via &#039;&#039;&#039;pavucontrol&#039;&#039;&#039; (e.g. Digital Stereo (HDMI)}}&lt;br /&gt;
&lt;br /&gt;
In order to activate Passthrough Codecs, just setup pavucontrol, as in the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Passthrough2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Passthrough1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;pavucontrol&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you like to do this from the command line, issue:&lt;br /&gt;
 &#039;&#039;&#039;pactl set-sink-formats 0 &amp;quot;pcm; ac3-iec61937; dts-iec61937; eac3-iec61937&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Where &#039;&#039;&#039;0&#039;&#039;&#039; is the sink you want to alter.&lt;br /&gt;
You can print all sinks, by using:&lt;br /&gt;
 &#039;&#039;&#039;pactl list sinks&#039;&#039;&#039;&lt;br /&gt;
You can leave out the codecs your AVR does not support, always keep pcm.&lt;br /&gt;
&lt;br /&gt;
{{bluev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| If you have for example 5.1 flacs or other multichannel files, you can play them as AC3 streams, check the AC3 Transcoding setting.}}&lt;br /&gt;
&lt;br /&gt;
=== Multichannel Mode ===&lt;br /&gt;
{{greenv|&#039;&#039;&#039;REMEMBER:&#039;&#039;&#039;| When configuring pulse to use &#039;&#039;&#039;Multichannel configuration&#039;&#039;&#039; passthrough will be disabled}}&lt;br /&gt;
To configure instead Multi channel mode, do the following settings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Lpcm2.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt; &#039;&#039;To alternatively configure Multi channel, check this:&#039;&#039;.&lt;br /&gt;
File:Lpcm1.png|&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt; The &#039;&#039;Add-on manager&#039;&#039;, displaying four/five options  (explained below).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example setup in Kodi ===&lt;br /&gt;
{{orangev|&#039;&#039;&#039;GOOD TO KNOW:&#039;&#039;&#039;| Limit sample rate can be set to Fixed - between 48kHz ~ 192kHz or as Optimized and even Best match.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmclpcm.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpaa1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=313px&amp;gt;&lt;br /&gt;
File:Xbmcpass2.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 1:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Output Settings.&#039;&#039;&#039;&lt;br /&gt;
File:Xbmcpass1.png |&amp;lt;big&amp;gt;&#039;&#039;&#039;Step 2:&#039;&#039;&#039;&amp;lt;/big&amp;gt;  &#039;&#039;to be edited&#039;&#039;  &#039;&#039;&#039;Configuration.&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
=== Setup Guide ===&lt;br /&gt;
{{orangev|DEVICE ENUMERATION:| Kodi Enumerates Pulseaudio devices as SPDIF when you have &#039;&#039;&#039;Passthrough&#039;&#039;&#039; set. Otherwise its &#039;&#039;&#039;PCM Device&#039;&#039;&#039;. If &#039;&#039;&#039;Passthrough&#039;&#039;&#039; was not configured with pavucontrol - no &#039;&#039;&#039;Passthrough&#039;&#039;&#039; setting within Kodi will be available.}}&lt;br /&gt;
{{bluev|GOOD TO KNOW:|SPDIF has 2 pcm channels but can do virtual 5.1 formats like dts, ac3, eac3.}}&lt;br /&gt;
{{greenv|&#039;&#039;&#039;NOTICE&#039;&#039;&#039;|The following is meant to act as a guide to get you started, thus you may want to adjust things to suit your own particular set of equipment.}}&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center; color: black;&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! PC Speakers&amp;lt;br /&amp;gt;5.1&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;2.0&lt;br /&gt;
! TV SPDIF&amp;lt;br /&amp;gt;AC3 (&#039;&#039;&#039;1&#039;&#039;&#039;)&lt;br /&gt;
! AVR SPDIF&amp;lt;br /&amp;gt;AC3/DTS (&#039;&#039;&#039;2&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;PCM (&#039;&#039;&#039;3&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;No HD Audio (&#039;&#039;&#039;4&#039;&#039;&#039;)&lt;br /&gt;
! AVR HDMI&amp;lt;br /&amp;gt;Decode HD Audio (&#039;&#039;&#039;5&#039;&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;PusleAudio Mode&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|Passthrough&lt;br /&gt;
|Multichannel&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Output Devices&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Port&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|Digital Output (S/PDIF)&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|HDMI/Displayport&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;AC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;EAC3&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;9&amp;quot;|&#039;&#039;&#039;Pavucontrol - Configuration&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Profile&#039;&#039;&#039;&lt;br /&gt;
|Analog Stereo Output&lt;br /&gt;
|Analog Surround 5.1 Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(IEC958) Output&lt;br /&gt;
|Digital Surround 5.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Stereo &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|Digital Surround 7.1 &amp;lt;br /&amp;gt;(HDMI) Output&lt;br /&gt;
|- &lt;br /&gt;
!Colspan=&amp;quot;9&amp;quot;|Kodi Settings&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Audio Output Device&#039;&#039;&#039;&lt;br /&gt;
|Speakers&lt;br /&gt;
|Speakers&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|HDMI&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Number of channels&#039;&#039;&#039;&lt;br /&gt;
|2.0&lt;br /&gt;
|5.1&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|5.1&lt;br /&gt;
|2.0&lt;br /&gt;
|7.1&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled passthrough&#039;&#039;&#039;&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Passthrough output device&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|SPDIF&lt;br /&gt;
|SPDIF&lt;br /&gt;
|N/A&lt;br /&gt;
|HDMI&lt;br /&gt;
|N/A&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Dolby Digital (AC3) capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;Enabled Dolby Digital transcoding&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Enabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Enabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;TrueHD capable receiver&#039;&#039;&#039;&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;left&amp;quot;|&#039;&#039;&#039;DTS-HD capable receiver&#039;&#039;&#039; &lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|N/A&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Disabled&lt;br /&gt;
|Dsiabled&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; Where TV can decode 5.1 AC3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; Where AVR only has SPDIF which will support 5.1 AC3 &amp;amp; DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Where AVR can do 5.1 PCM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Where AVR has HDMI inputs but can&#039;t decode TrueHD or DTS-HD but does support 5.1 Ac3 or DTS.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(5)&#039;&#039;&#039; Where AVR has full decode capabilities including 7.1 PCM.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039;| You can only have &#039;&#039;&#039;AC3&#039;&#039;&#039;, &#039;&#039;&#039;DTS&#039;&#039;&#039;, &#039;&#039;&#039;EAC3&#039;&#039;&#039; passthrough &#039;&#039;&#039;if your Receiver supports it&#039;&#039;&#039;. Most &#039;&#039;&#039;TV&#039;s&#039;&#039;&#039; only support &#039;&#039;&#039;AC3&#039;&#039;&#039;. If you have a &#039;&#039;&#039;HDMI&#039;&#039;&#039; connection to your TV and &#039;&#039;&#039;from this TV&#039;&#039;&#039; a &#039;&#039;&#039;SPDIF/Optical&#039;&#039;&#039; connection to an &#039;&#039;&#039;AVR&#039;&#039;&#039;, passthrough might not work at all.}}&lt;br /&gt;
&lt;br /&gt;
== Combined Output aka dual audio==&lt;br /&gt;
If you want to output to all your attached devices in parallel, e.g. HDMI out, analog out and USB sound card, it is enough to do as below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Edit &amp;lt;code&amp;gt;/etc/pulse/default.pa&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;load-module module-combine-sink sink_name=combined&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Step 2: &#039;&#039;&#039;Restart pulseaudio.&lt;br /&gt;
&amp;lt;pre&amp;gt;killall pulseaudio&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi will then pickup the device, it is named &#039;&#039;&#039;combined&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Downside:&#039;&#039;&#039;| The dual audio sink will only output decoded audio, you cannot use it to have one slave doing AC3/DTS and the other PCM. If you use the combined sink for normal music you will realize that direct passthrough output for your movies won&#039;t be working anymore, too. This is a pulseaudio bug, cause the combine sink is not deconstructed fast enough internally while the passthrough opening is always exclusive. It will work however if your passthrough device is not part of the device combination. }}&lt;br /&gt;
&lt;br /&gt;
== Audiophile Pulse User ==&lt;br /&gt;
Pulseaudio resamples everything that does not match the underlaying sink, so if you are an audiophile user, you perhaps want to hear your 96 / 192 khz and 24 bit recordings as exact as possible. Therefore you need to tell pulseaudio to use a better resampler in general and second change the default sample rate to 96 or 192 khz. Pulseaudio does not resample audio, that is already in the correct samplerate. Furthermore you need to take care, that your sink has a wide enough output format.&lt;br /&gt;
&lt;br /&gt;
To do this configuration systemwide (96 khz in that example), change /etc/pulse/daemon.conf to include (please replace already existing lines and also remove the commenting):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default-sample-format = s32le &lt;br /&gt;
default-sample-rate = 96000&lt;br /&gt;
resample-method = speex-float-5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some remark: This will actively make &#039;&#039;&#039;passthrough non working&#039;&#039;&#039;, as we need s16le format for adding ac3 / dts / etc. float to the sink.&lt;br /&gt;
&lt;br /&gt;
The last setting will increase the resample quality from pulse and therefore the CPU load quite a lot. Again: Resampling is only done, when the sink output does not match the data you throw onto it. But as most normal mp3s are in 44.1 khz, you need to take great care when upsampling them. The overwriting of the resample-method is for this use case.&lt;br /&gt;
&lt;br /&gt;
{{orangev|&#039;&#039;&#039;Alternatively:&#039;&#039;&#039;| If you don&#039;t want any resampling outside Kodi, e.g. no resampling done extra by pulse, you need to configure the sink as told above and set Audio Engine to &#039;&#039;&#039;Fixed&#039;&#039;&#039; with the number of channels you configured pulseaudio via pavucontrol and samplerate of &#039;&#039;&#039;96 khz&#039;&#039;&#039; with resample quality high. In that combination Kodi will take care that files are resampled (e.g. 44.1 khz or 48 khz media) in the best possible quality. Already 96 khz files are not touched at all. }}&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
{{FAQ|1=When_would_I_want_Pulseaudio&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=When would I want PulseAudio?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use your Kodi computer mainly as your Desktop when you don&#039;t run XBMC.&lt;br /&gt;
* You want other applications audio like Skype, youtube, browser mail notification in parallel with Kodi.&lt;br /&gt;
* You use Kodi in windowed mode as Desktop player&lt;br /&gt;
* You use Pulseaudio as a network sink to stream Audio to other devices in your living room.&lt;br /&gt;
* Passthrough is nice to have for you, but to be honest - you don&#039;t really need it.&lt;br /&gt;
* Whenever you plugin your Bluetooth headset, Kodi audio will continue over this new device (when Default &#039;PULSE&#039; device is chosen)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=When_would_I_want_ALSA&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=When would I want ALSA?&lt;br /&gt;
| Answer=&lt;br /&gt;
You should use &#039;&#039;&#039;ALSA&#039;&#039;&#039; when:&lt;br /&gt;
&lt;br /&gt;
* You use Kodi as your standalone media center.&lt;br /&gt;
* You are highly interested in bitperfect exclusive audio output.&lt;br /&gt;
* DTS-HD, TrueHD is something you use daily and is of high importance.&lt;br /&gt;
* You don&#039;t need other applications that would access audio in parallel.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Why_cant_I_have_both?&lt;br /&gt;
| BGcolor=whitesmoke&lt;br /&gt;
| Question=Why can&#039;t I have both?&lt;br /&gt;
| Answer=&lt;br /&gt;
* &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; might hog your Audio device and you cannot open the &#039;&#039;&#039;ALSA&#039;&#039;&#039; device exclusively, therefore we decided for one or the other.&lt;br /&gt;
* Whenever &#039;&#039;&#039;PulseAudio&#039;&#039;&#039; is running your &#039;&#039;&#039;ALSA&#039;&#039;&#039; device that Kodi chooses, might be busy or even might vanish while you are using Kodi, when system sounds are playing and pulseaudio is trying to access the device again. Out of this reason we also won&#039;t implement a selection box to decide between &#039;&#039;&#039;ALSA&#039;&#039;&#039; and &#039;&#039;&#039;PULSE&#039;&#039;&#039;, because it will actively harm users. Advanced Users can go with the workaround listed beneath.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{FAQ|1=Forcing_alsa&lt;br /&gt;
| BGcolor=&lt;br /&gt;
| Question=Can I force ALSA even with PulseAudio installed?&lt;br /&gt;
| Answer=&lt;br /&gt;
{{note|Doing so may cause problems!}}&lt;br /&gt;
&lt;br /&gt;
Yes, you can - start Kodi from terminal with:&lt;br /&gt;
&amp;lt;pre&amp;gt;pasuspender -- env AE_SINK=ALSA kodi&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;pasuspender&#039;&#039;&#039; is a tool that can be used to tell a local PulseAudio sound server to temporarily suspend access to the audio devices, to allow other applications access them directly. pasuspender will suspend access to the audio devices, fork a child process, and when the child process terminates, resume access again.&lt;br /&gt;
&lt;br /&gt;
You can also put the previous command in a custom .desktop-file.&lt;br /&gt;
&lt;br /&gt;
Be warned as this will interfere with your Desktop sounds!&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
=== Known issues ===&lt;br /&gt;
When your audio is much too fast or crackles a lot or passthrough only produces noise, you might have a broken driver in use. If this is the case, try to add &#039;&#039;tsched=0&#039;&#039; to the udev loading section in /etc/pulse/default.pa to read like:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;load-module module-udev-detect tsched=0&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When Pulseaudio is configured to be multi-channel output, e.g. 5.1 profile from within pavucontrol, 2.0 streams are automatically upmixed, no matter what setting you have chosen in Kodi. This is default pulseaudio server behaviour. You can workaround that by disabling &#039;&#039;enable-remixing&#039;&#039; in /etc/pulse/daemon.conf&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;enable-remixing = no&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Beware: This will also forbid PA to remix e.g. FL,FR, LFE, FC, BL, BR into FL, FR, LFE, FC, SL, SR - which means you might loose your rears if your speaker layout is non standard.&lt;br /&gt;
&lt;br /&gt;
Audio devices are disappearing with pulseaudio 8.0 (Ubuntu 16.04) especially while running kodi and while using &#039;&#039;Adjust Refreshrate to match video&#039;&#039;. This is an issue with the module-switch-on-port-available module and will be fixed with pulseaudio 9.0, the fix sadly won&#039;t probably make it into Ubuntu 16.04. As a workaround please disable that feature by editing /etc/pulse/default.pa and commenting or removing &#039;&#039;load-module module-switch-on-port-available&#039;&#039; and reboot the system.&lt;br /&gt;
&lt;br /&gt;
== HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
====[[PulseAudio/HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu|HOW-TO: Disable PulseAudio and use ALSA (without removing PulseAudio) for Ubuntu]]====&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{forum link2|[[forum:183436|Linux - Pulseaudio Sink]] Discussion and further information.}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Audio]]&lt;/div&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User:Niklas_Holm/sandbox1&amp;diff=106043</id>
		<title>User:Niklas Holm/sandbox1</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User:Niklas_Holm/sandbox1&amp;diff=106043"/>
		<updated>2015-11-30T14:27:53Z</updated>

		<summary type="html">&lt;p&gt;Niklas Holm: work in progress&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{greenv|Information:|This page contains explanation about EDID generation and usage in xorg.conf}}&lt;br /&gt;
{{bluev|Advanced:|The information contained in this page is considered advanced.}}&lt;br /&gt;
{{redv|Warning:|The informations contained in this page can cause issues with your X if any errors or incorrect information is entered.}}&lt;br /&gt;
&lt;br /&gt;
{{xorgnav}}&lt;br /&gt;
&lt;br /&gt;
==Outline==&lt;br /&gt;
If your machine has a black screen only when you boot it up before the TV or AVR, follow this guide. &lt;br /&gt;
&lt;br /&gt;
On some combinations of equipments (&#039;&#039;&#039;AVR/TV/XBMC&#039;&#039;&#039;), in rarer cases you may find that the order you power on your equipment matters. This is obviously inconvenient but can be easily fixed.&lt;br /&gt;
&lt;br /&gt;
The root cause of this issue is the &#039;&#039;&#039;EDID&#039;&#039;&#039; (Extended display identification data) handshake. Xorg may not correctly handshake with &#039;&#039;&#039;AV&#039;&#039;&#039; equipment after boot. Typically this results in a black screen and a full system shut down and restart to rectify.&lt;br /&gt;
&lt;br /&gt;
In this guide we will show you how to trick Xorg into thinking your AV equipment is connected and powered on at all times. This locks on your install to one monitor/AVR (port specific) and should stop all handshake issues.&lt;br /&gt;
&lt;br /&gt;
This example is for a Nvidia GPU, other GPUs will have a similar approach but are not covered here.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
There are several methods for acquiring EDID information from Xorg.0.log, but in this page we use output from XRandR piped through grep and xxd which has the advantage of not having to restart the X server.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need:&lt;br /&gt;
&lt;br /&gt;
* Shell access.&lt;br /&gt;
* Sudo privileges&lt;br /&gt;
* parse-edid&lt;br /&gt;
* nvidia-xconfig&lt;br /&gt;
&lt;br /&gt;
You should be running as normal user while following this guide, i.e. not as &#039;&#039;&#039;root&#039;&#039;&#039;&lt;br /&gt;
Any further references to &amp;quot;root&amp;quot; are meant to be interpreted as base directory not the user.&lt;br /&gt;
&lt;br /&gt;
{{note|&#039;&#039;&#039;[http://manpages.ubuntu.com/manpages/trusty/man1/get-edid.1.html parse-edid]&#039;&#039;&#039; can be installed on Ubuntu with &amp;quot;sudo apt-get install read-edid&amp;quot;}}&lt;br /&gt;
{{note|&#039;&#039;&#039;[http://manpages.ubuntu.com/manpages/precise/man1/alt-nvidia-96-xconfig.1.html nvidia-xconfig]&#039;&#039;&#039; is already installed on Ubuntu and variants if you have the &#039;&#039;&#039;nvidia-current drivers installed&#039;&#039;&#039; via the Ubuntu packaging or X-swat PPA. This guide is not intended to instruct users on full use of this tool.}}&lt;br /&gt;
&lt;br /&gt;
==Generating &amp;amp; using edid.bin==&lt;br /&gt;
Make sure your install is in a working state, powered on in the correct order so that you can see the GUI.&lt;br /&gt;
&lt;br /&gt;
{{how-to&lt;br /&gt;
 |Step1=&lt;br /&gt;
Open a terminal session to your machine and backup any existing xorg.conf (either via [[SSH]] or locally).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;sudo cp -pi /etc/X11/xorg.conf /etc/X11/xorg.conf.bak&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 |Step2=&lt;br /&gt;
You can use a current xorg.conf and should always have a backup of existing, however if you want to start with an fresh xorg.conf proceed with following step.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo nvidia-xconfig -s --no-logo --force-generate --output-xconfig=/etc/X11/xorg.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 |Step3=&lt;br /&gt;
Now we work out the display device name of your attached monitor&lt;br /&gt;
&lt;br /&gt;
type:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
grep &amp;quot;ConnectedMonitor&amp;quot; /var/log/Xorg.0.log |cut -f2 -d\&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you should see message like the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ConnectedMonitor&lt;br /&gt;
DFP-0&lt;br /&gt;
DFP-0&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Take a note of the DFP number, in this example &amp;quot;DFP-0&amp;quot;. Your number may vary.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Extracting EDID binary ==&lt;br /&gt;
We use XRandR, grep and xxd to extract the EDID information and generate a binary&lt;br /&gt;
&lt;br /&gt;
{{how-to&lt;br /&gt;
 |Step1=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
sudo sh -c &#039;xrandr -display :0.0 --verbose -q | grep -Pzo &#039;&amp;quot;&#039;&amp;quot;&#039;(?&amp;lt;=EDID:)(\s+[0-9a-f]{32})+&#039;&amp;quot;&#039;&amp;quot;&#039; | xxd -r -p &amp;gt; /etc/X11/edid.bin&#039;&lt;br /&gt;
sudo chmod 444 /etc/X11/edid.bin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 |Step2=&lt;br /&gt;
Check that the integrity of binary by using parse-edid&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
cat /etc/X11/edid.bin | parse-edid | grep -i &amp;quot;checksum&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
On success you should see a message like the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Checksum Correct&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you don&#039;t see this message, or any other message in addition to the above, such as&lt;br /&gt;
&amp;lt;pre&amp;gt;I only know about extension blocks of type 02h ...&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;Extension block checksum failed&amp;lt;/pre&amp;gt;&lt;br /&gt;
please examine the output from&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
xrandr -display :0.0 --verbose -q&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
manually to try to locate the issue.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Configure xorg to read from EDID ==&lt;br /&gt;
Now edit the xorg.conf you created again&lt;br /&gt;
&lt;br /&gt;
{{how-to&lt;br /&gt;
 |Step1=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;sudo nvidia-xconfig --connected-monitor=&amp;quot;DFP-0&amp;quot; --custom-edid=&amp;quot;DFP-0:/etc/X11/edid.bin&amp;quot; --use-edid --xconfig=/etc/X11/xorg.conf&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{redv|Important:|It is VITAL you change the &#039;&#039;&#039;DFP-&amp;lt;big&amp;gt;#&amp;lt;/big&amp;gt;&#039;&#039;&#039; number to match the one we found earlier.}}&lt;br /&gt;
&lt;br /&gt;
If you open your xorg.conf with an text editor/reader, your screen section will look something like the &#039;&#039;&#039;example&#039;&#039;&#039; below.&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;
Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
    Identifier     &amp;quot;Screen0&amp;quot;&lt;br /&gt;
    Device         &amp;quot;Device0&amp;quot;&lt;br /&gt;
    Monitor        &amp;quot;Monitor0&amp;quot;&lt;br /&gt;
    DefaultDepth    24&lt;br /&gt;
    Option         &amp;quot;NoLogo&amp;quot; &amp;quot;True&amp;quot;&lt;br /&gt;
    Option         &amp;quot;UseEdid&amp;quot; &amp;quot;True&amp;quot;&lt;br /&gt;
    Option         &amp;quot;CustomEDID&amp;quot; &amp;quot;DFP-0:/etc/X11/edid.bin&amp;quot;&lt;br /&gt;
    Option         &amp;quot;ConnectedMonitor&amp;quot; &amp;quot;DFP-0&amp;quot;&lt;br /&gt;
    SubSection     &amp;quot;Display&amp;quot;&lt;br /&gt;
        Depth       24&lt;br /&gt;
    EndSubSection&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Since we have created a new xorg.conf file in a location the OS knows to use as default, no further changes need made to make this permanent. If at a later date you need to undo this work simple rename the config file and reboot to revert to default.&lt;br /&gt;
&lt;br /&gt;
If all has went to plan when you reboot everything will just work and the order of powering equipment up will not matter anymore.&lt;br /&gt;
&lt;br /&gt;
{{note|If your equipment is coupled to a receiver that has broader HDMI capabilities than your TV, you should edit your xorg.conf so that the &#039;&#039;&#039;section &amp;quot;Screen&amp;quot;&#039;&#039;&#039; looks like this:}}&amp;lt;br /&amp;gt;&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;
Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
    Identifier     &amp;quot;screen&amp;quot;&lt;br /&gt;
    Device         &amp;quot;nvidia&amp;quot;&lt;br /&gt;
    DefaultDepth    24&lt;br /&gt;
    Option         &amp;quot;ColorRange&amp;quot; &amp;quot;Full&amp;quot;&lt;br /&gt;
    Option         &amp;quot;ColorSpace&amp;quot; &amp;quot;RGB&amp;quot;&lt;br /&gt;
    SubSection     &amp;quot;Display&amp;quot;&lt;br /&gt;
        Depth       24&lt;br /&gt;
    EndSubSection&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== EDID Library ==&lt;br /&gt;
&lt;br /&gt;
The edid library is intended to be a collection of user generated edid.bin for equipment such as TV&#039;s or AVR&#039;s in case users want to test or modify or share with others existing edid&#039;s.&lt;br /&gt;
This section is a WIP and will need to be improved on by users. &lt;br /&gt;
&lt;br /&gt;
Use the &#039;&#039;&#039;Legend&#039;&#039;&#039; below as a guide to fill in new entries onto the &#039;&#039;&#039;edid.bin&#039;&#039;&#039; table.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot; | &#039;&#039;&#039;Legend&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{no}}&lt;br /&gt;
| {{NA}}&lt;br /&gt;
| {{?}}&lt;br /&gt;
| Other&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{yes}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{no}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{NA}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{?}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| Other&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{redv|Warning:|Make sure you have a backup of your current installation before using any &#039;&#039;&#039;edid.bin&#039;&#039;&#039; below. Verify download integrity via MD5 checksum.}}&lt;br /&gt;
&lt;br /&gt;
Below is an area that the general community can share their &#039;&#039;&#039;edid.bin&#039;&#039;&#039; and relevant information with other users.&lt;br /&gt;
&amp;lt;br /&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Feel free to update and share your experience below.&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;text-align: center&amp;quot;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 100px&amp;quot; | &#039;&#039;&#039;TV Brand&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 100px&amp;quot; | &#039;&#039;&#039;AVR Brand&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 100px&amp;quot; | &#039;&#039;&#039;Model&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 150px&amp;quot; | &#039;&#039;&#039;GPU Brand/Model&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 100px&amp;quot; | &#039;&#039;&#039;Working&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 200px&amp;quot; | &#039;&#039;&#039;Download link&#039;&#039;&#039;&lt;br /&gt;
! style=&amp;quot;background: #DBDBDB; width: 150px&amp;quot; colspan=&amp;quot;2&amp;quot; | &#039;&#039;&#039;Download contents&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Samsung&lt;br /&gt;
| {{NA}}&lt;br /&gt;
| Series 5&lt;br /&gt;
| Nvidia ION&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| [https://dl.dropboxusercontent.com/u/4325533/edid.zip Download edid.zip]&lt;br /&gt;
| edid.bin || edid.md5&lt;br /&gt;
|-&lt;br /&gt;
| {{?}}&lt;br /&gt;
| {{?}}&lt;br /&gt;
| {{?}}&lt;br /&gt;
| {{?}}&lt;br /&gt;
| {{?}}&lt;br /&gt;
| [http://placeholder-download.com Download edid.bin]&lt;br /&gt;
| {{?}} || {{?}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{note|Recommended you would create a md5 checksum of the edid.bin and compress both so it can be checked for integrity on download.}}&lt;br /&gt;
&lt;br /&gt;
== Credits ==&lt;br /&gt;
The edid instructions are adapted from the Openelec wiki, credit to original authors&amp;lt;ref&amp;gt;[http://wiki.openelec.tv/index.php?title=Config_EDID_nvidia Config EDID NVidia]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
</feed>