• 1
  • 28
  • 29
  • 30(current)
  • 31
  • 32
  • 36
Linux HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware
(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
Reply
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.
Samsung ES7005 55" led tv - Denon AVR-3313 - NAD C275BEE - B&W DM683 - B&W HTM61 - B&W 686
Intel NUC D34010WYK - 128GB Crucial ssd, Built in IR Receiver
And a Logitech Harmony Touch to control it all. https://libreelec.tv
Retired: Asus EB1501P ION2 - OCZ Vertex 2 64gb ssd - Built in IR Receiver
Reply
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):
Reply
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
Reply
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..
Reply
I think I solved it. It looks like an issue with 24p and the 100hz motion plus settings. Which I should have known to check first Sad
Anyway after playing with all the TV settings I seem to have got it running nice and smooth again.
Reply
My current build is Eden on Ubuntu 12.04. My hardware is as follows:

Case: Foxconn Case / Mobo
CPU: Intel Pentium Wolfdale E5700
GPU: Nvidia GeForce 8400GS
RAM: GSkill 2Gb

I have so far been unsuccessful in getting the GeForce card to dispaly 24hz. I have all the latest Nvidia drivers in place. I have tried running the script manually (with lightdm in place of gdm) but after putting the new Xorg file in place, my system hangs at boot until I replace with the original Xorg.

The step of the process that is supposed to provide a text file of all the modelines from Xorg.0.log does create a text file but with nothing in it. After digging down and finding my Xorg.0.log, there is not "modelines" listing similar to Jum Jum's post. I am getting the feeling we are comparing apples to oranges. See my log below:

http://pastebin.com/embed_js.php?i=D6TnEVVv


Is this instructional not applicable for 12.04? I am 100% sure my television can handle 24hz as I have a Revo build that switches between 60 and 24 no problem. Any ideas?

Thanks in advance,
Rob
Reply
Ok,

I was able to get the nvidia.sh script to run all the way through. Now when playing content (settings are "sync to display" and "change refresh rate") the codec info reports 24 hz with 23.97 fps. The judder now appears worse than before though Undecided.

One other thing of note. My Revo actually does change my Samsung TV to 24hz correctly. This build though when I fire up a movie and it reports the info above, the TV remains in 60hz. Would this cause the now noticeable judder?

I feel like I am just missing something ever so slight here. Also, sorry for the newb question, now how are you guys posting your pastes? I'd like to throw up my Xorg.conf but I feel that I failed in my last post.

Rob
Reply
I'm also fighting this in Ubuntu 12.04, NVIDIA drivers 295.40 and 302.17, XBMC Eden.
I was able to modify the script that it works, the problem is, the driver seems to ignore the Option "ModeDebug" "true", there are no modes in xorg.log, only this:
No modes were requested; the default mode "nvidia-auto-select"
will be used as the requested mode.
Validated modes:
"DFP-0:nvidia-auto-select"


The modes.txt file is empty.
I was able to extract the modes from OpenELEC. I have added the needed modes to xorg.conf but they seem to be ignored by the driver.
I'm not able to switch resolution even in Ubuntu to something else than 1280x720_60 = nvidia-auto-select.
Playback in XBMC stutters badly.
I'm stuck.
Has anyone any ideas how to solve this, please?
Reply
The only way to achieve perfect playback of 23.976 with NVidia on Linux is to define a custom modeline. With EDIT you'll get 23.971.
Driver 302.17 can distinguish between 23.97 and 24 Hz because it has support for xrandr 1.2 and 1.3. No need to set meta modes or modes in the Screen section. I am running 302 with this modeline in Monitor section:

Code:
ModeLine       "1920x1080_23.976" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync

and those Option in the Screen section (otherwise the modeline would be ignored)

Code:
Option         "VertRefresh"  "DFP-0: 23-60"
Option         "HorizSync"    "DFP-0: 25-100"

Reply
i had to modify the script too to run on 12.04. My modifications:

Lines 50 & 51, change gdm to lightdm

Line 59 (this might be the one you need) change "cut -c32-" to "cut -c31-". It was truncating the first character of each line of the edid.

With those changes the script ran flawlessly here.
Reply
Sorted it out removing the NVIDIA driver, deleting configs and reinstalling again.
I had to disable EDID and add modelines because my TV support 1080p24 but this mode is not in the EDID.
The last problem seems to be NVIDIA removed the "FlatPanelProperties" "Scaling = Native" option from 302.17 driver.
Reply
Hello,

I've following this post and the guide, and I was able to set xbmc to run in 23.97fps really well, but my problem is that If i set everything to work through the GPU I loose the HW acceleration on ubuntu desktop.

This is my xorg.conf

Code:
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" "1920x1080_60_0" "1920x1080_50" "1920x1080_30" "1920x1080_25" "1920x1080_24" "1920x1080_60i" "1920x1080_50i"  
        EndSubSection
EndSection

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

Testing the diferent opcion, as I'm not an expert in xorg, I've noticed that the problems seems to come from Section "Extensions" -> Composite. If I comment this part, HWacceleration in desktop works but with "artifacts" and mouse some times loose the draw but when I try to run a 1080 movie in XBMC hwacceleration is not working and all i managed by the CPU.

What I should do? Because, I would like to have hwacceleration in both, but I don't know how to achieve it.

Thanks
Reply
You can't have it both ways. For XBMC to work well, compositing needs to be turned off. For eye-candy on the desktop, it needs to be turned on. At best, when you want to switch to the desktop, you can kill X, enable compositing in xorg.conf and then restart X. To go back to XBMC, you could reverse the process. This could all be scripted to work with a single command, but it needs to be a workaround.
Reply
Is there an equivalent guide like this for Windows?
Reply
  • 1
  • 28
  • 29
  • 30(current)
  • 31
  • 32
  • 36

Logout Mark Read Team Forum Stats Members Help
HOW-TO achieve perfect playback at 23.97 or 59.94 Hz with NVIDIA GPU hardware16