Correct screen refresh rate Asrock 330
#1
Hi,

This is another refresh rate setting thread. Thanks in advance for your patience and help.

Here's the setup:
-Asrock ION 330
-Ubuntu 9.04 minimal + Xbmc (latest stable from the repo, not SVN)
-Panasonic TX-P50G10 (Plasma)

Here's the problem:
The TV doesn't seem to switch refresh rate depending on the framerate of the video file.
Here are the things I noticed that seemed weird to me and worth mentioning:
-XBMC is set to run at 1920x1080@60Hz, when I am in the interface and I check the system info section it reports the correct resolution and refresh rate but next to it it reads 30Hz (the tv still detects the signal as 1080p). And I can definitely feel the interface a bit sluggish.
-When I play a video file and press "z" it reports still 1920x1080@60Hz, but when I press "o" to get the playback info it reports 0 dropped and an fps that corresponds to the movie's framerate (which I guess is only that and has nothing to do with refresh rate). Also when I press "o" it only gives info about the defined resolution/refresh rate and not the actual refresh rate (as in the info section of the intrface)

What I'd like to achieve:
Have the correct refresh rate depending on the video file set automatically at its launch.

Thanks in advance.

xorg.conf used:
Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
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     "Panasonic"
    ModelName      "Unknown"
    HorizSync       15.0 - 68.0
    VertRefresh     23.0 - 61.0
    Option         "DPMS"
    ModeLine        "1920x1080@60p" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    ModeLine        "1920x1080@50p" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    ModeLine        "1920x1080@60i" 74.18 1920 2008 2052 2200 1080 1084 1094 1124 +hsync +vsync Interlace
    ModeLine       "1920x1080@50i" 74.25 1920 2448 2492 2640 1080 1084 1094 1124 +hsync +vsync Interlace
    ModeLine        "[email protected]" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    ModeLine        "1920x1080@24p" 74.16 1920 2558 2620 2750 1080 1084 1089 1125 +hsync +vsync
    ModeLine        "1920x1080@25p" 74.25 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "TwinView" "0"
    Option        "DynamicTwinView" "false"
    Option        "FlatPanelProperties" "Scaling = Native"
    SubSection     "Display"
        Depth       24
    Modes        "1920x1080@60p" "1920x1080@24p" "1920x1080@25p" "1920x1080@50i" "1920x1080@50p" "1920x1080@60i" "[email protected]"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection
Reply
#2
Isn't it still using edid with that conf? Try adding Option "UseEDID" "FALSE"
Reply
#3
Already tried that, but then it goes into a weird resolution and the interface only uses like 1/4th of the screen (in the top left corner).
Reply
#4
geekmiki Wrote:Already tried that, but then it goes into a weird resolution and the interface only uses like 1/4th of the screen (in the top left corner).

Consider removing the interlaced lines from your config. If you screen is capable of progressive playing I would suggest to remove the interlaced lines.
Reply
#5
Ok, I'll do that. But I guess this won't help further in resolving the switching to the correct refresh rate, right?
Reply
#6
I just went through this. I had to add

Quote:Option "DynamicTwinView" "false"

to my xorg.conf file and then I was able to get the option for "1920x1080@24Hz" in the Screen settings of XBMC.

NOW, that gave me the screwy "quater screen" view. I had to nuke (backed up first) my guisettings.xml file. That did it for me.

Here is the post I used as a reference. Look for Boba32's post.

http://forum.xbmc.org/showthread.php?tid=50574&page=2
Reply
#7
Things have moved on, I managed to get XBMC to switch from one refresh rate to the other, but not to all the ones I defined in my xorg.conf.
I get 24, 50 and 60 Hz without a problem.

In order to test I tried with a modline only for 23.976 and xbmc boots but it reports 24Hz when pressing "x" during a 23.976fps movie playback.

I'm just wondering if xbmc reports 24Hz for 23.976 or if it's just my TV that can't manage that refresh rate (Panasonic Viera TX-P50G10).

