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)



RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - turkosbon - 2012-04-12 16:27

Hello i try executed this script in ubuntu 10.04.4 LTS i386, but i recive error in:

Quote:5/6 Applying NVIDIA settings

No protocol specified

Error: The control display is undefined; please run 'nvidia-settings --help'

No protocol specified

Error: The control display is undefined; please run 'nvidia-settings --help'

in nvidia-settings i have DFP-1 (phillips)

i have nvidia GT520 Low Profile and driver version 295.33. I have TV phillips connect with HDMI. My resolution in ubuntu and xbmc 1280x768. Howto change resolution 1920x1080.

Thank you.

Quote: --- Modes in ModePool for Philips (DFP-1) ---
"nvidia-auto-select" : 1280 x 768 @ 60.0 Hz (from: EDID)
"1920x1080" : 1920 x 1080 @ 60.1 Hz Interlace (from: EDID)
"1920x1080_60i" : 1920 x 1080 @ 60.1 Hz Interlace (from: EDID)
"1920x1080_60i_0" : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: EDID)
"1920x1080_50i" : 1920 x 1080 @ 50.0 Hz Interlace (from: EDID)
"1280x768" : 1280 x 768 @ 60.0 Hz (from: EDID)
"1280x768_60" : 1280 x 768 @ 60.0 Hz (from: EDID)
"1280x720" : 1280 x 720 @ 60.0 Hz (from: EDID)
"1280x720_60" : 1280 x 720 @ 60.0 Hz (from: EDID)
"1280x720_60_0" : 1280 x 720 @ 59.94/60 Hz (CEA-861B Format 4) (from: EDID)
"1280x720_50" : 1280 x 720 @ 50.0 Hz (from: EDID)
"1152x648" : 1152 x 648 @ 75.0 Hz (from: EDID)
"1152x648_75" : 1152 x 648 @ 75.0 Hz (from: EDID)
"1024x768" : 1024 x 768 @ 75.0 Hz (from: EDID)
"1024x768_75" : 1024 x 768 @ 75.0 Hz (from: EDID)
"1024x768_60" : 1024 x 768 @ 60.0 Hz (from: EDID)
"1024x576" : 1024 x 576 @ 85.0 Hz (from: EDID)
"1024x576_85" : 1024 x 576 @ 85.0 Hz (from: EDID)
"800x600" : 800 x 600 @ 75.0 Hz (from: EDID)
"800x600_75" : 800 x 600 @ 75.0 Hz (from: EDID)
"800x600_60" : 800 x 600 @ 60.3 Hz (from: EDID)
"800x450" : 800 x 450 @ 85.0 Hz (from: EDID)
"800x450_85" : 800 x 450 @ 85.0 Hz (from: EDID)
"720x576" : 720 x 576 @ 50.0 Hz (from: EDID)
"720x576_50" : 720 x 576 @ 50.0 Hz (from: EDID)
"720x480" : 720 x 480 @ 59.9 Hz (from: EDID)
"720x480_60" : 720 x 480 @ 59.9 Hz (from: EDID)
"640x480" : 640 x 480 @ 75.0 Hz (from: EDID)
"640x480_75" : 640 x 480 @ 75.0 Hz (from: EDID)
"640x480_60" : 640 x 480 @ 60.0 Hz (from: EDID)
"640x480_60_0" : 640 x 480 @ 59.94/60 Hz Interlace (CEA-861B Format 1) (from: EDID)
"640x360" : 640 x 360 @ 85.0 Hz (from: EDID)
"640x360_85" : 640 x 360 @ 85.0 Hz (from: EDID)
--- End of ModePool for Philips (DFP-1): ---



RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - tctr13 - 2012-04-16 06:18

just upgraded to Eden --- on a separate HD --- from 9.10.

ran this back then for my panasonic ae4000 projector and it made ALL the difference.

most menus and text are pretty horrible looking now as well as the lxde desktop (unreadable actually).

movies also now seem to jump? or skip? i'm assuming this is what ppl mean when they same judder.

since all the hardware, aside from the HD, is exactly the same, would it be possible to just copy my old xorg.conf file to my new /etc/x11 folder and get the same results?


RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - egde - 2012-04-17 12:32

Hi

Can anyone update the script to use in XBMCbuntu 11.10?

Thanks.


RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - HelixRX8 - 2012-04-20 11:29

Go back one page

http://forum.xbmc.org/showthread.php?tid=70068&pid=1068535#pid1068535


RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - SavellM - 2012-04-26 12:42

Can anyone confirm if this will work with OpenELEC and the EDEN version of it?
Thanks


RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - Hasu0bs - 2012-04-26 18:07

(2012-04-26 12:42)SavellM Wrote:  Can anyone confirm if this will work with OpenELEC and the EDEN version of it?
Thanks

I suppose not... The openELEC filesystem is read only, the only things you can tweak is via /storage/.config/ directory


