Cannot configure power management as per instruction for dGPU on Optimus-enabled laptop

Hello!
I have MSI GS75 laptop with GTX 1660TI and i7-9750H CPU.
I used optimus-manager to manage in which mode the laptop loaded and be able to switch from power-saving (intel only) mode to performance (Nvidia). For power management I used bbswitch and it is worked.
Now I want to configure power management for dGPU using this instruction: download.nvidia.com/XFree86/Linux-x86_64/435.17/README/dynamicpowermanagement.html#AutomatedSetup803b0

But it seems to mee that dGPU doesn’t switch off while I don’t use it: there are a special led indicator in the laptop and it shows that dGPU powered on.

Also please note that I deleted bbswitch before configuring native power management

$ cat /lib/udev/rules.d/80-nvidia-pm.rules 
# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="auto"
ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"

# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030000", TEST=="power/control", ATTR{power/control}="on"
ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"

$ cat /etc/modprobe.d/nvidia.conf 
options nvidia "NVreg_DynamicPowerManagement=0x02"

$ uname -a
Linux anton-arch 5.6.4-arch1-1 #1 SMP PREEMPT Mon, 13 Apr 2020 12:21:19 +0000 x86_64 GNU/Linux

How could I employ native power management ?
Please let me know if you need more information.

nvidia-bug-report.log (3.5 MB)

Sometimes, runtime control is not set by the udev rule. Please post the output of
cat /sys/bus/pci/devices/0000:01:00.0/power/control
cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
after waiting some time idling.

Hello,

I launched the laptop, waited about 5 mins without any interactions (only Gnome DE and terminal were launched).

Here is the output:

sudo cat /sys/bus/pci/devices/0000:01:00.0/power/{control,runtime_status}
auto
suspended

Looks correct. Maybe the function led needs the acpi method being called that bbswitch uses so doesn’t work with runtime pm. Maybe runtime pm is working properly.
Please check idle power consumption using powertop.