From Fedora Project Wiki
(https://pagure.io/fesco/issue/1798)
Line 62: Line 62:
TODO
TODO


[[Category:ChangeReadyForFesco]]
[[Category:ChangeAcceptedF28]]
[[Category:SystemWideChange]]
[[Category:SystemWideChange]]

Revision as of 12:39, 5 December 2017

Improved Laptop Battery Life

Summary

Improve Fedora (Workstation) Battery Life by enabling various hardware power-saving features by default.

Owner

Current status

  • Targeted release: Fedora 28
  • Last updated: 2017-12-05
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

The initial focus of this change is to enable to following 3 hardware power-saving features by default:

  • A new SATA link-powermanagement-policy has been written which mirrors Windows defaults: med_power_with_dipm, this has been merged for kernel 4.15, as part of this change this new policy will be the default on all Intel mobile chipsets. This saves aprox. 1.0 - 1.5 Watts of power on an idle laptop.
  • Enable Intel HDA codec power-saving by default with a 1 second timeout. This saves aprox. 0.4 Watts of power on an idle laptop.
  • Enable USB autosuspend for USB bluetooth receivers by default. If all other USB devices on the laptop also have USB auto-suspend enabled (which typically is true) this saves aprox. 0.4 Watts of power on an idle laptop.

Depending on how much time this takes, this list may be extended.

Benefit to Fedora

Laptops running Fedora will last longer on battery :)

Scope

  • Proposal owners: Write kernel patches adding new policies / setting the defaults where necessary and merge these upstream (done for the new SATA link-pm-policy and for allowing USB autosuspend for btusb), temporarily add these patches to the Fedora kernels where necessary and set the Kconfig options to enable these features by default.
  • Other developers: This should not impact other developers, but e.g. developers working on bluetooth may see regressions which have their root cause in this change. All the changes will have kernel cmdline options to disable them, so that developers can easily ask users to test if these changes are the cause of any problems.
  • Release engineering: [1] (a check of an impact with Release Engineering is needed)
  • Policies and guidelines: The policies and guidelines do not need to be updated.
  • Trademark approval: Not needed for this Change.

Upgrade/compatibility impact

All changes are in base packages, so on upgrade all users will automatically get these improvements.

How To Test

  1. Install Fedora 27 (with its 4.13.x release kernel), or boot Fedora 28 with a F27 4.13.x kernel, install powertop, run laptop on battery power, login and run "sudo powertop" in a terminal, let it idle for 5 minutes and note idle powerconsumption rate
  2. Install Fedora 28, install powertop, run laptop on battery power, login and run "sudo powertop" in a terminal, let it idle for 5 minutes and note idle powerconsumption rate
  3. Note the screen brightness should be the same for both tests, if your laptop has a brightness sensor, disable automatic brightness adjustments
  4. Fedora 28 idle power-consumption should be lower then Fedora 27's power-consumption, esp. on Haswell and later systems using a SATA disk

User Experience

Laptops running Fedora Workstation will last longer on battery :)

Dependencies

None.

Contingency Plan

  • Contingency mechanism: All the power-saving features enabled by this change will have both a kernel commandline option to disable them during runtime for testing / debugging purposes and as a possible workaround. All the power-saving features will also have a Kconfig option to enable/disable them by default if any of the enabled features is causing trouble we can choose to disable that feature by default.
  • Contingency deadline: Beta Freeze
  • Blocks release? No
  • Blocks product? Workstation

Documentation

Release Notes

TODO