RE: [LINUX] HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - newphreak - 2012-05-01 12:43

You could do most of the steps manually. Smile
But we don't have nvidia-settings. So that part you have to skip completly, but it should work when you set them in xorg.conf.


RE: HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - kreaper - 2012-05-09 16:32

Does anyone know why my "good modes" dissapear?
I do have a receiver "on the way" to my television, but i use custom edid from tv.

Code:
[ 10970.553] (II) NVIDIA(0): --- Modes in ModePool for LG Electronics LG TV (DFP-1) ---
[ 10970.553] (II) NVIDIA(0): "nvidia-auto-select" : 1920 x 1080 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080"          : 1920 x 1080 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_60"       : 1920 x 1080 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_60_0"     : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 16) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_50"       : 1920 x 1080 @ 50 Hz (CEA-861B Format 31) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_30"       : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_25"       : 1920 x 1080 @ 25 Hz (CEA-861B Format 33) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_24"       : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_60i"      : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1920x1080_50i"      : 1920 x 1080 @ 50 Hz Interlace (CEA-861B Format 20) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1360x768"           : 1360 x  768 @  59.8 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1360x768_60"        : 1360 x  768 @  59.8 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x1024"          : 1280 x 1024 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x1024_60"       : 1280 x 1024 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x720"           : 1280 x  720 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x720_60"        : 1280 x  720 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x720_60_0"      : 1280 x  720 @ 59.94/60 Hz (CEA-861B Format 4) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1280x720_50"        : 1280 x  720 @ 50 Hz (CEA-861B Format 19) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1152x864"           : 1152 x  864 @  75.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1152x864_75"        : 1152 x  864 @  75.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1024x768"           : 1024 x  768 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "1024x768_60"        : 1024 x  768 @  60.0 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "800x600"            :  800 x  600 @  60.3 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "800x600_60"         :  800 x  600 @  60.3 Hz  (from: EDID)
[ 10970.553] (II) NVIDIA(0): "720x576"            :  720 x  576 @ 50 Hz (CEA-861B Format 18) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "720x576_50"         :  720 x  576 @ 50 Hz (CEA-861B Format 18) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "720x576_50i"        : (1440)x 576 @ 50 Hz Interlace (CEA-861B Format 21) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "720x480"            :  720 x  480 @ 59.94/60 Hz (CEA-861B Format 3) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "720x480_60"         :  720 x  480 @ 59.94/60 Hz (CEA-861B Format 3) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "640x480"            :  640 x  480 @ 59.94/60 Hz Interlace (CEA-861B Format 1) (from: EDID)
[ 10970.553] (II) NVIDIA(0): "640x480_60"         :  640 x  480 @ 59.94/60 Hz Interlace (CEA-861B Format 1) (from: EDID)
[ 10970.553] (II) NVIDIA(0): --- End of ModePool for LG Electronics LG TV (DFP-1): ---
[ 10970.553] (II) NVIDIA(0):
[ 10970.553] (II) NVIDIA(0): Assigned Display Device: DFP-1
[ 10970.553] (II) NVIDIA(0): Validated modes:
[ 10970.553] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[ 10970.554] (II) NVIDIA(0):
[ 10970.554] (II) NVIDIA(0): Implicitly adding the following modes to X Screen 0 (these
[ 10970.554] (II) NVIDIA(0): will be available via XRandR and XF86VidMode):
[ 10970.554] (II) NVIDIA(0):
Code:
[ 10970.554] (II) NVIDIA(0): "nvidia-auto-select" : 1920 x 1080 @  60.0 Hz
[ 10970.554] (II) NVIDIA(0): "1920x1080_50"       : 1920 x 1080 @ 50 Hz (CEA-861B Format 31)
[ 10970.554] (II) NVIDIA(0): "1920x1080_30"       : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34)
[ 10970.554] (II) NVIDIA(0): "1920x1080_50i"      : 1920 x 1080 @ 50 Hz Interlace (CEA-861B Format 20)
[ 10970.554] (II) NVIDIA(0): "1360x768"           : 1360 x  768 @  59.8 Hz
[ 10970.554] (II) NVIDIA(0): "1280x1024"          : 1280 x 1024 @  60.0 Hz
[ 10970.554] (II) NVIDIA(0): "1280x720"           : 1280 x  720 @  60.0 Hz
[ 10970.554] (II) NVIDIA(0): "1280x720_50"        : 1280 x  720 @ 50 Hz (CEA-861B Format 19)
[ 10970.554] (II) NVIDIA(0): "1152x864"           : 1152 x  864 @  75.0 Hz
[ 10970.554] (II) NVIDIA(0): "1024x768"           : 1024 x  768 @  60.0 Hz
[ 10970.554] (II) NVIDIA(0): "800x600"            :  800 x  600 @  60.3 Hz
[ 10970.554] (II) NVIDIA(0): "720x576"            :  720 x  576 @ 50 Hz (CEA-861B Format 18)
[ 10970.554] (II) NVIDIA(0): "720x576_50i"        : (1440)x 576 @ 50 Hz Interlace (CEA-861B Format 21)
[ 10970.554] (II) NVIDIA(0): "720x480"            :  720 x  480 @ 59.94/60 Hz (CEA-861B Format 3)
[ 10970.554] (II) NVIDIA(0): "640x480"            :  640 x  480 @ 59.94/60 Hz Interlace (CEA-861B Format 1)
[ 10970.554] (II) NVIDIA(0):



