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