Kodi Community Forum
xorg.conf & aspect ratio - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: xorg.conf & aspect ratio (/showthread.php?tid=60042)

Pages: 1 2


xorg.conf & resolution/aspect ratio - albator1932 - 2009-10-20

Hi

I've got an Asrock ION 330 plugged with HDMI in a Toshiba Regza 32C3001P.
I've installed XBMC Live and I've troubles with aspect ratio : on the very first boot it was perfect, then I rebooted and thumbnails, banners, fanart and even metadata from videos are flattened, video aspect ratio is also wrong and I need to force the 16/9 stretch mode to have a full screen video with correct ratio (no matter what skin is used, I've tested rapier, mediastream, PM3.HD, it's all the same)

I've done that : http://forum.xbmc.org/showthread.php?tid=54685 and that's from this how-to I generated the Modeline below.

Here is my xorg.conf : http://pastebin.com/f62f62ebf
XBMC 9.04.3+svn23842-jaunty1 Ubuntu 2.6.28-15-generic with Nvidia 185.18.14-0ubuntu1

And here is my TV specs :
Toshiba Regza 32C3001P
1366 x 768 32" TFT IPS
HDMI : 480p / 576p / 720p / 1080i / 1080p (50Hz, 60Hz)
HDMI PC mode (I don't know what this mode exactly is) : 1080i @ 50/60 Hz, 1080p @ 50/60 Hz, 720p @ 50/60 Hz


My problem is it won't survive a reboot and aspect ratio will be wrong again...
Anyone got an idea to fix this ? It drives me crazy, I'm spending hours to get aspect ratio working again to watch a movie and I can't let the Asrock running forever without reboot... Confused


- liq456 - 2009-10-21

Try this worked for me. The Option "FlatPanelProperties" "Scaling = Native" is what really did it for me.


Code:
Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "DynamicTwinView" "False"
    Option         "FlatPanelProperties" "Scaling = Native"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection



- albator1932 - 2009-10-22

Thanks for helping

I've tried it and it worked fine the first time, didn't survive a reboot neither :/


- liq456 - 2009-10-23

Make sure you set the root password. In the command line Type in this command:
Code:
sudo passwd root
this will prompt you to change the root password so pick
Code:
xbmc
as the password. Then use winscp login as root password xbmc and edit xorg.


- albator1932 - 2009-10-23

I'm not a perfect noob, I use linux for many years now and I know how to edit xorg.conf...

I did some research and I've found this : http://kristian-hermansen.blogspot.com/2008/11/toshiba-regza-xorgconf-file-working.html

I've tried and for now it seems to work, it survived a reboot
Now I'm crossing my fingers Wink


- albator1932 - 2009-10-28

too bad, it's not working again... Sad

every time i change to a resolution that i didn't tried aspect ratio is fine but once i reboot it's wrong again and switch to a previous resolution doesn't solve the problem (currently i'm using 1024x768 since i've already used 1360x768 both 60/50Hz and 1280x720 both 60/50Hz too)


- miked2024 - 2009-10-28

albator1932 Wrote:too bad, it's not working again... Sad

every time i change to a resolution that i didn't tried aspect ratio is fine but once i reboot it's wrong again and switch to a previous resolution doesn't solve the problem (currently i'm using 1024x768 since i've already used 1360x768 both 60/50Hz and 1280x720 both 60/50Hz too)

does it always go to the same broken resolution? if so, maybe your tv is sending bad EDID information. i see that the "NoEdidModes" option in your xorg.conf but have you tried "IgnoreEdid"?


- albator1932 - 2009-10-28

i'm gonna try that, we'll see Smile


- shassino - 2009-10-28

Are u sure that your custom modeline is ok? On hdtv usually end with +... +... not -... +.... . Put xorg in debug mode and see if it validate your modeline. btw why u use a lower res instead of native display resolution?

If u use:
Option "DynamicTwinView" "False"
usually u don't need a custom modeline (except mine tv Tongue).


- albator1932 - 2009-10-29

The modeline in my xorg.conf is based on what i've seen in the debug log of xorg, here it is : http://pastebin.com/m1147aefa


- albator1932 - 2009-10-29

miked2024 Wrote:does it always go to the same broken resolution? if so, maybe your tv is sending bad EDID information. i see that the "NoEdidModes" option in your xorg.conf but have you tried "IgnoreEdid"?

Same problem with "NoEdidModes" No


- albator1932 - 2009-10-29

Here is my actual xorg.conf :

Code:
Section "Monitor"
[INDENT]Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "Unknown"
HorizSync       15.0 - 68.0
VertRefresh     23.0 - 61.0
Option         "DPMS"[/INDENT]
EndSection

Section "Device"
[INDENT]Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"[/INDENT]
EndSection

Section "Screen"
[INDENT]Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
Option         "NoLogo" "True"
Option         "DynamicTwinView" "False"
Option         "FlatPanelProperties" "Scaling = Native"
SubSection     "Display"
[INDENT]Depth       24[/INDENT]
EndSubSection[/INDENT]
EndSection

XBMC starts in 1920x1080@25Hz on first start, then I rebooted twice and still have 1920x1080@25Hz so I switched off and switched on again and 1920x1080@25Hz again Big Grin

I don't know why 25Hz refresh rate but whatever, aspect ratio is clean and durable that's what matters Nod


- albator1932 - 2009-10-30

I was wrong, i've turned it on tonight to watch a movie and 1902x1080@25Hz was broken... I've switched to 1920x1080@60Hz to get correct aspect ratio but I'm sure I will have to switch to 1920x1080@50Hz next time...

Same problem again, still no solution Sad


modeline missing? - miked2024 - 2009-10-30

albator1932 Wrote:I was wrong, i've turned it on tonight to watch a movie and 1902x1080@25Hz was broken... I've switched to 1920x1080@60Hz to get correct aspect ratio but I'm sure I will have to switch to 1920x1080@50Hz next time...

Same problem again, still no solution Sad

it looks like your modeline disappeared from the xorg.conf you posted originally to the one you posted above:

Code:
Modeline       "1280x720@60" 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync

if 1920x1080 is correct, why was your modeline 1280x720?


- albator1932 - 2009-10-30

because i've tried many modeline with different resolutions in order to find the one that is working, but without success

i've deleted xorg.conf and generated again with nvidia-xconfig, it seems to work, now i won't turn it off and i'm praying for it to not reboot either