Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save longwuyuan/9650ed00029ebb7994be95369376345d to your computer and use it in GitHub Desktop.
Save longwuyuan/9650ed00029ebb7994be95369376345d to your computer and use it in GitHub Desktop.
"tlp-stat" output
% sudo tlp-stat
--- TLP 0.8 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES="sda sdb"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=1
WIFI_PWR_ON_BAT=5
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_ALL=1
RUNTIME_PM_DRIVER_BLACKLIST="radeon nouveau"
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
+++ System Info
System = LENOVO ThinkPad X260 20F6A06CCD
BIOS = R02ET46W (1.19 )
Release = Ubuntu 16.04.2 LTS
Kernel = 4.8.0-39-generic #42~16.04.1-Ubuntu SMP Mon Feb 20 15:06:07 UTC 2017 x86_64
/proc/cmdline = BOOT_IMAGE=/vmlinuz-4.8.0-39-generic root=/dev/mapper/ubuntu--gnome--vg-root ro ipv6.disable=1
Init system = systemd
+++ System Status
TLP power save = enabled
power source = AC
+++ Processor
CPU Model = Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
/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 = 400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3100000 [kHz]
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 12
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 50
/sys/devices/system/cpu/intel_pstate/no_turbo = 1
x86_energy_perf_policy: program for your kernel not installed.
/proc/sys/kernel/nmi_watchdog = 0
+++ Undervolting
PHC kernel not available.
+++ Temperatures
CPU temp = 45 [°C]
/proc/acpi/ibm/fan = 0 [/min]
+++ File System
/proc/sys/vm/laptop_mode = 0
/proc/sys/vm/dirty_writeback_centisecs = 1500
/proc/sys/vm/dirty_expire_centisecs = 1500
/proc/sys/vm/dirty_ratio = 40
/proc/sys/vm/dirty_background_ratio = 10
/proc/sys/fs/xfs/age_buffer_centisecs = (not available)
/proc/sys/fs/xfs/xfssyncd_centisecs = (not available)
/proc/sys/fs/xfs/xfsbufd_centisecs = (not available)
+++ Storage Devices
/dev/sda:
Model = Lenovo SSD ST510 240G
Firmware = P0925A
APM Level = none/disabled
Status = active/idle
TRIM = supported
Scheduler = deadline
SMART info:
5 Reallocated_Sector_Ct = 1
9 Power_On_Hours = 0 [h]
177 Wear_Leveling_Count = 100 [%]
194 Temperature_Celsius = 40 [°C]
232 Available_Reservd_Space = 100 [%]
241 Total_LBAs_Written = 0.000 [TB]
+++ SATA Aggressive Link Power Management
/sys/class/scsi_host/host0/link_power_management_policy = max_performance
/sys/class/scsi_host/host1/link_power_management_policy = max_performance
+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = default (using bios preferences)
+++ Intel Graphics
/sys/module/i915/parameters/powersave = (not available)
/sys/module/i915/parameters/enable_rc6 = 1 (enabled)
/sys/module/i915/parameters/enable_fbc = 0 (disabled)
/sys/module/i915/parameters/lvds_downclock = (not available)
/sys/module/i915/parameters/semaphores = -1 (use per-chip default)
+++ Wireless
bluetooth = none (no device)
wifi = on
wwan = none (no device)
wlp4s0(iwlwifi) : connected, power management = on
+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N
+++ Docks and Device Bays
/sys/devices/platform/dock.0: battery_bay = battery present
+++ Runtime Power Management
device classes = all
device blacklist = (not configured)
driver blacklist = radeon nouveau
/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:14.0/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:14.2/power/control = on (0x118000, Signal processing controller, intel_pch_thermal)
/sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:17.0/power/control = on (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.2/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x058000, Memory controller, intel_pmc_core)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1f.4/power/control = on (0x0c0500, SMBus, no driver)
/sys/bus/pci/devices/0000:00:1f.6/power/control = on (0x020000, Ethernet controller, e1000e)
/sys/bus/pci/devices/0000:04:00.0/power/control = on (0x028000, Network controller, iwlwifi)
+++ USB
autosuspend = enabled
device whitelist = (not configured)
device blacklist = (not configured)
wwan blacklist = enabled
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 003 ID 138a:0017 control = auto, autosuspend_delay_ms = 2000 -- Validity Sensors, Inc. Fingerprint Reader (no driver)
Bus 001 Device 002 ID 5986:0268 control = auto, autosuspend_delay_ms = 2000 -- Acer, Inc (uvcvideo)
Bus 001 Device 004 ID 12d1:1f01 control = auto, autosuspend_delay_ms = 2000 -- Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode) (no driver)
Bus 001 Device 006 ID 12d1:107e control = auto, autosuspend_delay_ms = 2000 -- Huawei Technologies Co., Ltd. (usbfs, usb-storage)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 2000 -- Linux Foundation 2.0 root hub (hub)
+++ ThinkPad Extended Battery Functions
tp-smapi = inactive (kernel module 'tp_smapi' not installed)
tpacpi-bat = active
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 45N1773
/sys/class/power_supply/BAT0/cycle_count = (not supported)
/sys/class/power_supply/BAT0/energy_full_design = 23200 [mWh]
/sys/class/power_supply/BAT0/energy_full = 23760 [mWh]
/sys/class/power_supply/BAT0/energy_now = 23720 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown (threshold effective)
tpacpi-bat.BAT0.startThreshold = 96 [%]
tpacpi-bat.BAT0.stopThreshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0
+++ ThinkPad Battery Status: BAT1 (Ultrabay / Slice / Replaceable)
/sys/class/power_supply/BAT1/manufacturer = SANYO
/sys/class/power_supply/BAT1/model_name = 45N1767
/sys/class/power_supply/BAT1/cycle_count = (not supported)
/sys/class/power_supply/BAT1/energy_full_design = 47520 [mWh]
/sys/class/power_supply/BAT1/energy_full = 46880 [mWh]
/sys/class/power_supply/BAT1/energy_now = 44980 [mWh]
/sys/class/power_supply/BAT1/power_now = 0 [mW]
/sys/class/power_supply/BAT1/status = Unknown (threshold effective)
tpacpi-bat.BAT1.startThreshold = 96 [%]
tpacpi-bat.BAT1.stopThreshold = 100 [%]
tpacpi-bat.BAT1.forceDischarge = 0
+++ Suggestions
* Install tp-smapi kernel modules for ThinkPad advanced battery functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment