ruebenramirez / blog

My blog
http://blog.ruebenramirez.com/
7 stars 0 forks source link

thinkpad power management #236

Open ruebenramirez opened 8 years ago

ruebenramirez commented 8 years ago

so I've installed all kinds of power management on this Thinkpad W520 to keep the battery life up.

TLP processor stats show that only one core (of 8) is set to powersave. All the others are set to performance.

[~]$ sudo tlp-stat -p
[sudo] password for rramirez: 
--- TLP 0.8 --------------------------------------------

+++ Processor
CPU Model      = Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu4/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu5/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu6/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu7/cpufreq/scaling_governor  = performance
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq  =   800000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq  =  3300000 [kHz]

/sys/devices/system/cpu/intel_pstate/min_perf_pct      = 100
/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100
/sys/devices/system/cpu/intel_pstate/no_turbo          = 0

x86_energy_perf_policy: program for your kernel not installed.

/proc/sys/kernel/nmi_watchdog                          = 0

+++ Undervolting
PHC kernel not available.

resources:

ruebenramirez commented 8 years ago

I think I need to look into what all is connecting to the internet when wifi is available.

when I was diconnected from wifi, battery was reported at somewhere just shy of 9 hours.

when I connected, battery is reported at 5 hours and 20 minutes.


it might also just be chrome is typically running when I'm connected to the web, and not otherwise...

ruebenramirez commented 8 years ago
ruebenramirez commented 8 years ago

made it easier to install the tlp tools via this Makefile rule:

thinkpad-power-management:
    # thinkpad power management
    sudo apt-get install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms
    sudo tlp start

But I think laptop-mode-tools is another great tool that helps with battery life.