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

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sgeoxd Offline
Member
Posts: 68
Joined: Nov 2008
Reputation: 0
Post: #31
michal Wrote:I have to ask. Why are we using Option "ModeValidation" "NoEdidModes" ??

Isn't this what is causing:

Mode is rejected: Modes from the PIONEER_TV (DFP-1)'s EDID are not allowed.

for ALL the supported HDTV modes of my TV? How can it ever be valid as described in the original post if we're excluding all EDID modes in the config? Or is this only for TV's with broken EDID's? Seems counter intuitive.

Should I be safe in creating modelines from the entries reported by the EDID? If I just let X use the modelines it detects I do not get 1920x1080@24 or @60 options in XBMC.

Regards,
Michal

That should only occur in situations where the device is supplying invalid EDID's. It would seem logical to assume the "ModeValidation" setting is generating that specific message. Here is a butchered version of what I found off Google:
Quote:For every possible mode, the mode is run through mode validation. The core of mode validation is still performed similarly to traditional XFree86/X.Org mode validation: the mode timings are checked against things such as the valid HorizSync and VertRefresh ranges and the maximum pixelclock. Note that each individual stage of mode validation can be independently controlled through the "ModeValidation" X configuration option.

Invalid modes are discarded; valid modes are inserted into the mode pool.

As validated modes are inserted into the mode pool, duplicate modes are removed, and the mode pool is sorted, such that the "best" modes are at the beginning of the mode pool.

After the mode pool is built for all display devices, the requested modes (as specified in the X configuration file), are looked up from the mode pool. Each requested mode that can be matched against a mode in the mode pool is then advertised to the X server and is available to the user through the X server's mode switching hotkeys (ctrl-alt-plus/minus) and the XRandR and XF86VidMode X extensions.

The driver is just saying the modes as supplied from EDID aren't valid for one reason or another. Not that the device can't handle that resolution, refresh rate, etc. So long as your device supports said resolution and refresh rate then specifying it in a modeline instead of being supplied by EDID should be ok and then available for use by XBMC.
find quote
sgeoxd Offline
Member
Posts: 68
Joined: Nov 2008
Reputation: 0
Post: #32
periika Wrote:Hi,

I have the same problem as Chambers. Any ideas?

/Per

Try searching for "Overscan".
find quote
Chambers Offline
Member
Posts: 88
Joined: Oct 2003
Reputation: 0
Post: #33
whelp, I've come to the conclusions that getting the correct resolution with my TV and ION board will not work with sound (through HDMI). Turns out that when I add the option;

Option "UseEDID" "False"

I get the correct resolution but there is no sound coming from my HDMI cable to my TV. I have a VIZIO L37HDTV. So I guess I will have to deal with the crappy overscanned resolution. I even went as far as to acquire the EDID, edit it, and then tell xorg.conf to use the custom EDID. I used instructions from here http://www.nvnews.net/vbulletin/showthread.php?t=129247 and here http://analogbit.com/node/23

I'm giving up

Here is the xorg.conf that sets the correct resolution (boy does it look nice) but gives me no sound Sad

If anyone can figure this out I'd appreciate the help, been dealing with this for over 8 hours now Sad

Code:
Section "Monitor"
    Identifier     "Monitor0"
    VendorName "VIZIO"
    ModelName "VIZIO L37HDTV"
HorizSync 31 - 70
VertRefresh 50 - 85
ModeLine "1360x768" 85.50 1360 1494 1624 1798 768 770 776 803 -hsync +vsync
ModeLine "1152x864" 108.00 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
Option "ExactModeTimingsDVI" "true"
Option "UseEDID" "False"
Option "ModeValidation" "NoWidthAlignmentCheck, NoDFPNativeResolutionCheck"
#Option "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
#Busid "PCI:3:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
#Option "ModeValidation" "NoWidthAlignmentCheck"
EndSection

Section "Screen"
    Identifier     "Screen0"
sudo
Option "DPI" "100 x 100"
    DefaultDepth    24
    SubSection     "Display"
Viewport 0 0
        Depth       24
        Modes        "1360x768"
    EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1360x768"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1360x768"
EndSubSection
EndSection
find quote
themugger Offline
Senior Member
Posts: 109
Joined: Mar 2009
Reputation: 0
Post: #34
Having real trouble getting any valid 1920x1080 24 modes. i can only assume its the options i have set up in my xorg file. please can those that have working xorg files please post so i can see what options i am missing etc...

whenever i use a 1920x1080 mode that i think should be valid that isnt xbmc starts up in a silly res like 640x480

thanks
find quote
Chambers Offline
Member
Posts: 88
Joined: Oct 2003
Reputation: 0
Post: #35
Chambers Wrote:whelp, I've come to the conclusions that getting the correct resolution with my TV and ION board will not work with sound (through HDMI). Turns out that when I add the option;

Just a quick update. When I use that config in Karmic, I keep getting a kernel crash (I am going to assume that it has someting to do with the hdmi stopping working). The screen still looks awesome though.

Anyway, I went out to Radio Shack and bought a headphone to rca adapter so that I could use the sound from the headphones to my TV and bypass the HDMI sound. I get sound now but there is a loud hiss that's also being sent to the speakers. Ugh, if it's not one thing it's another right? So again, I've been showed that my set up will not run correct resolution with sound...grrrr
find quote
deadite66 Offline
Member+
Posts: 91
Joined: Aug 2008
Reputation: 0
Post: #36
i've given up getting 1360x768 on my pc.
karmic i386, nvidia 6200 pci and a 26" panasonic lcd.

despite having it working before on a pretty old (pre hardy) ubuntu i just can't get it working, i can get the right res but the picture is too wide and offset monitor controls don't have enough leeway to bring it all in, different modelines doesn't touch the picture position and xvidtune refuses to work (unable to query monitor info) error.
tempted buying an acer revo and use hdmi but can't justify dumping my current pc just to get another 256 horizontal pixels.

i'll have to make do with 1024x768 :<

ASRock ION 3D, atom D525/ion2, 2GB ram, 1TB HDD running Ubuntu Precise. (mythtv 0.26+fixes Ubuntu 12.04, 2x PCTV 290e DVB-T2)
Acer aspire revo R3600 Ubuntu Oneiric.
(This post was last modified: 2009-11-04 20:14 by deadite66.)
find quote
xboxbotox Offline
Junior Member
Posts: 8
Joined: Oct 2009
Reputation: 0
Post: #37
I'm having a very similar problem - my XBMC build doesn't want to output anything higher than 1024x768 without losing sound. I've successfully changed the xorg file to get a beautiful resolution, but like others, that kills my audio. The native resolution of my TV is 1366 x 768.

I'm using an Aspire Revo AR1600 and am connected to a Pioneer VSX-919 receiver for my audio and video passthrough. The scan I ran said most of my EDID modes were invalid, which is why they don't show up in XBMC.

I had a Sony receiver and didn't have this problem, so I'm pretty sure this is tied to how XBMC treats the EDID modes. I guess I'll continue to keep trying out different combinations, but I'm leaning towards giving up and changing my zoom level each time I start a video, which I find incredibly annoying.
(This post was last modified: 2009-11-15 00:25 by xboxbotox.)
find quote
deadite66 Offline
Member+
Posts: 91
Joined: Aug 2008
Reputation: 0
Post: #38
i had to dump vga and use a dvi2hdmi cable, i still can't get 1360x768 but i can get 1280x720 now.

ASRock ION 3D, atom D525/ion2, 2GB ram, 1TB HDD running Ubuntu Precise. (mythtv 0.26+fixes Ubuntu 12.04, 2x PCTV 290e DVB-T2)
Acer aspire revo R3600 Ubuntu Oneiric.
find quote
xboxbotox Offline
Junior Member
Posts: 8
Joined: Oct 2009
Reputation: 0
Post: #39
What kills me is that I know this will put out the correct resolution as I've had it working before. 1280 X 720 would be perfect.

I don't understand why there can't be a way to force a standard set of resolutions in the XBMC GUI itself instead of forcing a very complicated method of changing the config file.
find quote
deadite66 Offline
Member+
Posts: 91
Joined: Aug 2008
Reputation: 0
Post: #40
i did consider buying one of these but hard to find in the uk
http://www.hallresearch.com/page/Products/EM-EDID-HD15

ASRock ION 3D, atom D525/ion2, 2GB ram, 1TB HDD running Ubuntu Precise. (mythtv 0.26+fixes Ubuntu 12.04, 2x PCTV 290e DVB-T2)
Acer aspire revo R3600 Ubuntu Oneiric.
find quote
Post Reply