When I use my xorg.conf with all the modlines Xorg.0.log reports this (just copied the interesting parts)
Code:
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0):     "1920x1080@60"
(II) NVIDIA(0):     "1920x1080@50"
(II) NVIDIA(0):     "1920x1080@24"
(II) NVIDIA(0):     "[email protected]"
(II) NVIDIA(0):     "1920x1080@25"
...
(II) NVIDIA(0): Setting mode "1920x1080@60"
(II) NVIDIA(0): Setting mode "1920x1080@50"
(II) NVIDIA(0): Setting mode "1920x1080@24"

When I try with only a 23.976 I get the (II) NVIDIA(0): Setting mode "[email protected]".
Thanks for your help!
Reply
#8
Where did you pull those timings from? I'm fairly sure that TV doesn't report 23.976 in EDID.
Reply
#9
Hi,

The TV doesn't report 23.976 in the EDID, but I'm overriding it through xorg options. I got the modlines for those timings through the Mythbuntu wiki and AMLC (http://amlc.berlios.de)
But my point is that they seem to work, since xbmc boots with the 23.976 modline, but still reports 24Hz when displaying the screen info.

Here's my updated xorg.conf:

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

Section "Files"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
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     "Panasonic-TV"
    ModelName      "P50G10A"
    HorizSync       15.0 - 68.0
    VertRefresh     23.0 - 61.0
    Option         "DPMS"
    # 1920x1080p @ 60Hz
    #ModeLine "1920x1080@60" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 50Hz
    #ModeLine "1920x1080@50" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 24Hz
    #ModeLine "1920x1080@24" 74.16 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +hsync
    # 1920x1080p @ 23Hz
    ModeLine "[email protected]" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 25Hz
    ModeLine "1920x1080@25" 74.25 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "TwinView" "0"
    Option        "DynamicTwinView" "False"
    Option        "FlatPanelProperties" "Scaling = Native"
    Option         "ExactModeTimingsDVI" "True"
    Option         "UseEDIDFreqs" "False"
    Option         "ModeValidation" "NoEdidModes, NoMaxPClkCheck, NoEdidMaxPClkCheck, AllowNon60HzDFPModes"
    # Fixes tearing/smoothvideo issues
    Option         "TripleBuffer" "0"
    # Misc
    Option         "HWcursor" "Off"    
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    Modes        "1920x1080@60" "1920x1080@50" "1920x1080@24" "[email protected]" "1920x1080@25"
    EndSubSection
EndSection

Section "Extensions"
    Option "Composite" "Disable"
EndSection
Reply
#10
Is [email protected] a setting that is possible in XBMC? Or should we be shooting for 1920x1080@24? (Which is what I am running and it looks quite good to me.)
Reply
#11
Code:
Option         "TripleBuffer" "0"

are you sure in this option ? may be it's better to use "1" ?
Nvidia Shield
kodi 18.1 RC1
Reply
#12
Well looks like I'm getting a new problem while fixing th efirst one. I managed to get XBMC to change resolution depending on the played video file. But when I play video files (encoded at 23.976 fps) at a refresh rate of 24Hz I get audio desync. This never happens when playing movies at 50Hz or 60Hz.
And it might seem weird, but I have an overall feeling that there is judder at 24, 50 or 60 Hz...
Reply
#13
geekmiki Wrote:Already tried that, but then it goes into a weird resolution and the interface only uses like 1/4th of the screen (in the top left corner).

I had the same issue when setting up a friend's revo with his 1080p sony TV. I just went into the XBMC settings for overscan, etc. and was able to resize teh 1/4th screen to the full size and then it was perfect after that.
Reply
#14
Do you also get a constant desync of around 0.200-0.250 seconds? If I set the audio delay to this, it works. I just find it strange that it's constant and not variable throughout a movie.
Reply
#15
djon Wrote:Do you also get a constant desync of around 0.200-0.250 seconds? If I set the audio delay to this, it works. I just find it strange that it's constant and not variable throughout a movie.

Yes that's the problem... I found the otehr topic dealing with this. But this only happens with 720p/1080p movies. I also have the problem with SD xvids where the audio desync grows as the movie is played. Starts with 0,200 and ends with 2 secs or more... I should post a log for that...
Reply

Logout Mark Read Team Forum Stats Members Help
Correct screen refresh rate Asrock 3300