User:UNiversal: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>UNiversal
>UNiversal
m (leave navigation behind so I can keep eye on it because of howt-to template.)
Line 31: Line 31:
<center>{{Navigation
<center>{{Navigation
| nav name =Xorg
| nav name =Xorg
| link1 =User:UNiversal
| link1 =Configuring_resolution_via_xorg.conf
| link1 name ='''Resolution configuration xorg.conf'''
| link1 name ='''Configuring resolution via xorg.conf'''
| link2 =Xorg_Modelines
| link2 =Xorg_Modelines
| link2 name ='''Xorg Modelines'''
| link2 name ='''Xorg Modelines'''
Line 40: Line 40:
| link4 name ='''Creating and using edid.bin via xorg.conf'''
| link4 name ='''Creating and using edid.bin via xorg.conf'''
}}</center>
}}</center>
{{-}}
{{TOC left}}
{{-}}
==Configuring resolution via xorg.conf==
{{greenv|Information:|This page contains explanation about modelines in xorg.conf}}
{{bluev|Advanced:|The information contained in this page is considered advanced.}}
{{redv|Warning:|The informations contained in this page can cause issues with your X if any errors or incorrect information is entered.}}
=='''Outline'''==
The xorg.conf is a integral part of running XBMC in X via for e.g. xinit in some controllable manner.
While in recent Linux the device drivers have improved considerably and deem xorg.conf unneeded, it still has its niche.
If you ever had problems getting the correct resolution or correct modelines on your HTPC this is an easy guide.
You can also use this guide to tweak 23.976p and 24p modelines for smoother playback..
=='''Introduction'''==
This instructions and methods outlined here should be quite "generic", <u>use this guide on your own risk</u>. if you end up without a picture on your screen restore the backup xorg.conf or rename existing if no backup exists. '''References'''<ref>[http://ubuntuforums.org/showthread.php?t=1003099&highlight=modelines&page=2 Nvidia, Modelines, Overscan...8.10]</ref><ref>[http://www.nvnews.net/vbulletin/showthread.php?t=118701 Disable fallback to nvidia-auto-select]</ref><ref>[http://forum.xbmc.org/showthread.php?tid=54685 Linux HOW-TO setup XBMC and Linux with correct resolution xorg.conf]</ref>
=='''Preparing xorg.conf for tweaking'''==
Backing up any existing xorg.conf is a integral step in assuring your can revert any errors.
{{how-to
|Step1=
<source lang="bash">cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak</source>
Then generate a new clean xorg.conf to have a base which to build on later,
{{Note|You probably can use this for other non-NVidia systems, this is something you need to research how-to generate a xorg.conf for ATI or Intel and if you need one to begin with. '''feel free to update this guide'''.}}<br />
|Step2=
<source lang="bash">sudo nvidia-xconfig -s --no-logo --no-composite --no-dynamic-twinview --force-generate --output-xconfig=/etc/X11/xorg.conf</source>
|Step3=
Now we need to edit the new xorg.conf to add some options.
<source lang="bash">sudo nano /etc/X11/xorg.conf</source>
then add the following lines in the correct section of that file:
<source lang="xml">Section "monitor"
Option "ExactModeTimingsDVI" "true"
Option "DPI" "96 x 96"
Option "DPMS" "false"</source>
|Step4=
The validation lines vary from setup to setup and depend very much on how well your TV handles EDID,
Telling xorg to ignore EDID may result in low resolution being shown in xbmc, if you dont offer correct and valid modelines for xbmc-xandrc to pick from.
In this example we are not disabling EDID data.
We definitely dont want '''vesa''' modes or '''xserver''' modes
<source lang="xml">Section "Device"
Option "ModeValidation" "NoVesaModes, NoXServerModes"</source><br />
{{note|Some difficult TV/AVR Edid can be turned off by appending <code>"NoEdidModes"</code> to the '''Modevalidation''' line parameters. However '''<u>notice</u>''' this may affect some modelines being validated and used.}}<br />
Now close and save the file by hitting {{keypress|Ctrl|X}} on your keyboard. Then press {{keypress|Y}} followed by {{keypress|enter}}
}}
===Refresh rate & Modelines values===
'''These are very important values to get right'''.
{{how-to
|Step1=
Now we need to figure out what kind of '''HorizSync'''/'''VertRefresh''' and resolution your '''TV/AVR''' supports by its EDID info:
Kill xbmc if it's running by
<source lang="bash">sudo stop xbmc</source>
Then we need to setup a logfile which logs your '''TV/AVR''' EDID modes:
<source lang="bash">cd ~
sudo X -verbose 6 > ~/xlog.txt 2>&1</source>
This process needs interrupting via {{keypress|Ctrl|C}} after a few seconds.
In the root of your home directory you will '''find a xlog.txt''' <big>'''<code>/home/xbmc/xlog.txt</code>'''</big>
|Step2=
Open the <code>(/home/xbmc/xlog.txt)</code> file and browse until you see something like this section:
<pre>
(II) NVIDIA(0): Frequency information for SAMSUNG (DFP-0):
(II) NVIDIA(0):  HorizSync  : 26.000-76.000 kHz
(II) NVIDIA(0):  VertRefresh : 23.000-61.000 Hz
(II) NVIDIA(0):    (HorizSync from EDID)
(II) NVIDIA(0):    (VertRefresh from EDID)
</pre>
Write Down or make a note of the '''HorizSync''' and '''VertRefresh''' values.
|Step3=
Browse further on <code>(/home/xbmc/xlog.txt)</code> and find all the validated modes. Like the example below:
<pre>
(II) NVIDIA(GPU-0):  Validating Mode "1920x1080":
(II) NVIDIA(GPU-0):    1920 x 1080 @ 24 Hz
(II) NVIDIA(GPU-0):    Mode Source: EDID
(II) NVIDIA(GPU-0):      Pixel Clock      : 74.16 MHz
(II) NVIDIA(GPU-0):      HRes, HSyncStart : 1920, 2558
(II) NVIDIA(GPU-0):      HSyncEnd, HTotal : 2602, 2750
(II) NVIDIA(GPU-0):      VRes, VSyncStart : 1080, 1084
(II) NVIDIA(GPU-0):      VSyncEnd, VTotal : 1089, 1125
(II) NVIDIA(GPU-0):      H/V Polarity    : +/+
(II) NVIDIA(GPU-0):    Viewport                1920x1080+415+22
(II) NVIDIA(GPU-0):      Horizontal Taps        0
(II) NVIDIA(GPU-0):      Vertical Taps          0
(II) NVIDIA(GPU-0):      Base SuperSample      x1
(II) NVIDIA(GPU-0):      Base Depth            32
(II) NVIDIA(GPU-0):      Distributed Rendering  1
(II) NVIDIA(GPU-0):      Overlay Depth          32
(II) NVIDIA(GPU-0):    Mode is valid.
</pre>
{{note|Make sure that the '''"(II)NVIDIA(0): Mode is valid."''' line exists on the one you pick.}}
|Step4=
To create a modeline from this is easy. From my example above the first line would be "1920x1080" and then 74.25 and then 1920 2008 and 2052 2200 and so on. you just read the values from top to bottom.
So in this example the modeline that section gives me would be:
<source lang="xml">ModeLine "1920x1080_24" 74.16 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync</source>
}}
===Assembling your xorg.conf===
Now that we got both '''HorizSync''' and '''VertRefresh''' and a working modeline lets put it in our xorg.conf.
{{how-to
|Step1=
Issue from terminal:
<source lang="bash">sudo nano /etc/X11/xorg.conf</source>
|Step2=
Then add from what you wrote down earlier.
<source lang="xml">Section "Monitor"
HorizSync      15 - 50
VertRefresh    48 - 62
ModeLine "1920x1080" 74.25 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync Interlace
</source>
(or edit the ones there already if your xorg.conf already contains some modelines)
<source lang="xml">SubSection "Display"
Modes "1920x1080"</source>
{{redv|IMPORTANT:|This line must match the modeline you created ! In this example it was "'''1920x1080'''", However '''"1280x720"''' Modelines are also ok if your TV is only '''HD Ready'''}}
|Step3=
Now close and save the file by hitting {{keypress|Ctrl|X}} on your keyboard. Then press {{keypress|Y}} followed by {{keypress|Enter}}
|Step4=
Start xbmc by running it:
<source lang="bash">sudo xbmc start</source>
You should get a nice correct screen, make sure to go into settings - screen and calibrate/adjust your new resolution.
If not try another modeline using same methods and see if that works.
{{note|Almost ready to use xorg.conf to get you started '''see''' [[Minimal NVidia xorg.conf]]}}
}}
==Discussion==
{{forum link2|See the [[forum:54685|HOW-TO setup XBMC and Linux with correct resolution]] for discussion and more information.}}
==References==
<references/>


==templates to be==
==templates to be==

Revision as of 08:49, 28 April 2013

uNiversal
uNiversal
Error! Out of Memory
Forumite & Wikifier
System Details: Linux.2.7~Custom
Brain Version: Positronic 2.0
Power Matrix: Hybrid/Biologic
Ctrl+Alt+Del


95% Completed


 Xorg: Configuring resolution via xorg.conf Xorg Modelines Minimal NVidia xorg.conf Creating and using edid.bin via xorg.conf 

templates to be

Template:orangev

{{{1}}} {{{1}}}
[create] Documentation

Template:goldv

{{{1}}} {{{1}}}
[create] Documentation


Template:Quote

{{{1}}}
[create] Documentation


Template:helpn

HELP NOTICE: {{{1}}}
[create] Documentation


Template:Note REMEMBER

[create] Documentation


Template:Tip TIP

[create] Documentation


Template:Help HELP

[create] Documentation