2009-07-15, 11:08
If you ever had problems getting the correct resoulution on your htpc this
is an easy guide.
IMPORTANT!
This guide asumes you are running a xbmc-live 9.04 wich
also means Ubuntu Jaunty 9.04 with Nvidia restricted drivers 185.18.14
I bellive it however should be pretty "generic" but use this guide on your own risk. if you end up without a picture on your screen dont blame me.
Im no linux guru so if there are any who read this and find anything wrong please say so !
First of all make sure you backup you original xorg.conf.
your xorg conf is found here:
Then generate a new clean xorg.conf by doing this in a terminal:
Now you have a new clean xorg.conf.
Do the following
then add the following lines in the correct section of that file:
Section "monitor"
Section "Device"
Now close and save the file by hitting "Ctrl + X" on your keyboard. Then press "Y" and "enter"
Now we need to figure out what kind of resolution your TV supports by its EDID info:
Kill xbmc if it's running by
then we need to setup a logfile wich logs your tv's edid modes:
kill X by pressing "Ctrl" + "C"
In the root of your home directory you will find a xlog.txt (/home/xbmc/xlog.txt)
Open the file and browse until you see something like this section:
[HTML]
(II) NVIDIA(0): Frequency information for SAMSUNG (DFP-1):
(II) NVIDIA(0): HorizSync : 15.000-50.000 kHz
(II) NVIDIA(0): VertRefresh : 48.000-62.000 Hz
(II) NVIDIA(0): (HorizSync from EDID)
(II) NVIDIA(0): (VertRefresh from EDID)
[/HTML]
Write Down the HorizSync and VertRefresh values.
Browse further and find all the validated modes. Like the example underneath:
[HTML]
(II) NVIDIA(0): Validating Mode "1920x1080":
(II) NVIDIA(0): 1920 x 1080 @ 60 Hz
(II) NVIDIA(0): For use as DFP backend.
(II) NVIDIA(0): Mode Source: EDID
(II) NVIDIA(0): Pixel Clock : 74.25 MHz
(II) NVIDIA(0): HRes, HSyncStart : 1920, 2008
(II) NVIDIA(0): HSyncEnd, HTotal : 2052, 2200
(II) NVIDIA(0): VRes, VSyncStart : 1080, 1084
(II) NVIDIA(0): VSyncEnd, VTotal : 1094, 1124
(II) NVIDIA(0): H/V Polarity : +/+
(II) NVIDIA(0): Extra : Interlace
(II)NVIDIA(0): Mode is valid.
[/HTML]
Make sure that the "(II)NVIDIA(0): Mode is valid." line exists on the one you pick. 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:
Now that we got bot vsync,hsync and a working modeline lets put it in our xorg.conf.
issue from terminal:
Then add from what you wrote down earlier.
Section "Monitor"
(edit the ones there allready)
SubSection "Display"
IMPORTANT! This line must match the modeline you created ! In my case it was "1920x1080"
Now close and save the file by hitting "Ctrl + X" on your keyboard. Then press "Y" and "enter"
Start xbmc by running it:
You should get a nice correct screen, make sure to go into settings - screen and calibrate/adjust your new resoultion.
If not try another modeline using same methods and see if that works.
This guide was made from the following sources:
http://ubuntuforums.org/showthread.php?t...nes&page=2
http://www.nvnews.net/vbulletin/showthread.php?t=118701
is an easy guide.
IMPORTANT!
This guide asumes you are running a xbmc-live 9.04 wich
also means Ubuntu Jaunty 9.04 with Nvidia restricted drivers 185.18.14
I bellive it however should be pretty "generic" but use this guide on your own risk. if you end up without a picture on your screen dont blame me.
Im no linux guru so if there are any who read this and find anything wrong please say so !
First of all make sure you backup you original xorg.conf.
your xorg conf is found here:
Code:
/etc/X11/xorg.conf
Then generate a new clean xorg.conf by doing this in a terminal:
Code:
sudo nvidia-xconfig
Now you have a new clean xorg.conf.
Do the following
Code:
sudo nano /etc/X11/xorg.conf
then add the following lines in the correct section of that file:
Section "monitor"
Code:
Option "ExactModeTimingsDVI" "TRUE"
Section "Device"
Code:
Option "ModeValidation" "NoEdidModes"
Now close and save the file by hitting "Ctrl + X" on your keyboard. Then press "Y" and "enter"
Now we need to figure out what kind of resolution your TV supports by its EDID info:
Kill xbmc if it's running by
Code:
sudo /etc/init.d/xbmc-live stop
then we need to setup a logfile wich logs your tv's edid modes:
Code:
cd ~
Code:
X -verbose 6 > ~/xlog.txt 2>&1
kill X by pressing "Ctrl" + "C"
In the root of your home directory you will find a xlog.txt (/home/xbmc/xlog.txt)
Open the file and browse until you see something like this section:
[HTML]
(II) NVIDIA(0): Frequency information for SAMSUNG (DFP-1):
(II) NVIDIA(0): HorizSync : 15.000-50.000 kHz
(II) NVIDIA(0): VertRefresh : 48.000-62.000 Hz
(II) NVIDIA(0): (HorizSync from EDID)
(II) NVIDIA(0): (VertRefresh from EDID)
[/HTML]
Write Down the HorizSync and VertRefresh values.
Browse further and find all the validated modes. Like the example underneath:
[HTML]
(II) NVIDIA(0): Validating Mode "1920x1080":
(II) NVIDIA(0): 1920 x 1080 @ 60 Hz
(II) NVIDIA(0): For use as DFP backend.
(II) NVIDIA(0): Mode Source: EDID
(II) NVIDIA(0): Pixel Clock : 74.25 MHz
(II) NVIDIA(0): HRes, HSyncStart : 1920, 2008
(II) NVIDIA(0): HSyncEnd, HTotal : 2052, 2200
(II) NVIDIA(0): VRes, VSyncStart : 1080, 1084
(II) NVIDIA(0): VSyncEnd, VTotal : 1094, 1124
(II) NVIDIA(0): H/V Polarity : +/+
(II) NVIDIA(0): Extra : Interlace
(II)NVIDIA(0): Mode is valid.
[/HTML]
Make sure that the "(II)NVIDIA(0): Mode is valid." line exists on the one you pick. 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:
Code:
ModeLine "1920x1080" 74.25 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync Interlace
Now that we got bot vsync,hsync and a working modeline lets put it in our xorg.conf.
issue from terminal:
Code:
sudo nano /etc/X11/xorg.conf
Then add from what you wrote down earlier.
Section "Monitor"
Code:
HorizSync 15 - 50
VertRefresh 48 - 62
ModeLine "1920x1080" 74.25 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync Interlace
SubSection "Display"
Code:
Modes "1920x1080"
Now close and save the file by hitting "Ctrl + X" on your keyboard. Then press "Y" and "enter"
Start xbmc by running it:
Code:
sudo /etc/init.d/xbmc-live start
You should get a nice correct screen, make sure to go into settings - screen and calibrate/adjust your new resoultion.
If not try another modeline using same methods and see if that works.
This guide was made from the following sources:
http://ubuntuforums.org/showthread.php?t...nes&page=2
http://www.nvnews.net/vbulletin/showthread.php?t=118701