How to limit power consumption on 495.46?

Hello there, in order to use external screens on my laptop without lag I need to use the Nvidia card as the primary X.org GPU however that makes my laptop heat up a lot (24w power consumption just for moving windows on my desktop).

Is there a way to limit the Nvidia card from reaching high power levels?

I have tried setting options nvidia NVreg_RegistryDwords="OverrideMaxPerf=0x1" parameter for the nvidia kernel module without success.

System information:

Machine:
  Type: Laptop System: Acer product: Predator G3-571 v: V1.22
  serial: <superuser required>
  Mobo: KBL model: Sienta_KLS v: V1.22 serial: <superuser required>
  UEFI: Insyde v: 1.22 date: 03/15/2019

CPU:       Info: Quad Core model: Intel Core i7-7700HQ bits: 64 type: MT MCP cache: L2: 1024 KiB
           Speed: 3552 MHz min/max: 800/3800 MHz Core speeds (MHz): 1: 3552 2: 3516 3: 3047 4: 3605 5: 3207 6: 3697 7: 3756
           8: 3530
Graphics:
  Device-1: Intel HD Graphics 630 driver: i915 v: kernel
  Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] driver: nvidia v: 495.46
  Device-3: Chicony HD WebCam type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.20.14 driver: loaded: modesetting,nvidia
  resolution: 1: 1920x1080 2: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 1060/PCIe/SSE2 v: 4.6.0 NVIDIA 495.46

Distro: Fedora Workstation 35 (Gnome)

nvidia-smi:

Fri Jan  7 20:55:19 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.46       Driver Version: 495.46       CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| N/A   57C    P0    25W /  N/A |    398MiB /  6078MiB |      3%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2407      G   /usr/libexec/Xorg                 216MiB |
|    0   N/A  N/A      2554      G   /usr/bin/gnome-shell               67MiB |
|    0   N/A  N/A      3322      G   ...AAAAAAAAA= --shared-files      111MiB |
+-----------------------------------------------------------------------------+```
1 Like

Hello,
I can add one more case with the exact the same observations for Lenovo P52 with 510.54 (the same with most previous versions) Archlinux Kernel 5.16.15 (the same was with 5.15) Wayland. My primary card is nvidia in order to use external monitor.
Here is my kernel conf:
cat /etc/modprobe.d/nvidia.conf
options nvidia NVreg_RegistryDwords=“OverrideMaxPerf=0x1”

nvidia-smi:

Sat Mar 19 11:15:24 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.54       Driver Version: 510.54       CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Quadro P1000        Off  | 00000000:01:00.0  On |                  N/A |
| N/A   61C    P0    N/A /  N/A |    517MiB /  4096MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       795      G   /usr/lib/Xorg                     160MiB |
|    0   N/A  N/A       910      G   /usr/bin/gnome-shell              146MiB |
|    0   N/A  N/A      1970      G   /usr/lib/firefox/firefox          137MiB |
|    0   N/A  N/A      2566      G   viber                              24MiB |
|    0   N/A  N/A      3740      G   /usr/lib/firefox/firefox           42MiB |
|    0   N/A  N/A      3975      G   /usr/bin/nvidia-settings            0MiB |
+-----------------------------------------------------------------------------+

Here is my Xorg config:
/etc/X11/xorg.conf.d î‚° cat 10-nvidia-drm-outputclass.conf
Section “OutputClass”
Identifier “intel”
MatchDriver “i915”
Driver “modesetting”
EndSection

Section “OutputClass”
Identifier “nvidia”
MatchDriver “nvidia-drm”
Driver “nvidia”
Option “AllowEmptyInitialConfiguration”
Option “PrimaryGPU” “yes”
ModulePath “/usr/lib/nvidia/xorg”
ModulePath “/usr/lib/xorg/modules”
EndSection

If you need more information, tests or diagnostic of the issue just let me know.
Thanks