Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvidia not suspending when using tuned #649

Closed
wangwillian0 opened this issue Jun 23, 2024 · 2 comments
Closed

Nvidia not suspending when using tuned #649

wangwillian0 opened this issue Jun 23, 2024 · 2 comments

Comments

@wangwillian0
Copy link
Contributor

wangwillian0 commented Jun 23, 2024

Update: The issue seems to be the laptop's nvidia card, which never suspends when using tuned. When using PPD, /sys/bus/pci/devices/0000:01:00.0/power/runtime_status will report the card as suspended just seconds after boot.

I'm using Fedora 40, 6.9.5-200.fc40.x86_64.


I'm trying the tuned-ppd compatibility layer (tuned 2.23.0) and was expecting for the profiles to have similar effect compared to power-profiles-daemon, but the power consumption is always worse than the default power-saver in power-profiles-daemon.

I can get around 10W with the power-saver mode in PPD if I wait 3-5min in idle, but consistently +15W with powersave mode in tuned. I also tried using custom profiles to get as closest as possible to what I thought PPD was doing, but I didn't have any success:

[main]
summary=Attempt to imitate power-profiles-daemon power-saver mode

[cpu]
governor=powersave
energy_perf_bias=power
energy_performance_preference=power

[acpi]
platform_profile=low-power

I'm measuring power with /sys/class/power_supply/BAT0/power_now after a reboot. The cpu settings and acpi seems to be the same in PPD and tuned checking /sys/firmware/acpi/platform_profile and /sys/devices/system/cpu/cpu0/cpufreq/*.

@wangwillian0 wangwillian0 changed the title tuned-ppd powersave mode is worse than power-saver in power-profiles-daemon Nvidia not suspending when using tuned Jun 24, 2024
@yarda
Copy link
Contributor

yarda commented Jun 24, 2024

Interesting, we merged recently some video plugin updates that should add ppd functionality related to graphics cards, but it seems in your case it's not enough. Do you know what to set to correctly suspend it?

@wangwillian0
Copy link
Contributor Author

wangwillian0 commented Jun 24, 2024

The issue was actually with the audio plugin. Writing 0 to /sys/module/snd_hda_intel/parameters/power_save_controller is not compatible with Nvidia laptops (TLP has more documentation about this). In my case specifically, it breaks the suspension functionality until a reboot, even if I set it back to the original value of 1. This might be the reason my test was incorrect (or I was just testing it incorrectly). I also tested on an Ubuntu laptop, and the file value was automatically changing back to 1; I'm not sure what was causing that.

Because it will likely draw more power or not work at all on laptops with Nvidia GPUs, I think this should be considered just as dangerous as USB auto-suspension and, therefore, disabled by default. I have created a pull request at #650.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants