XBMC Community Forum
[Linux] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [Linux] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware (/showthread.php?tid=70068)



- sdsnyr94 - 2010-03-21 06:05

I used to have a setting in my old xorg.conf to change the Gamma setting. It was listed under the "monitor" section, which does not exist in the one created using this script. I have tried to add it, but cannot get the setting to be recognized.

I can use the xgamma command to set it, but I lose that setting on a reboot. Any Ideas?


- dinozzo - 2010-03-22 20:25

Hi. Im a little confused. I have followed the manual guide and when playing an mkv and bringing up the info pane it shows the video as 23.97 fps but the refresh rate is 24Hz. Shouldnt the refresh rate be 23.97 too so that its perfectly in sync and eliminate tearing? It seems odd the the modeline has 23.97/24 Hz and not solely 23.97. How can it tell which one to use? it uses 24hz everytime?

My available modes look like this from my Samsung TV

# --- Modes in ModePool for SAMSUNG (DFP-1) ---
# "nvidia-auto-select" : 1920 x 1080 @ 60.0 Hz
# "1920x1080" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60_0" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16)
# "1920x1080_50" : 1920 x 1080 @ 50 Hz (CEA-861B Format 31)
# "1920x1080_30" : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34)
# "1920x1080_25" : 1920 x 1080 @ 25 Hz (CEA-861B Format 33)
# "1920x1080_24" : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32)
# "1920x1080_60i" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5)
# "1920x1080_50i" : 1920 x 1080 @ 50.0 Hz Interlace

And my xorg.conf looks like this

Section "Device"
Identifier "nvidia"
Driver "nvidia"
Option "NoLogo" "true"
Option "DynamicTwinView" "false"
Option "NoFlip" "false"
Option "FlatPanelProperties" "Scaling = Native"
Option "ModeValidation" "NoVesaModes, NoXServerModes"
Option "UseDisplayDevice" "DFP-1"
Option "ModeDebug" "true"
Option "HWCursor" "false"
EndSection

Section "Screen"
Identifier "screen"
Device "nvidia"
SubSection "Display"
Modes "1920x1080_60_0" "1920x1080_24"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "false"
EndSection


- JumJum - 2010-03-22 20:50

dinozzo Wrote:Hi. Im a little confused. I have followed the manual guide and when playing an mkv and bringing up the info pane it shows the video as 23.97 fps but the refresh rate is 24Hz. Shouldnt the refresh rate be 23.97 too so that its perfectly in sync and eliminate tearing? It seems odd the the modeline has 23.97/24 Hz and not solely 23.97. How can it tell which one to use? it uses 24hz everytime?

My available modes look like this from my Samsung TV

# --- Modes in ModePool for SAMSUNG (DFP-1) ---
# "nvidia-auto-select" : 1920 x 1080 @ 60.0 Hz
# "1920x1080" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60" : 1920 x 1080 @ 60.0 Hz
# "1920x1080_60_0" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16)
# "1920x1080_50" : 1920 x 1080 @ 50 Hz (CEA-861B Format 31)
# "1920x1080_30" : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34)
# "1920x1080_25" : 1920 x 1080 @ 25 Hz (CEA-861B Format 33)
# "1920x1080_24" : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32)
# "1920x1080_60i" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5)
# "1920x1080_50i" : 1920 x 1080 @ 50.0 Hz Interlace

And my xorg.conf looks like this

Section "Device"
Identifier "nvidia"
Driver "nvidia"
Option "NoLogo" "true"
Option "DynamicTwinView" "false"
Option "NoFlip" "false"
Option "FlatPanelProperties" "Scaling = Native"
Option "ModeValidation" "NoVesaModes, NoXServerModes"
Option "UseDisplayDevice" "DFP-1"
Option "ModeDebug" "true"
Option "HWCursor" "false"
EndSection

Section "Screen"
Identifier "screen"
Device "nvidia"
SubSection "Display"
Modes "1920x1080_60_0" "1920x1080_24"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "false"
EndSection