RE: HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - Ja4220 - 2012-05-24 09:16

Hi guys.
I have stumbled across this thread and was hoping it would fix my problems but alas I am still struggling.
So to give you some background.
I have an Acer Revo 3610 2gb ram with XBMCLive (dharma) upgraded to Eden. (I forget the thread but instead of doing a whole new install I just upgraded the XBMC component on top of the live 10.1 OS)
That connects to an Onkyo TX-SR 578 amp through HDMI which then outputs to my TV. This is where my problem starts as I just had my old Samsung LA46A850A LCD to a new UA46ES6800 LED. Until now all my 24p content was playing fine but now it is all subject to frame judder/stutter (i.e the frame jerks forward or skips every 15-20 seconds)
I tried running the script originally but ran in to the errors where it referenced xbmclive
So I worked my way through the manual instructions to no avail.
I believe I have run everything correctly.
But I do have two concerns. The modes.txt file that generates refers to my Onkyo Amp. I firmly believe the TV is the problem (especially since I connected the Acer directly to the TV)
So I then connected the Acer to the TV and output the modes.txt for that. But i found that the mode names seemed to be identical so I copied the ones I wanted to over.
Still no success.
So this is what my xorg.conf file looks like now
Code:
GNU nano 2.2.2                                        File: /etc/X11/xorg.conf

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

Section "Screen"
        Identifier      "screen"
        Device          "nvidia"
        SubSection      "Display"
                Modes "1920x1080_60" "nvidia-auto-select" "1920x1080_24" "1920x1080_25"
                        "1920x1080_60_0" "1920x1080_50"
        EndSubSection
EndSection

Section "Extensions"
        Option  "Composite"           "false"
EndSection
This is the Modes.txt for the TV
Code:
$ME/Desktop/modes.txt --- Modes in ModePool for SAMSUNG (DFP-0) ---
"nvidia-auto-select" : 1920 x 1080 @  60.0 Hz  (from: EDID)
"1920x1080"          : 1920 x 1080 @  60.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: E$
"1920x1080_50"       : 1920 x 1080 @ 50 Hz (CEA-861B Format 31) (from: EDID)
"1920x1080_30"       : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34) (from: E$
"1920x1080_25"       : 1920 x 1080 @ 25 Hz (CEA-861B Format 33) (from: EDID)
"1920x1080_24"       : 1920 x 1080 @ 23.97/24 Hz (CEA-861B Format 32) (from: E$
"1920x1080_60i"      : 1920 x 1080 @ 59.94/60 Hz (CEA-861B Format 5) (from: ED$
"1920x1080_50i"      : 1920 x 1080 @  50.0 Hz Interlace  (from: EDID)
There was a heap more but I just pasted the 1080 settings
This is the Modes for the amp
Code:
--- Modes in ModePool for ONK TX-SR578 (DFP-0) ---
"nvidia-auto-select" : 1920 x 1080 @  60.0 Hz  (from: EDID)
"1920x1080"          : 1920 x 1080 @  60.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_50"       : 1920 x 1080 @ 50 Hz (CEA-861B Format 31) (from: EDID)
"1920x1080_30"       : 1920 x 1080 @ 29.97/30 Hz (CEA-861B Format 34) (from: EDID)
"1920x1080_25"       : 1920 x 1080 @ 25 Hz (CEA-861B Format 33) (from: EDID)
"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.0 Hz Interlace  (from: EDID)

I have applied the Nvidia settings as per the instructions and all settings in XBMC are correct.
The other odd thing which I noticed was that the modes.txt both referred to the devices as DFP-0 where the xorg referred to the device as DFP-1
Could these be a cause of the problems?
Any ideas or hints would be much appreciated.
Thanks in advance
Justin


RE: HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware - Ja4220 - 2012-05-24 10:11

Also I have uploaded a debug log Here
The video is selected around line 520
Hope this helps
Thanks

EDIT: after further reading did this test
xbmc@XBMCLive:~$ for i in 24 50 60; do xrandr -r $i; nvidia-settings -q RefreshRate | grep -o "[0-9][0-9].*Hz"; done
23.97 Hz
50.00 Hz
60.00 Hz
The results show that I should be able to get 24 fps playing properly...I hope..