[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#898629: improve battery life on laptop with kernel config



Package: linux
Version: 4.17~rc3-1~exp1
Severity: wishlist
Tags: patch

Hi,

 I've found Fedora28 tries to improve battery life on laptop.
 https://docs.fedoraproject.org/f28/release-notes/sysadmin/Kernel.html#sect-kernel-battery
 
 There are three points.

  1. 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.
  2. 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.
  3. 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. 


 Can we introduce such improvement into debian kernel? (especially amd64)
 I've tested it with modified 4.17~rc3 kernel as below and powertop, power
 consumption becomes 5.76 w to 4.61 w on my ThinkPad E450.


--- ./linux-4.17~rc3/debian/config/config	2018-04-20 09:33:41.000000000 +0900
+++ /home/henrich/linux-4.17~rc3/debian/config/config	2018-05-06 10:54:04.478447041 +0900
@@ -199,6 +199,7 @@
 CONFIG_SATA_ZPODD=y
 CONFIG_SATA_PMP=y
 CONFIG_SATA_AHCI=m
+CONFIG_SATA_MOBILE_LPM_POLICY=3
 # CONFIG_SATA_AHCI_PLATFORM is not set
 # CONFIG_AHCI_CEVA is not set
 # CONFIG_AHCI_QORIQ is not set
@@ -360,6 +361,7 @@
 ## file: drivers/bluetooth/Kconfig
 ##
 CONFIG_BT_HCIBTUSB=m
+CONFIG_BT_HCIBTUSB_AUTOSUSPEND=y
 CONFIG_BT_HCIBTUSB_BCM=y
 CONFIG_BT_HCIBTUSB_RTL=y
 CONFIG_BT_HCIBTSDIO=m
@@ -7327,7 +7329,8 @@
 CONFIG_SND_HDA_CODEC_CMEDIA=y
 CONFIG_SND_HDA_CODEC_SI3054=y
 CONFIG_SND_HDA_GENERIC=y
-CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
+CONFIG_SND_HDA_POWER_SAVE_DEFAULT=1
+CONFIG_SND_HDA_POWER_SAVE=y
 
 ##
 ## file: sound/pcmcia/Kconfig


Reply to: