Linux GUI NVIDIA Setup and Hacks

From WikiMLT
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 play­ing

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.