bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.18k stars 60 forks source link

[BUG] /lib/udev/rules.d/80-nvidia-pm.rules disables rtd3 power control #106

Closed cemkaya-mpi closed 1 year ago

cemkaya-mpi commented 1 year ago

Describe the bug The file /lib/udev/rules.d/80-nvidia-pm.rules results in no rtd3 power control on my laptop with RTX3060 and Ryzen 6800H.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo envycontrol -s hybrid --rtd3 3 --reset-sddm --verbose
  2. See that the GPU never powers off

Expected behavior The discrete GPU should power off when not used.

System Information:

Additional context After removing the file, rtd3 works again.

bayasdev commented 1 year ago

Interesting results, does it work without the --rtd-3 flag?

On Fri, May 19, 2023, 02:44 cemkaya-mpi @.***> wrote:

Describe the bug The file /lib/udev/rules.d/80-nvidia-pm.rules results in no rtd3 power control on my laptop with RTX3060 and Ryzen 6800H.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo envycontrol -s hybrid --rtd3 3 --reset-sddm --verbose
  2. See that the GPU never powers off

Expected behavior The discrete GPU should power off when not used.

System Information:

  • Model: [Dell G15 5525]
  • Distro: [Arch Linux]
  • Kernel: [6.2.12]
  • DE/WM and Display Manager (if applicable): [KDE Plasma with SDDM]
  • EnvyControl version: [e.g. 3.2.0]
  • Nvidia driver version: [525.89.02-1]

Additional context After removing the file, rtd3 works again.

— Reply to this email directly, view it on GitHub https://github.com/bayasdev/envycontrol/issues/106, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY7IYOPDMFZO6U5AXLZV7TXG4QFLANCNFSM6AAAAAAYHNVRU4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

cemkaya-mpi commented 1 year ago

Without the flag, power saving works as intended.

$cat /proc/driver/nvidia/gpus/0000:01:00.0/power                                                                         ✔ 
Runtime D3 status:          Enabled (fine-grained)
Video Memory:               Off

GPU Hardware Support:
 Video Memory Self Refresh: Supported
 Video Memory Off:          Supported
cemkaya-mpi commented 1 year ago

Should I close this issue, as removing the --rtd3 flag solves the problem?