The info inside XBMC shows 24 Hz even if it's running at 23.97 Hz.

To check the current refresh, pause the video and bring up the info. The fps to the left is synced to the screen refresh, so it should show 23.97 and not 24.00. Again, you have to pause the video.

The 23.97 Hz modes are often (if not always) called 23.97/24 Hz for reasons unknown to me.


- JumJum - 2010-03-22 20:56

sdsnyr94 Wrote:I used to have a setting in my old xorg.conf to change the Gamma setting. It was listed under the "monitor" section, which does not exist in the one created using this script. I have tried to add it, but cannot get the setting to be recognized.

I can use the xgamma command to set it, but I lose that setting on a reboot. Any Ideas?

For the monitor section to be used, you also need a screen section that specifies which other sections should be used.

Copy and paste your old screen section to your new xorg.conf and check to make sure the name of the device line match the name of the device section in the new xorg.conf.


- JumJum - 2010-03-22 21:00

Ayla Wrote:JumJum,

I have set my system up with your script and I use 1080p@60Hz in the XBMC menus, for smoother browsing.

But, after my HTPC (XBMC) has been suspended (sleep) and resumed, it always defaults to 1080p@24Hz.

Any way I can change that?

Is 24 Hz your default mode in Xorg? It's hard to say without knowing anything about your setup, but my guess is the first mode in your Modes line in xorg.conf is a _24 mode. If so, put a _60 mode before the _24 mode.


- erhnam - 2010-03-23 10:19

JumJum Wrote:[SIZE="5"]If you don't have any 23.97 or 59.94 modes here, that's when you need to use modelines instead! Use the test command in the beginning of the post to see if your modelines work as expected. Then continue with step 4.

Is it possible to combine one and another? Use modes and modelines?

My rates look like this. Which one should I take?

Code:
"nvidia-auto-select" : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080"          : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080_50"       : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080_60"       : 1920 x 1080 @  60.0 Hz  (from: EDID)
"1920x1080_60_0"     : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16) (from: EDID)
"1920x1080_60_1"     : 1920 x 1080 @  59.9 Hz  (from: X Server)
"1920x1080_24"       : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32) (from: EDID)
"1920x1080_60i"      : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: EDID)
"1920x1080_50i"      : 1920 x 1080 @ 50 Hz Interlace (CEA-861B Format 20) (from: EDID)



- JumJum - 2010-03-23 12:08

erhnam Wrote:Is it possible to combine one and another? Use modes and modelines?

My rates look like this. Which one should I take?

Code:
"nvidia-auto-select" : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080"          : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080_50"       : 1920 x 1080 @  50.0 Hz  (from: EDID)
"1920x1080_60"       : 1920 x 1080 @  60.0 Hz  (from: EDID)
"1920x1080_60_0"     : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16) (from: EDID)
"1920x1080_60_1"     : 1920 x 1080 @  59.9 Hz  (from: X Server)
"1920x1080_24"       : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32) (from: EDID)
"1920x1080_60i"      : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: EDID)
"1920x1080_50i"      : 1920 x 1080 @ 50 Hz Interlace (CEA-861B Format 20) (from: EDID)

You should be good with "1920x1080_60_0" and "1920x1080_24". I don't think you'll need to use modelines.

I'd use modelines only instead of combining modelines and modes. You can find the modelines for these two modes in your /var/log/Xorg.0.log


- erhnam - 2010-03-23 14:25

JumJum Wrote:You should be good with "1920x1080_60_0" and "1920x1080_24". I don't think you'll need to use modelines.

I'd use modelines only instead of combining modelines and modes. You can find the modelines for these two modes in your /var/log/Xorg.0.log

Thanks for your answer, I'll give it a try!


- Fliposide - 2010-03-23 14:43

Will this script work for an ACER Aspire R3600 ION?

Fliposide
Smile


dumb annoying question - ferry - 2010-03-23 14:46

How do I get the | symbol using a UK keyboard? It shows as a > symbol on the screen

Thanks