omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

[Fix] Power draw spikes from resumed NVIDIA GPU eating ~20% of battery life in ASUS G14/G16 2024/2025

Open nightdevil00 opened this issue 3 months ago • 1 comments

System details

G14 2024 GA403UV, Omarchy 4

What's wrong?

What's wrong? On hybrid laptops, the NVIDIA GPU is powered down while idle. However, the firmware can still send NVPCF notifications: once per 1% of battery discharge, or every 4-5 minutes on the tested laptop; after a platform-profile change, such as: sudo sh -c 'echo balanced > /sys/firmware/acpi/platform_profile'

or manually changing through a GUI (Quiet <> Balanced <> Performance).

It seems to affect mostly ASUS G14/G16 2024/2025 on Intel or AMD.

This happens even when running on integrated mode with the DGPU powered off - and it is exactly when it hurts battery life the most.

Image

Fix This is due to a bug in the OSS Nvidia drivers, and the solution - awaiting it to be merged upstream - consists in recompiling the Nvidia drivers with the fix in https://github.com/NVIDIA/open-gpu-kernel-modules/pull/1299.

N.B.: Thanks to Krzysztof from the OmaDiscord for his help debugging this, the Open Gaming Collective discord for pointing towards the fix and the multiple GH contributors to the actual fix.

nightdevil00 avatar Aug 30 '26 19:08 nightdevil00

Thanks for tracking this down. I checked the diagnosis against the driver source, and it holds up. In the stock open driver, rm_acpi_nvpcf_notify() (src/nvidia/arch/nvalloc/unix/src/osapi.c) takes a fine-grained dynamic-power reference before it delivers each NVPCF event. os_ref_dynamic_power() in dynamic-power.c then calls nv_indicate_not_idle() on a GPU that is runtime-suspended, so every battery-percent tick and every platform-profile change powers the dGPU back up. NVIDIA/open-gpu-kernel-modules#1299 queues the event while the GPU is idle and delivers it on the next real resume. It is still open and unreviewed upstream, and the latest release (615.78.08) does not include it.

Omarchy doesn't cause this. install/hardware/nvidia.sh installs Arch's stock nvidia-open-dkms, and the wake happens inside the kernel module whether or not nvidia-powerd is running. I found no module option, udev rule or setting that stops the wake and still keeps runtime suspend. Disabling runtime PM just leaves the GPU powered all the time. So the only fix today is a patched driver, which is what you suggested. Carrying a patched NVIDIA driver, or waiting for upstream to merge it, is a packaging decision for the maintainer. I haven't opened a pull request, and this issue is waiting on them.

Nothing was reproduced. This needs the NVIDIA GPU and the laptop firmware that sends the events, and the disposable VMs omabot tests on have neither. Your measurements and the before-and-after results in the upstream thread are the evidence here. I found no earlier issue or open pull request in this repository that covers it. #10592, which enables nvidia-powerd, and #11675, which deals with Activity waking the GPU, touch the same hardware but do not change this path.

The second opinion came from Codex Medium. It traced the same mechanism to the same functions on its own and found no Omarchy-side fix either. That agreement is not guaranteed to be independent. It added one point, which I confirmed in the upstream pull request's description. A platform-profile change also sends a separate GPS status notification, handled by RmHandleGPSStatusChange(), and #1299 leaves that path alone. So even on the patched driver, switching profiles still wakes the GPU once. The upstream author calls that cost negligible because it only happens when someone switches profiles. The drain from every battery-percent tick is what the patch removes.

omarchybot avatar Oct 09 '26 09:10 omarchybot