(Created page with "= Improved Laptop Battery Life = == Summary == Improve Fedora (Workstation) Battery Life by enabling various hardware power-saving features by default. == Owner == * Name: [...")
Revision as of 09:23, 16 November 2017
Improved Laptop Battery Life
Improve Fedora (Workstation) Battery Life by enabling various hardware power-saving features by default.
- Name: Hans de Goede
- Email: email@example.com
- Release notes owner:
- Targeted release: Fedora 28
- Last updated: 2017-11-16
- Tracker bug: <will be assigned by the Wrangler>
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 :)
- 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:  (a check of an impact with Release Engineering is needed)
- List of deliverables: all
- Policies and guidelines: The policies and guidelines do not need to be updated.
- Trademark approval: Not needed for this Change.
All changes are in base packages, so on upgrade all users will automatically get these improvements.
How To Test
- 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
- 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
- Note the screen brightness should be the same for both tests, if your laptop has a brightness sensor, disable automatic brightness adjustments
- Fedora 28 idle power-consumption should be lower then Fedora 27's power-consumption, esp. on Haswell and later systems using a SATA disk
Laptops running Fedora Workstation will last longer on battery :)
- 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