Linux GUI NVIDIA Setup and Hacks: Difference between revisions

From WikiMLT
Line 16: Line 16:
| sz = 300
| sz = 300
}}
}}
== Deal with the bad vSync on full screen video playing ==
== Deal with the bad vSync on full screen video ==
Topics about such issue could be found in Internet back to 2010. Most of the proposed solutions doesn't do anything with latest NVIDIA driver (525 2003y). The only discussion that was helpful to me was [https://ubuntuforums.org/showthread.php?t=2235382&p=13079406#post13079406 NVIDIA Video Tearing at Ubuntu forums] and especially the advice related to <code>xorg.conf</code>. Also I didn't changed the OpenGL related settings proposed in the linked comment.
Topics about such issue could be found in Internet back to 2010. Most of the proposed solutions doesn't do anything with latest NVIDIA driver (525 2003y). The only discussion that was helpful to me was [https://ubuntuforums.org/showthread.php?t=2235382&p=13079406#post13079406 NVIDIA Video Tearing at Ubuntu forums] and especially the advice related to <code>xorg.conf</code>. Also I didn't changed the OpenGL related settings proposed in the linked comment.


Line 28: Line 28:
# Modify the <code>Device</code> section in that file <code>xorg.conf</code>, as it is proposed in the mentioned discussion [https://ubuntuforums.org/showthread.php?t=2235382&p=13079406#post13079406 NVIDIA Video Tearing].
# Modify the <code>Device</code> section in that file <code>xorg.conf</code>, as it is proposed in the mentioned discussion [https://ubuntuforums.org/showthread.php?t=2235382&p=13079406#post13079406 NVIDIA Video Tearing].
# Place the new configuration file in its place: <code>/etc/X11/xorg.conf</code> and reboot the system, just to be sure the settings are permanently applied.
# Place the new configuration file in its place: <code>/etc/X11/xorg.conf</code> and reboot the system, just to be sure the settings are permanently applied.
 
Here is my final <code>xorg.conf</code> configuration.<noinclude>
<noinclude>
<div id='devStage'>
<div id='devStage'>
{{devStage  
{{devStage  

Revision as of 11:52, 29 April 2023

Figure 1. Change NVIDIA X Serv­er Set­tings > Pow­er Miz­er > Per­for­mance Lev­el via GUI (NVIDIA dri­ver ver­sion 525).

Per­for­mance mode

You can change the per­for­mance mode ei­ther from the GUI via NVIDIA X Serv­er Set­tings tool: Pow­er­Miz­er > Per­for­mance Mode – see Fig­ure 1. You can change the de­fault per­for­mance mode by chang­ing xorg.conf or you can change it via the CLI by the fol­low­ing com­mands.

nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0  # Adaptive
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1  # Prefer Maximum Performance
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=2  # Auto
nvidia-settings -a [gpu:0]/GPUPowerMizerMode=3  # Prefer Consistent Performance
Figure 1. Change NVIDIA X Serv­er Set­tings > Dis­play Con­fig­u­ra­tion > Force Com­po­si­tion Pipeline (NVIDIA dri­ver ver­sion 525) to im­prove v‑sync per­for­mance on ful screen video play­ing.

Deal with the bad vSync on full screen video

Top­ics about such is­sue could be found in In­ter­net back to 2010. Most of the pro­posed so­lu­tions doesn't do any­thing with lat­est NVIDIA dri­ver (525 2003y). The on­ly dis­cus­sion that was help­ful to me was NVIDIA Video Tear­ing at Ubun­tu fo­rums and es­pe­cial­ly the ad­vice re­lat­ed to xorg.conf. Al­so I didn't changed the OpenGL re­lat­ed set­tings pro­posed in the linked com­ment.

In ad­di­tion I've forced the full com­po­si­tion pipeline – see Fig­ure 2, which I was found as ad­vice some­where with­in my re­search…

So the steps that (I hope) solved the prob­lem for me was:

  1. Run: su­do nvidia-xcon­fig
  2. Open nvidia-set­tings and check the Force Full Com­po­si­tion Pipeline op­tion – Fig 2.
  3. Gen­er­ate new xorg.conf from with­in nvidia-set­tings.
  4. Mod­i­fy the De­vice sec­tion in that file xorg.conf, as it is pro­posed in the men­tioned dis­cus­sion NVIDIA Video Tear­ing.
  5. Place the new con­fig­u­ra­tion file in its place: /etc/X11/xorg.conf and re­boot the sys­tem, just to be sure the set­tings are per­ma­nent­ly ap­plied.

Here is my fi­nal xorg.conf con­fig­u­ra­tion.