Skip to content

Instantly share code, notes, and snippets.

@nariox
Created January 9, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nariox/e863aa488203eaccaacfb9d02049c815 to your computer and use it in GitHub Desktop.
Save nariox/e863aa488203eaccaacfb9d02049c815 to your computer and use it in GitHub Desktop.
tlp-stat output for Battery
--- TLP 1.3.0-beta.3 --------------------------------------------
+++ Configured Settings:
TLP_ENABLE="1"
TLP_PERSISTENT_DEFAULT="0"
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"
CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
CPU_ENERGY_PERF_POLICY_ON_BAT="power"
SCHED_POWERSAVE_ON_AC="0"
SCHED_POWERSAVE_ON_BAT="1"
NMI_WATCHDOG="0"
DISK_DEVICES="nvme0n1 sda"
DISK_APM_LEVEL_ON_AC="254 254"
DISK_APM_LEVEL_ON_BAT="128 128"
DISK_IOSCHED="keep keep"
SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
AHCI_RUNTIME_PM_TIMEOUT="15"
PCIE_ASPM_ON_AC="default"
PCIE_ASPM_ON_BAT="default"
RADEON_POWER_PROFILE_ON_AC="default"
RADEON_POWER_PROFILE_ON_BAT="default"
RADEON_DPM_PERF_LEVEL_ON_AC="auto"
RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
WIFI_PWR_ON_AC="off"
WIFI_PWR_ON_BAT="on"
WOL_DISABLE="Y"
SOUND_POWER_SAVE_ON_AC="0"
SOUND_POWER_SAVE_ON_BAT="1"
SOUND_POWER_SAVE_CONTROLLER="Y"
BAY_POWEROFF_ON_AC="0"
BAY_POWEROFF_ON_BAT="0"
BAY_DEVICE="sr0"
RUNTIME_PM_ON_AC="on"
RUNTIME_PM_ON_BAT="auto"
RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
USB_AUTOSUSPEND="1"
USB_BLACKLIST_BTUSB="0"
USB_BLACKLIST_PHONE="0"
USB_BLACKLIST_PRINTER="1"
USB_BLACKLIST_WWAN="0"
USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
RESTORE_DEVICE_STATE_ON_STARTUP="0"
RESTORE_THRESHOLDS_ON_BAT="0"
NATACPI_ENABLE="1"
TPACPI_ENABLE="1"
TPSMAPI_ENABLE="1"
+++ System Info
System = LENOVO ThinkPad T480 20L5CTO1WW
BIOS = N24ET53W (1.28 )
Release = "Arch Linux"
Kernel = 5.4.8-zen1-1-zen #1 ZEN SMP PREEMPT Sat, 04 Jan 2020 23:38:36 +0000 x86_64
/proc/cmdline = initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img quiet splash loglevel=3 systemd.show_status=0 udev.log_priority=3 rd.luks.name=2dc109c6-48d5-42db-b303-7534a634c3c0=cryptroot rd.luks.options=discard root=/dev/MyVolGroup/root rootflags=rw,noatime,nodiratime,compress-force=zstd:1,ssd,discard,space_cache,inode_cache,subvolid=257,subvol=/@ audit=0 scsi_mod.use_blk_mq=1 add_efi_memmap i915.fastboot=1 rd.skipfsck=1 rd.info=0
Init system = systemd
Boot mode = UEFI
+++ TLP Status
State = enabled
RDW state = enabled
Last run = 02:36:18 PM, 2 sec(s) ago
Mode = battery
Power source = battery
+++ Processor
CPU model = Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
/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_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/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_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu1/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/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_available_governors = performance powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu2/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/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_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu3/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu4/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu4/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu5/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu5/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu6/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu6/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver = intel_pstate
/sys/devices/system/cpu/cpu7/cpufreq/scaling_governor = powersave
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq = 3600000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/energy_performance_preference = power [HWP.EPP]
/sys/devices/system/cpu/cpu7/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 11 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo = 0
/sys/devices/system/cpu/intel_pstate/turbo_pct = 58 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 33
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ Temperatures
/proc/acpi/ibm/thermal = 49 47 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [°C]
/proc/acpi/ibm/fan = 0 [/min]
+++ File System
/proc/sys/vm/laptop_mode = 2
/proc/sys/vm/dirty_writeback_centisecs = 6000
/proc/sys/vm/dirty_expire_centisecs = 6000
/proc/sys/vm/dirty_ratio = 50
/proc/sys/vm/dirty_background_ratio = 20
+++ Storage Devices
Devices = nvme0n1 sda
/dev/nvme0n1: not present.
/dev/sda:
Type = ATA
Model = Samsung SSD 860 EVO 500GB
Firmware = RVT01B6Q
APM Level = none/disabled
Status = active/idle
TRIM = supported
Scheduler = mq-deadline kyber [bfq] none (multi queue)
Runtime PM: control = on, autosuspend_delay_ms = -1
SMART info:
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 3007 [h]
12 Power_Cycle_Count = 2147
177 Wear_Leveling_Count = 99 [%]
179 Used_Rsvd_Blk_Cnt_Tot = 0
190 Airflow_Temperature_Cel = 33 [°C]
241 Total_LBAs_Written = 7.449 [TB]
+++ AHCI Link Power Management (ALPM)
/sys/class/scsi_host/host0/link_power_management_policy = med_power_with_dipm
/sys/class/scsi_host/host1/link_power_management_policy = med_power_with_dipm
/sys/class/scsi_host/host2/link_power_management_policy = med_power_with_dipm
+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:17.0/ata1/power/control = on
/sys/bus/pci/devices/0000:00:17.0/ata2/power/control = on
/sys/bus/pci/devices/0000:00:17.0/ata3/power/control = on
+++ Docks and Device Bays
/sys/devices/platform/dock.0: battery_bay = battery present
+++ Intel Graphics
/sys/module/i915/parameters/enable_dc = 3 (enabled + deep)
/sys/module/i915/parameters/enable_fbc = 1 (enabled)
/sys/module/i915/parameters/enable_psr = 1 (enabled)
/sys/module/i915/parameters/modeset = -1 (use per-chip default)
/sys/class/drm/card0/gt_min_freq_mhz = 300 [MHz]
/sys/class/drm/card0/gt_max_freq_mhz = 1100 [MHz]
/sys/class/drm/card0/gt_boost_freq_mhz = 1100 [MHz]
/sys/kernel/debug/dri/0/i915_ring_freq_table: 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000 1050 1100 [MHz]
+++ Wireless
bluetooth = on
wifi = on
wwan = none (no device)
hci0(btusb) : bluetooth, not connected
wlan0(iwlwifi) : wifi, connected, power management = on
+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y
+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave (using BIOS preferences)
+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon
/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, skl_uncore)
/sys/bus/pci/devices/0000:00:02.0/power/control = auto (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:04.0/power/control = auto (0x118000, Signal processing controller, proc_thermal)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x088000, System peripheral, no driver)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:14.2/power/control = auto (0x118000, Signal processing controller, intel_pch_thermal)
/sys/bus/pci/devices/0000:00:15.0/power/control = auto (0x118000, Signal processing controller, intel-lpss)
/sys/bus/pci/devices/0000:00:16.0/power/control = auto (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:17.0/power/control = auto (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.6/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1f.0/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:1f.2/power/control = auto (0x058000, Memory controller, no driver)
/sys/bus/pci/devices/0000:00:1f.3/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1f.4/power/control = auto (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:00:1f.6/power/control = auto (0x020000, Ethernet controller, e1000e)
/sys/bus/pci/devices/0000:01:00.0/power/control = on (0x030200, 3D controller, no driver)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
+++ USB
Autosuspend = enabled
Device whitelist = (not configured)
Device blacklist = (not configured)
Bluetooth blacklist = disabled
Phone blacklist = disabled
WWAN blacklist = disabled
Bus 002 Device 003 ID 0bda:0316 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. USB3.0-CRW (usb-storage)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 007 ID 5986:2113 control = auto, autosuspend_delay_ms = 2000 -- Acer, Inc Integrated Camera (uvcvideo)
Bus 001 Device 005 ID 8087:0a2b control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. (btusb)
Bus 001 Device 003 ID 5986:1141 control = auto, autosuspend_delay_ms = 2000 -- Acer, Inc Integrated IR Camera (uvcvideo)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
+++ Battery Features: Charge Thresholds and Recalibrate
natacpi = active (data, thresholds)
tpacpi-bat = inactive (kernel module 'acpi_call' not installed)
tp-smapi = inactive (ThinkPad not supported)
+++ ThinkPad Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer = SANYO
/sys/class/power_supply/BAT0/model_name = 01AV419
/sys/class/power_supply/BAT0/cycle_count = 76
/sys/class/power_supply/BAT0/energy_full_design = 24020 [mWh]
/sys/class/power_supply/BAT0/energy_full = 20550 [mWh]
/sys/class/power_supply/BAT0/energy_now = 930 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Unknown
/sys/class/power_supply/BAT0/charge_start_threshold = 70 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold = 80 [%]
Charge = 4.5 [%]
Capacity = 85.6 [%]
+++ ThinkPad Battery Status: BAT1
/sys/class/power_supply/BAT1/manufacturer = LGC
/sys/class/power_supply/BAT1/model_name = 01AV492
/sys/class/power_supply/BAT1/cycle_count = 78
/sys/class/power_supply/BAT1/energy_full_design = 71100 [mWh]
/sys/class/power_supply/BAT1/energy_full = 66890 [mWh]
/sys/class/power_supply/BAT1/energy_now = 3050 [mWh]
/sys/class/power_supply/BAT1/power_now = 11065 [mW]
/sys/class/power_supply/BAT1/status = Discharging
/sys/class/power_supply/BAT1/charge_start_threshold = 70 [%]
/sys/class/power_supply/BAT1/charge_stop_threshold = 80 [%]
Charge = 4.6 [%]
Capacity = 94.1 [%]
+++ Charge total = 4.6 [%]
+++ Recommendations
* Install acpi_call kernel module for ThinkPad battery recalibration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment