Linux - HOW-TO setup XBMC and Linux with correct resolution (xorg.conf)

  Thread Rating:
  • 5 Votes - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Lazy^ Offline
Junior Member
Posts: 1
Joined: May 2010
Reputation: 0
Location: Earth
Post: #106
Hi,
I've LG SL8000 47" HD-TV. I've tried to get right modelines with the instructions in the beginning of this thread.
No success.
I will post my xorg.conf / Xorg.0.log / edid.txt if someone could tell me what is wrong.

xorg.conf:

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
# Option "DPMS"
Option "ExactModeTimingsDVI" "TRUE"
HorizSync 30 - 83
VertRefresh 58 - 62
ModeLine "1920x1080@60" 148.50 1920 2008 2052 2200 1080 1084 1094 1125 +hsync +vsync Interlace
ModeLine "1920x1080@50" 74.25 1920 2448 2492 2640 1080 1084 1094 1124 +hsync +vsync Interlace
ModeLine "1920x1080@24" 74.16 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync Interlace
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "ModeValidation" "NoEdidModes"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "DynamicTwinView" "False"
Option "FlatPanelProperties" "Scaling = Native"
SubSection "Display"
Depth 24
Modes "1920x1080@60" "1920x1080@50" #"1920x1080@24
EndSubSection
EndSection

Xorg.0.log:
[SIZE="3"]**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(**) NVIDIA(0): Option "ExactModeTimingsDVI" "TRUE"
(**) NVIDIA(0): Option "ModeValidation" "NoEdidModes"
(**) NVIDIA(0): Option "FlatPanelProperties" "Scaling = Native"
(**) NVIDIA(0): Option "DynamicTwinView" "False"
(--) May 25 14:29:28 NVIDIA(0): Connected display device(s) on ION at PCI:2:0:0:
(--) May 25 14:29:28 NVIDIA(0): LG TV (DFP-0)
(--) May 25 14:29:28 NVIDIA(0): LG TV (DFP-0): 165.0 MHz maximum pixel clock
(--) May 25 14:29:28 NVIDIA(0): LG TV (DFP-0): Internal Single Link TMDS
(II) May 25 14:29:28 NVIDIA(0): Mode Validation Overrides for LG TV (DFP-0):
(II) May 25 14:29:28 NVIDIA(0): NoEdidModes
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid VertRefresh range (58.000-62.000 Hz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
(WW) May 25 14:29:28 NVIDIA(0): check for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode "1280x720"
(WW) May 25 14:29:28 NVIDIA(0): is specified in the EDID; however, the EDID's valid
(WW) May 25 14:29:28 NVIDIA(0): VertRefresh range (58.000-62.000 Hz) would exclude this
(WW) May 25 14:29:28 NVIDIA(0): mode's VertRefresh (50.0 Hz); ignoring VertRefresh check
(WW) May 25 14:29:28 NVIDIA(0): for mode "1280x720".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid HorizSync range (30.000-83.000 kHz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's HorizSync (28.1 kHz); ignoring HorizSync check
(WW) May 25 14:29:28 NVIDIA(0): for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid VertRefresh range (58.000-62.000 Hz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
(WW) May 25 14:29:28 NVIDIA(0): check for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode "720x576"
(WW) May 25 14:29:28 NVIDIA(0): is specified in the EDID; however, the EDID's valid
(WW) May 25 14:29:28 NVIDIA(0): VertRefresh range (58.000-62.000 Hz) would exclude this
(WW) May 25 14:29:28 NVIDIA(0): mode's VertRefresh (50.0 Hz); ignoring VertRefresh check
(WW) May 25 14:29:28 NVIDIA(0): for mode "720x576".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid HorizSync range (30.000-83.000 kHz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's HorizSync (27.0 kHz); ignoring HorizSync check
(WW) May 25 14:29:28 NVIDIA(0): for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid HorizSync range (30.000-83.000 kHz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's HorizSync (28.1 kHz); ignoring HorizSync check
(WW) May 25 14:29:28 NVIDIA(0): for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid VertRefresh range (58.000-62.000 Hz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's VertRefresh (25.0 Hz); ignoring VertRefresh
(WW) May 25 14:29:28 NVIDIA(0): check for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode
(WW) May 25 14:29:28 NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
(WW) May 25 14:29:28 NVIDIA(0): valid VertRefresh range (58.000-62.000 Hz) would exclude
(WW) May 25 14:29:28 NVIDIA(0): this mode's VertRefresh (30.0 Hz); ignoring VertRefresh
(WW) May 25 14:29:28 NVIDIA(0): check for mode "1920x1080".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode "720x576"
(WW) May 25 14:29:28 NVIDIA(0): is specified in the EDID; however, the EDID's valid
(WW) May 25 14:29:28 NVIDIA(0): HorizSync range (30.000-83.000 kHz) would exclude this
(WW) May 25 14:29:28 NVIDIA(0): mode's HorizSync (15.6 kHz); ignoring HorizSync check for
(WW) May 25 14:29:28 NVIDIA(0): mode "720x576".
(WW) May 25 14:29:28 NVIDIA(0): The EDID for LG TV (DFP-0) contradicts itself: mode "720x576"
(WW) May 25 14:29:28 NVIDIA(0): is specified in the EDID; however, the EDID's valid
(WW) May 25 14:29:28 NVIDIA(0): VertRefresh range (58.000-62.000 Hz) would exclude this
(WW) May 25 14:29:28 NVIDIA(0): mode's VertRefresh (50.1 Hz); ignoring VertRefresh check
(WW) May 25 14:29:28 NVIDIA(0): for mode "720x576".
(II) May 25 14:29:28 NVIDIA(0): Assigned Display Device: DFP-0
(WW) May 25 14:29:28 NVIDIA(0): No valid modes for "1920x1080@60"; removing.
(WW) May 25 14:29:28 NVIDIA(0):
(WW) May 25 14:29:28 NVIDIA(0): Unable to validate any modes; falling back to the default mode
(WW) May 25 14:29:28 NVIDIA(0): "nvidia-auto-select".
(WW) May 25 14:29:28 NVIDIA(0):
(II) May 25 14:29:28 NVIDIA(0): Validated modes:
(II) May 25 14:29:28 NVIDIA(0): "nvidia-auto-select"

edid.txt:

[SIZE="3"]
(II) May 22 20:20:17 NVIDIA(0): Mode Validation Overrides for LG TV (DFP-0):
(II) May 22 20:20:17 NVIDIA(0): NoEdidModes
(II) May 22 20:20:17 NVIDIA(0): Frequency information for LG TV (DFP-0):
(II) May 22 20:20:17 NVIDIA(0): HorizSync : 30.000-83.000 kHz
(II) May 22 20:20:17 NVIDIA(0): VertRefresh : 58.000-62.000 Hz
(II) May 22 20:20:17 NVIDIA(0): (HorizSync from EDID)
(II) May 22 20:20:17 NVIDIA(0): (VertRefresh from EDID)
(II) May 22 20:20:17 NVIDIA(0):
(II) May 22 20:20:17 NVIDIA(0): --- Building ModePool for LG TV (DFP-0) ---
(II) May 22 20:20:17 NVIDIA(0): Validating Mode "1920x1080":
(II) May 22 20:20:17 NVIDIA(0): 1920 x 1080 @ 60 Hz
(II) May 22 20:20:17 NVIDIA(0): For use as DFP backend.
(II) May 22 20:20:17 NVIDIA(0): Mode Source: EDID
(II) May 22 20:20:17 NVIDIA(0): Pixel Clock : 148.50 MHz
(II) May 22 20:20:17 NVIDIA(0): HRes, HSyncStart : 1920, 2008
(II) May 22 20:20:17 NVIDIA(0): HSyncEnd, HTotal : 2052, 2200
(II) May 22 20:20:17 NVIDIA(0): VRes, VSyncStart : 1080, 1084
(II) May 22 20:20:17 NVIDIA(0): VSyncEnd, VTotal : 1089, 1125
(II) May 22 20:20:17 NVIDIA(0): H/V Polarity : +/+
(WW) May 22 20:20:17 NVIDIA(0): Mode is rejected: Modes from the LG TV (DFP-0)'s EDID are
(WW) May 22 20:20:17 NVIDIA(0): not allowed.
(II) May 22 20:20:17 NVIDIA(0):
(II) May 22 20:20:17 NVIDIA(0): Validating Mode "1280x720":
(II) May 22 20:20:17 NVIDIA(0): 1280 x 720 @ 60 Hz
(II) May 22 20:20:17 NVIDIA(0): For use as DFP backend.
(II) May 22 20:20:17 NVIDIA(0): Mode Source: EDID
(II) May 22 20:20:17 NVIDIA(0): Pixel Clock : 74.25 MHz
(II) May 22 20:20:17 NVIDIA(0): HRes, HSyncStart : 1280, 1390
(II) May 22 20:20:17 NVIDIA(0): HSyncEnd, HTotal : 1430, 1650
(II) May 22 20:20:17 NVIDIA(0): VRes, VSyncStart : 720, 725
(II) May 22 20:20:17 NVIDIA(0): VSyncEnd, VTotal : 730, 750
(II) May 22 20:20:17 NVIDIA(0): H/V Polarity : +/+
(WW) May 22 20:20:17 NVIDIA(0): Mode is rejected: Modes from the LG TV (DFP-0)'s EDID are
(WW) May 22 20:20:17 NVIDIA(0): not allowed.



If someone could give ideas.

I'm wondering why on edid.txt after each Mode there is this line:

Mode is rejected: Modes from the LG TV (DFP-0)'s EDID are
(WW) May 22 20:20:17 NVIDIA(0): not allowed.


- Lazy^
find quote
ewequeone Offline
Donor
Posts: 232
Joined: Jul 2006
Reputation: 0
Location: Western Australia
Post: #107
Last time I installed Linux on my first AppleTV, I must have done something differently as when I installed it on my new AppleTV yesterday, I've been unable to get the resolution any higher than 1024x768 Sad

I followed this guide to install Linux (http://wiki.xbmc.org/index.php?title=HOW...he_AppleTV) except I installed directly to the hard drive, removing the aTV o/s.

I then followed this thread specifically the first post to obtain the EDID info. My EDID info can be found here http://pastebin.ca/1936117 - Note that it states that all 1280x720 are invalid. I've used them before (although it's been about a year since I installed and subsequently removed Linux on my first AppleTV) as stated above although my TV does not support 1280x720 natively, it does scale and allow me to use 1280x720 and shows the option in XBMC.

Once I set my modelines in xorg.conf using the EDID information above, I still only had 1024x764. I remembered that I had an issue the last time I installed Linux and using an example copy of xorg.conf for HDMI from davilla's site (http://code.google.com/p/atv-bootloader/wiki/atvdisplay) and it working well. So, I tried that. Here is my xorg.conf http://pastebin.ca/1936120 - But I am still only able to select 1024x768!! Sad

Here is my Xorg.0.log http://pastebin.ca/1936119 - You can see where it is saying there are no modes for 1280x720 - It even does this when I've used the EDID information and created a modeline Sad

Any help would be appreciated!

Cheers,

Jason.

Trying to help clean up the afterbirth :laugh:
find quote
vajonam Offline
Donor
Posts: 356
Joined: Sep 2008
Reputation: 0
Location: Toronto, Canada
Post: #108
ewequeone Wrote:Last time I installed Linux on my first AppleTV, I must have done something differently as when I installed it on my new AppleTV yesterday, I've been unable to get the resolution any higher than 1024x768 Sad


I too have the exact same problem on my apple tv. Frontview sees all the resolutions fine, infact the appletv boots up at 1280x720 and the when X fires up it falls back to 1024x768. My EDID info is very similar to the above. It must be the Nvidia 100x drivers that we are limited to on apple tv?

http://pastebin.ca/1936315

I guess

Code:
#
(WW) NVIDIA(0):     Mode is rejected: Mode (1280 x 720) is too large for DFP
#
(WW) NVIDIA(0):     Native Resolution (Max: 1024 x 768).

is the problem, the native resolution of the panel is only 1024x768.. not sure what this means when things like appletv and the cable box display at 1920x1080.
(This post was last modified: 2010-09-09 06:48 by vajonam.)
find quote
alexandergoll Offline
Member
Posts: 63
Joined: Oct 2010
Reputation: 0
Post: #109
Got one question on this thing. Can i, by creating my own modelines, force only a certain resolution for a certain refreshrate?

For example: My TV is only able to use 24fps at 1920x1080 resolution, while the 50/60fps are only available in interlaced.

I would like to use 720p for both 50 and 60 fps and in case a movie with 24 frames is played i want it to switch to 1080p
find quote
Nomen luni Offline
Junior Member
Posts: 20
Joined: Nov 2010
Reputation: 0
Post: #110
I tried following the advice in the OP, and when I got to the logging stage, my tv showed came up with a warning about 'invalid graphics mode', and hence I lost the link to my pc. Tried control-C and this did not snap out of it.

Ah, let's reboot... no, still invalid mode.

Any ideas what is going on?
find quote
Nomen luni Offline
Junior Member
Posts: 20
Joined: Nov 2010
Reputation: 0
Post: #111
Bump! Can anyone help with the post above?
find quote
Nomen luni Offline
Junior Member
Posts: 20
Joined: Nov 2010
Reputation: 0
Post: #112
Okay, this line seems to be causing people a lot of problems.

Quote:Option "ModeValidation" "NoEdidModes"
This effectively says 'any mode listed in the EDID, don't even test it, ignore it', which is not what we want to do at the logging stage... at least that's what it seems to do with my setup.

Looking at one of the sources linked in the OP, it seems what we actually need in place of this is,

Quote:Option "UseEDID" "FALSE"

Getting late now, I'll see if this works tomorrow.

[EDIT]It appears we should not make any mods to xorg until after the logging stage.
(This post was last modified: 2010-11-29 03:52 by Nomen luni.)
find quote
butchjr Offline
Member
Posts: 62
Joined: Sep 2008
Reputation: 1
Location: Sweden
Post: #113
.
(This post was last modified: 2010-12-06 20:45 by butchjr.)
find quote
pipps Offline
Member
Posts: 61
Joined: Dec 2010
Reputation: 0
Location: UK
Post: #114
Thank you! After three other guides failed, this one worked perfectly for me! Smile
find quote
The-Boxhead Offline
Donor
Posts: 958
Joined: May 2005
Reputation: 17
Location: Norway
Post: #115
Nomen luni Wrote:Okay, this line seems to be causing people a lot of problems.

This effectively says 'any mode listed in the EDID, don't even test it, ignore it', which is not what we want to do at the logging stage... at least that's what it seems to do with my setup.

Looking at one of the sources linked in the OP, it seems what we actually need in place of this is,



Getting late now, I'll see if this works tomorrow.

[EDIT]It appears we should not make any mods to xorg until after the logging stage.

Would be nice to know what you found out. If we indeed should not add anything to the xorg.conf file before logging i will update my original thread
and put this values into the conf file after the logging stage.

I also want input if any users belive something int the original post is wrong
and i will update as needed.

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
Observer Offline
Junior Member
Posts: 35
Joined: Mar 2011
Reputation: 0
Post: #116
Hi All

I can't get any of this to work with the Crystalbuntu distribution on the ATV. I have a 58" Samsung Plasma that support 2:3 pull-down and want to get to the modes set up properly and I'm struggling...

Thanks!
find quote
Coogan Offline
Junior Member
Posts: 22
Joined: Jun 2010
Reputation: 0
Post: #117
Thanks for the HOW-TO, Box. It worked perfectly the first time.

(Actually, more like the 2nd time. Make sure that when you run X -verbose, YOUR TELEVISION IS ON Smile )

Coog
find quote
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #118
I've tried following the tutorial and user suggestions in this thread, but I'm REALLY stuck Sad

I'm running Nvidia drivers version 173.14.30 (that's the only version that would support my FX5700GT card apparently), and no matter what I do I can't seem to go above 800x600 on my TV screen.

I know the TV screen supports higher resolutions because I managed to go above 1024x768 using the PC's on-board graphics card - so I'd assume the same should be possible using the nvidia card.

From what I can see from the xlog.txt file generated, the XBMC system is not learning any EDID modes from the TV and is not finding any compatible modes and defaults to 800x600 (if that makes sense).

here is what my xconf.org is looking like at the moment:

Quote:# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder75) Thu Apr 14 09:22:52 PDT 2011


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 20.0 - 200.0
VertRefresh 40.0 - 59.4
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "NoLogo" "True"
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection

and here's part of the xlog.txt:
Quote:(--) NVIDIA(0):
(--) NVIDIA(0): --- EDID for CRT-0 ---
(--) NVIDIA(0):
(--) NVIDIA(0): No EDID Available.
(--) NVIDIA(0):
(--) NVIDIA(0): --- End of EDID for CRT-0 ---
(--) NVIDIA(0):
(II) NVIDIA(0): Frequency information for CRT-0:
(II) NVIDIA(0): HorizSync : 30.000-300.000 kHz
(II) NVIDIA(0): VertRefresh : 20.000-56.000 Hz
(II) NVIDIA(0): (HorizSync from HorizSync in X Config Monitor section)
(II) NVIDIA(0): (VertRefresh from VertRefresh in X Config Monitor
(II) NVIDIA(0): section)
(II) NVIDIA(0):
(II) NVIDIA(0): --- Building ModePool for CRT-0 ---
(II) NVIDIA(0): Validating Mode "640x350":
(II) NVIDIA(0): 640 x 350 @ 85 Hz
(II) NVIDIA(0): Mode Source: X Server
(II) NVIDIA(0): Pixel Clock : 31.50 MHz
(II) NVIDIA(0): HRes, HSyncStart : 640, 672
(II) NVIDIA(0): HSyncEnd, HTotal : 736, 832
(II) NVIDIA(0): VRes, VSyncStart : 350, 382
(II) NVIDIA(0): VSyncEnd, VTotal : 385, 445
(II) NVIDIA(0): H/V Polarity : +/-
(WW) NVIDIA(0): Mode is rejected: VertRefresh (85.1 Hz) out of range
(WW) NVIDIA(0): (20.000-56.000 Hz).
(II) NVIDIA(0):


does anyone have any ideas here please? I'm really stumped now Sad
find quote
The-Boxhead Offline
Donor
Posts: 958
Joined: May 2005
Reputation: 17
Location: Norway
Post: #119
What tv do you have and how do you connect it ?
EDID is not supported on VGA cable.

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #120
The-Boxhead Wrote:What tv do you have and how do you connect it ?
EDID is not supported on VGA cable.

haha...oops...ok that might explain it! I'm connecting over VGA to a Funai TV.

still....any idea how i can get the resolution to go above 800x600?
find quote
Post Reply