Nvidia runtime PM

Background

  • The latest Nvidia drivers are maintained on Ubuntu archive. (e.g. nvidia-graphics-drivers-450)
  • Ubuntu’s nvidia-prime provided a convenient interface selecting on-demand, nvidia or intel mode.
  • Nvidia graphic is consuming power even it is idle in on-demand mode.
  • Nvidia driver starts to support runtime PM on part of graphic cards.
    • The supported graphic product ids are collected in supported-gpus.json which released from the driver(.run binary) released by Nvidia).
    • For example, the supported-gpus.json from Nvidia-driver-450
      • The latest supported-gpus.json : https://alex-tu-cc.github.io/get-nvidia-supported-gpus-json/

The automatical Nvidia runtime PM in on-demand mode.

With nvidia-prime, gpu manager and Nvidia drivers, Ubuntu able to detect if runtime PM is supported on your graphic card then operates properly.
So that, Nvidia getphic can sleep well when idle in on-demand.
My script can check if it behaves as we expected.(say, rendering as expected, sleep as expected)

The feature was landed to groovy but not yet to Focal.
Before the SRU done on Focal, you can get the debian package on my PPA which monitoring the 2 developing git trees for nvidia-prime and gpu manager.

Reference:

  • https://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html