Closed klmcwhirter closed 4 months ago
I'm using EnvyControl, enabled integrated GPU, but the lspci command can still wake disabled devices up.
Before i run "sudo lspci -m -k" The battery reports a discharge rate of 7.25 W The energy consumed was 152 J
Usage Device name
2,2% CPU misc
2,2% CPU core
00:00.0 "Host bridge" "Advanced Micro Devices, Inc. [AMD]" "Device 14e8" -p00 "Lenovo" "Device 3802"
PCI Device: Advanced Micro Devices, Inc. [AMD] Device 14ed
After i did run "sudo lspci -m -k" The battery reports a discharge rate of 20.5 W The energy consumed was 419 J
Usage Device name
11,4% CPU misc
11,4% CPU core
00:01.1 "PCI bridge" "Advanced Micro Devices, Inc. [AMD]" "Device 14ed" -p00 "Advanced Micro Devices, Inc. [AMD]" "Device 1453"
00:02.3 "PCI bridge" "Advanced Micro Devices, Inc. [AMD]" "Device 14ed" -p00 "Advanced Micro Devices, Inc. [AMD]" "Device 1453"
This approach only seems to work with a specific set of hardware / software and is not a general solution.
Does the approach described below work for most people (different nvidia H/W, linux distros, etc.) ?
I encountered a technique to remove the NVIDIA devices from the PCIe bus so that the nvidia hardware can be switched off with the goal of improving battery life.
I have put together a POC and am working with @bayasdev on potentially including this in envycontrol upon switch to integrated mode.
The approach I have found has these benefits.
Prerequisites
He just says at the end of that paragraph that:
I should also mention that I have an Acer Nitro 5 with an RTX 3050 Ti.
My
/etc/tmpfiles.d/nvidia_no_gpu.conf
file.I'll be happy to answer any questions you may have about using the POC code over in the https://github.com/klmcwhirter/nvidia-more-battery repo.
Please comment with your feedback to help us decide whether this can or even should be included in envycontrol directly, or simply added to the documentation as another option.
Thanks for the help.