please backport 0.21 to jammy

Bug #2008958 reported by Dimitri John Ledkov
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
power-profiles-daemon (Ubuntu)
Status tracked in Noble
Jammy
Fix Committed
Undecided
Unassigned
Mantic
Fix Committed
Undecided
Unassigned
Noble
Fix Released
Wishlist
Unassigned

Bug Description

[ Impact ]

power-profiles-daemon has the ability to make drastic improvements to the power consumption of machines. This increases the likelihood of them passing energy certifications such as Energy Star.

On AMD laptops the following improvements are made:
* Tune the platform cTDP using the ACPI platform profile drivers.
* Tune the CPU using the amd-pstate EPP driver (kernel 6.5 or newer)
* Tune the backlight using AMD ABM (kernel 6.8 or newer)
* Tune the EPP dynamically based on AC vs battery
On Intel laptops the following improvements are made:
* Tune the CPU using the intel-pstate EPP/EPB driver
* Tune the EPP dynamically based on AC vs battery

As Ubuntu 22.04 has kernel 6.5 and will later get kernel 6.8, many of the improvements specifically for AMD laptops can apply.

[ Test Plan ]

Check for visual "performance issues" on battery using a web browser.
Verify correct EPP targets are selected (balance_power on battery balance_performance on AC).
Verify that changing to power-saver and performance profiles work properly.

[ Where problems could occur ]

There is a very thorough integration test suite distributed with power-profiles-daemon. This covers combinations of kernels and hardware that are seen in Ubuntu.

It is reported upstream that some "old" Intel systems don't handle balance_power effectively and can cause skipped frames. This should be looked for explicitly when testing.

It is possible that some users would prefer the increased performance instead of efficiency that will be available on a laptop in battery mode. They will need to manually change to performance mode to get that performance.

[ Other info ]

Frame.work has been suggesting to their AMD laptop users to use a backported release on this PPA https://launchpad.net/~superm1/+archive/ubuntu/ppd since Framework 13 AMD and Framework 16 AMD launched. There have been no reports of bugs on the release on this PPA.

Full upstream changelog is below.

0.21
----
Since this release power-profiles-daemon is battery-state aware and some drivers
use a more power efficient state when using the balanced profile on battery.
In particular both the AMD and Intel P-State drivers will use the
balance_power EPP profile, while for Intel one we also set the energy
performance bias to 8 (instead of 6).

This release also contains various fixes for the powerprofilesctl command line
tool when using the launch or version commands.
The tool is now better documented as we generate a manual page for it (if
python3-argparse is installed) and bash completions. We're even generating the
ZSH completions, but the install path must be provided.

The daemon command line interface has been improved for debugging, so use
--help-debug for further information.

The systemd service lockdown settings have been restricted even more.

Various code optimizations.

0.20
----

This release adds support for multiple power-profiles-daemon drivers to
load simultaneously. This notably allows both CPU based control with
amd-pstate or intel-pstate as well as ACPI platform profile based control.

This release also adds support for the amdgpu panel power savings which uses
dedicated hardware in systems with integrated Radeon graphics to decrease panel
power consumption when the system is on battery.

0.13
----

This release adds support for the AMD P-State driver that's been added to the
6.3 Linux kernel. This release also fixes mismatched profiles on some HP
laptops and some miscellaneous bug fixes.

0.12
----

This release adds support for the Intel "Energy Performance Bias" feature, which
can be used on hardware that doesn't have a platform_profile or doesn't support
HWP. It will also be used to eke out a bit more performance, or power, on systems
which already supported HWP.

More information is available in the README.

0.11.1
------

This release stops power-profiles-daemon from modifying the cpufreq driver when
driver when the user/administrator has chosen to disable the Intel P-State scaling
governor (eg. forcing a passive operation mode).

More information is available in the README.

0.11
----

This release fixes problems on Intel machines when the CPUs didn't support turbo at
all, or the performance scaling governor was built as default in the kernel.

It also adds better end-user documentation, fixes in the command-line tool to not
cause bug report tools to popup on not-uncommon errors, and a bug fix for running
on some systems with controllable charge speeds.

Revision history for this message
Mario Limonciello (superm1) wrote : Re: please backport 0.13 to jammy

I've updated the description and title to match 0.13.

If a backport happens for Jammy, I think it's better to pick up 0.13. It will allow amd-pstate to work as well (when enabled by the kernel).

summary: - please backport 0.12 to jammy
+ please backport 0.13 to jammy
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Backporting a newer version probably makes sense for better hardware support but we don't have a SRU exception for it atm and the changes probably don't really fit under the standard SRU rules unless we create bugs reports with specific testcase for each of those changesets

Changed in power-profiles-daemon (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Mario Limonciello (superm1) wrote (last edit ): Re: please backport 0.14 to jammy

The battery life improvements in the upcoming 0.20 release have been empirically reported to double or triple from this change, specifically when paired with kernel 6.5 or later on AMD systems.
It *may* also show improvements on older kernels with Intel systems.
To measure definitive improvements would require a repeatable representative workload.

I know it's outside of SRU policy as there is no historical exception, but I do think this should be considered for an SRU with such a dramatic change in battery life.

summary: - please backport 0.13 to jammy
+ please backport 0.14 to jammy
description: updated
summary: - please backport 0.14 to jammy
+ please backport 0.20 to jammy
description: updated
summary: - please backport 0.20 to jammy
+ please backport 0.21 to jammy
description: updated
Revision history for this message
Mario Limonciello (superm1) wrote :

I've updated the description to the SRU template. I do feel that this meets the "other safe cases" section.

description: updated
description: updated
Changed in power-profiles-daemon (Ubuntu Jammy):
status: New → Confirmed
Changed in power-profiles-daemon (Ubuntu Mantic):
status: New → Confirmed
Changed in power-profiles-daemon (Ubuntu Noble):
status: Confirmed → Fix Released
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted power-profiles-daemon into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/power-profiles-daemon/0.21-1~22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in power-profiles-daemon (Ubuntu Jammy):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in power-profiles-daemon (Ubuntu Mantic):
status: Confirmed → Fix Committed
tags: added: verification-needed-mantic
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Dimitri, or anyone else affected,

Accepted power-profiles-daemon into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/power-profiles-daemon/0.21-1~23.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.