Repository navigation
Description
NVIDIA Open GPU Kernel Modules Version
570.144
Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.
- I confirm that this does not happen with the proprietary driver package.
Operating System and Version
Description: NixOS 25.05 (Warbler)
Kernel Release
Linux Zephyrus 6.14.6 #1-NixOS SMP PREEMPT_DYNAMIC Fri May 9 07:56:10 UTC 2025 x86_64 GNU/Linux
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- I am running on a stable kernel release.
Hardware: GPU
GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU (UUID: GPU-15764050-a2ea-30c8-e844-a5f96fbe0389)
Describe the bug
When battery discharges, it will send a ACPI notification that wakes up dGPU on multi-gpu systems, which shortens battery life
To Reproduce
To reproduce this issue, I leave my laptop idle, and run the following scripts in terminal
sudo bpftrace -e '
kretprobe:nv_pmops_runtime_resume
{
printf("nv_pmops_runtime_resume returned %d for process %s (pid=%d)\n", retval, comm, pid);
print(kstack(20));
}
'
and when my dGPU got waken up, it prints:
nv_pmops_runtime_resume returned 0 for process kworker/0:1 (pid=5380)
__rpm_callback+65
rpm_callback+89
rpm_resume+1243
__pm_runtime_resume+75
pci_device_shutdown+34
nv_indicate_not_idle+43
os_ref_dynamic_power+342
rm_acpi_nvpcf_notify+131
acpi_ev_notify_dispatch+70
acpi_os_execute_deferred+23
process_one_work+394
worker_thread+564
kthread+235
ret_from_fork+49
ret_from_fork_asm+26
which indicate that some ACPI event wakes it up. So I run sudo acpi_listen, and got battery PNP0C0A:00 00000080 00000001.
After digging into the source code in this repo, I found that rm_acpi_nvpcf_notify calls os_ref_dynamic_power without checking the dGPU's current runtime power status. I think that it should check whether the dGPU is in the D3Cold state before calling os_ref_dynamic_power to ensure dGPU does not get waken up accidentally.
Bug Incidence
Always
nvidia-bug-report.log.gz
More Info
No response
Activity
ZaheenJ commentedon Dec 7, 2025
Did you ever find a solution to this issue? I believe I'm having the same issue on a Zephyrus G16 with a 4070.
sharp004 commentedon Mar 16, 2026
I have the same issue on my razer blade 14 with a 3080. Running on Nobara with 580 open nvidia driver. @PetrusCrus did you find any workaround /solutions ?
ZingiberisZhang commentedon Mar 17, 2026
I solved this by patching my ACPI table @sharp004
sharp004 commentedon Mar 17, 2026
Thank you for the hint @PetrusCrus
My dGPU cycles between D0 and D3cold every ~11 seconds on battery, while it stays stable in D3cold on AC power — which matches exactly the behavior described in this issue.
Could you share more details about what you did exactly in the ACPI table ?
Notify(NPCF, 0xC0)call, or did you take a different approach?Any code snippet or diff of your patch would be extremely helpful. Thanks!
phlipmode commentedon Oct 19, 2026
Still reproducible with 615.78.08 (open kernel modules) on an RTX 50 laptop. I traced the firmware side on my machine. On this ASUS model, the periodic wake-up comes from an EC query that sends
Notify(NPCF, 0xC0)every time it adjusts the Dynamic Boost budget, and that query is not gated by_OSI.System
10de:2f58), MUX in hybrid mode, internal panel on the iGPUNVreg_DynamicPowerManagement=2,Runtime D3 status: Enabled (fine-grained))Behaviour
power_supplychange uevent forBAT1, the dGPU goes D3cold → D0. It stays in D0 for about 24 s, then returns to D3cold.nvidia 0000:01:00.0: Enabling HDA controllerin dmesg./dev/nvidia*,renderD129orcard0open. Only Xwayland holdscard0permanently, and that does not prevent D3cold otherwise.nvidia-powerdstopped.Firmware path (from the decompiled DSDT, OEM
_ASUS_/Notebook, rev 0x01072009)The EC query
_QB6re-evaluates the Dynamic Boost budget from the AC state and the battery charge (RSOC), and then callsSPAB:\_SB.NPCFisNVDA0820, defined in the Optimus SSDT (OptRf2/Opt2Tabl). The battery itself is notified separately via_Q3F/_Q8C, which callNotify (BAT1, 0x80).Other
Notify (NPCF, 0xC0)sources in the same DSDT are:_QA8SFMN, called from_QD4WMNB(profile changes)None of them is periodic.
Driver side
nv_acpi_nvpcf_event()(kernel-open/nvidia/nv-acpi.c) handlesACPI_NVPCF_EVENT_CHANGE(0xC0) by callingrm_acpi_nvpcf_notify(). As the original report showed with bpftrace, that path resumes the GPU (os_ref_dynamic_power→ runtime resume) regardless of its current power state. Firmware that re-sends 0xC0 on every battery-level update therefore keeps waking a dGPU that is otherwise idle in D3cold.Notes
acpi_osi=will not help here:_QB6andSPABdo not check_OSI/OSYS.SPABre-sends the same values most of the time.Reproduce / check