You are not logged in.
I've followed the steps on the arch wiki to set up prime render offload on my Razer Blade 14 2022 (RZ09-0427PEA3) and despite my efforts, I can't seem to get the nvidia GPU to sleep. I'm using the amd modesetting driver (have also tried the xf86-video-amdgpu) and Nvidia proprietary one.
I've also tried optimus-manager and envycontrol and experienced the same issue. Regardless of whichever tool I use, when I run nvidia-smi, run cat /sys/class/drm/card0/device/power_state, or check powertop, it always shows my nvidia gpu sucking around 11-14W of power at all times, and the Xorg server running on it. When I use one of these utilities and set the GPU setup to integrated mode, the nvidia GPU does turn off. But I want to have it in on-demand mode and have it turn off when it's not being used. How can I do this? Thanks.
EDIT, this might be important:
cat /proc/driver/nvidia/gpus/0000:01:00.0/power
Runtime D3 status: Enabled (fine-grained)
Video Memory: Active
GPU Hardware Support:
Video Memory Self Refresh: Supported
Video Memory Off: Not Supported
[daph@daph-laptop rules.d]$ Last edited by PrismaticCuttlefish (2023-04-06 03:59:07)
Offline
If there's an Xorg server running on the nvidia gpu, that will be preventing the card from going to sleep. It sounds like you either aren't running in, or have misconfigured on-demand, or possibly you have an app that's auto-starting with primus-run prime-run?
Last edited by radiomike (2023-04-07 20:58:56)
Offline
I've tried reinstalling and following nvidia's chapter 22 here as well as the archwiki page on PRIME and it ends up with the same result unfortunately. What should I be doing to try and resolve this?
I've realized that nvidia-smi wakes the gpu, so I've started just monitoring it via cat /sys/class/drm/card0/device/power_state and it never seems to enter D3cold except for a second or two here and there. I've tried on both wayland and x11 and am unsure why this is happening.
Offline
Are you using gnome? I had a similar issue on gnome because gnome-remote-desktop was keeping my nvidia gpu awake. I solved it by placing
[Service]
ExecStart=
ExecStart=env CUDA_VISIBLE_DEVICES="" /usr/lib/gnome-remote-desktop-daemonin /etc/systemd/user/gnome-remote-desktop.service.d/no-CUDA-override.conf .
Offline
I've made a similar (but distinctly different) thread for my Razer Blade 15 (2021 Base) that you may find value in following here. I'm trying to do something similar.
https://bbs.archlinux.org/viewtopic.php?id=286797
Last edited by RandomRanger (2023-06-27 16:00:52)
Any sufficiently advanced magic is indistinguishable from science.
Offline
Did you configure Power Management in optimus-manager ? It is not enabled by default. I had similar issue where my gpu wold stay in D0 state consuming around 9-13w. Creating the file /etc/optimus-manager/optimus-manager.conf with the following contents solved it for me.
[nvidia]
dynamic_power_management=fine/usr/lib/Xorg still runs with around 4MiB memory usage according to nvidia-smi but the gpu goes in D3cold state after like half a minute of inactivity with hybrid mode enabled in optimus manager as reported by cat /sys/class/drm/card*/device/power_state
Also, having a display connected to your hdmi port will prevent the gpu from going to D3cold state (if the hdmi port is wired to nvidia gpu).
Offline