We have a Ubuntu 20.04 server with Nvidia GPUs and want to change the Power Mode / GpuPowerMizerMode
to Prefer Maximum Performance
.
One way to do this is
nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=1"
However, that would require an X session with access to the respective GPU; editing /etc/X11/xorg.conf
would not work for the same reason.
Is there another way to read and set the GpuPowerMizerMode
of a Nvidia GPU in Ubuntu?