Skip to content

Instantly share code, notes, and snippets.

@BarbUk
Created January 9, 2020 06:37
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 BarbUk/997f5af92312402e20dbe2a91f9b0ebe to your computer and use it in GitHub Desktop.
Save BarbUk/997f5af92312402e20dbe2a91f9b0ebe to your computer and use it in GitHub Desktop.
--- TLP 1.3.0-beta.2 --------------------------------------------
+++ 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="sda"
DISK_APM_LEVEL_ON_AC="254"
DISK_APM_LEVEL_ON_BAT="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"
CPU_SCALING_GOVERNOR_ON_AC="powersave"
CPU_SCALING_GOVERNOR_ON_BAT="powersave"
CPU_MIN_PERF_ON_AC="0"
CPU_MAX_PERF_ON_AC="100"
CPU_MIN_PERF_ON_BAT="0"
CPU_MAX_PERF_ON_BAT="30"
CPU_BOOST_ON_AC="1"
CPU_BOOST_ON_BAT="0"
+++ System Info
System = LENOVO ThinkPad X220 4287CTO
BIOS = 8DET76WW (1.46 )
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 = rd.luks.name=5ec81ad6-4712-4a96-a3f1-30e9bff2ac1e=cryptroot rd.luks.options=discard root=/dev/mapper/cryptroot resume=/dev/mapper/cryptroot resume_offset=32090112 rw initrd=/intel-ucode.img initrd=/initramfs-linux-zen.img zswap.enabled=1 cpuidle.governor=teo mitigations=auto
Init system = systemd
Boot mode = UEFI
+++ TLP Status
State = enabled
RDW state = enabled
Last run = 10:34:49 AM, 22 sec(s) ago
Mode = AC
Power source = AC
Notice: systemd-rfkill.service is not masked -- invoke "systemctl mask systemd-rfkill.service" to correct this!
Notice: systemd-rfkill.socket is not masked -- invoke "systemctl mask systemd-rfkill.socket" to correct this!
+++ Processor
CPU model = Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
/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 = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 3500000 [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_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 3500000 [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_available_governors = performance powersave
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 3500000 [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_available_governors = performance powersave
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 3500000 [kHz]
/sys/devices/system/cpu/intel_pstate/min_perf_pct = 22 [%]
/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 = 25 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 28
/sys/devices/system/cpu/cpu0/power/energy_perf_bias = 4 (balance_performance) [EPB]
/sys/devices/system/cpu/cpu1/power/energy_perf_bias = 4 (balance_performance) [EPB]
/sys/devices/system/cpu/cpu2/power/energy_perf_bias = 4 (balance_performance) [EPB]
/sys/devices/system/cpu/cpu3/power/energy_perf_bias = 4 (balance_performance) [EPB]
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ Temperatures
CPU temp = 57 [°C]
/proc/acpi/ibm/fan = 2997 [/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 = 80
/proc/sys/vm/dirty_background_ratio = 25
+++ Storage Devices
Devices = sda
/dev/sda:
Type = ATA
Model = Samsung SSD 860 EVO 500GB
Firmware = RVT02B6Q
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 = 1699 [h]
12 Power_Cycle_Count = 1302
177 Wear_Leveling_Count = 99 [%]
179 Used_Rsvd_Blk_Cnt_Tot = 0
190 Airflow_Temperature_Cel = 36 [°C]
241 Total_LBAs_Written = 2.331 [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
/sys/class/scsi_host/host3/link_power_management_policy = med_power_with_dipm
/sys/class/scsi_host/host4/link_power_management_policy = med_power_with_dipm
/sys/class/scsi_host/host5/link_power_management_policy = med_power_with_dipm
+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata2/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata3/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata4/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata5/power/control = on
/sys/bus/pci/devices/0000:00:1f.2/ata6/power/control = on
+++ Docks and Device Bays
/sys/devices/platform/dock.0: battery_bay = no battery
/sys/devices/platform/dock.1: ata_bay = no drive (or powered off)
/sys/devices/platform/dock.2: dock_station = undocked
+++ Intel Graphics
/sys/module/i915/parameters/enable_dc = 2 (disabled + deep)
/sys/module/i915/parameters/enable_fbc = 0 (disabled)
/sys/module/i915/parameters/enable_psr = -1 (use per-chip default)
/sys/module/i915/parameters/modeset = 1 (enabled)
/sys/class/drm/card0/gt_min_freq_mhz = 650 [MHz]
/sys/class/drm/card0/gt_max_freq_mhz = 1300 [MHz]
/sys/class/drm/card0/gt_boost_freq_mhz = 1300 [MHz]
/sys/kernel/debug/dri/0/i915_ring_freq_table: 650 700 750 800 850 900 950 1000 1050 1100 1150 1200 1250 1300 [MHz]
+++ Wireless
bluetooth = on
wifi = on
wwan = none (no device)
hci0(btusb) : bluetooth, not connected
wlan(ath9k) : wifi, not connected, power management = off
+++ Audio
/sys/module/snd_hda_intel/parameters/power_save = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N
+++ 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 = 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:16.0/power/control = on (0x078000, Communication controller, mei_me)
/sys/bus/pci/devices/0000:00:19.0/power/control = on (0x020000, Ethernet controller, e1000e)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.4/power/control = on (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 (0x0c0320, USB controller, ehci-pci)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:03:00.0/power/control = on (0x028000, Network controller, ath9k)
/sys/bus/pci/devices/0000:0d:00.0/power/control = on (0x088001, System peripheral, sdhci-pci)
/sys/bus/pci/devices/0000:0e:00.0/power/control = on (0x0c0330, USB controller, xhci_hcd)
+++ USB
Autosuspend = enabled
Device whitelist = (not configured)
Device blacklist = (not configured)
Bluetooth blacklist = disabled
Phone blacklist = disabled
WWAN blacklist = disabled
Bus 004 Device 012 ID 12d1:107e control = auto, autosuspend_delay_ms = 2000 -- Huawei Technologies Co., Ltd. (usb-storage)
Bus 004 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 004 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 004 ID 2109:0813 control = auto, autosuspend_delay_ms = 0 -- VIA Labs, Inc. USB3.0 Hub (hub)
Bus 003 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 013 ID 04d9:8009 control = on, autosuspend_delay_ms = 2000 -- Holtek Semiconductor, Inc. (usbhid)
Bus 002 Device 012 ID 1e7d:2dbe control = on, autosuspend_delay_ms = 2000 -- ROCCAT (usbhid)
Bus 002 Device 011 ID 0d8c:1319 control = on, autosuspend_delay_ms = 2000 -- C-Media Electronics, Inc. (snd-usb-audio, usbhid)
Bus 002 Device 010 ID 2109:2813 control = auto, autosuspend_delay_ms = 0 -- VIA Labs, Inc. USB2.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 004 ID 04f2:b217 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) (uvcvideo)
Bus 001 Device 003 ID 0a5c:21e6 control = auto, autosuspend_delay_ms = 2000 -- Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad] (btusb)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
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 (thresholds)
tpacpi-bat = active (recalibrate)
tp-smapi = readonly (data)
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer = SANYO
/sys/devices/platform/smapi/BAT0/model = 45N1023
/sys/devices/platform/smapi/BAT0/manufacture_date = 2019-10-25
/sys/devices/platform/smapi/BAT0/first_use_date = 2019-12-26
/sys/devices/platform/smapi/BAT0/cycle_count = 2
/sys/devices/platform/smapi/BAT0/temperature = 25 [°C]
/sys/devices/platform/smapi/BAT0/design_capacity = 94000 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 93840 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 83990 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 90 [%]
/sys/devices/platform/smapi/BAT0/remaining_running_time_now = not_discharging [min]
/sys/devices/platform/smapi/BAT0/remaining_charging_time = not_charging [min]
/sys/devices/platform/smapi/BAT0/power_now = 0 [mW]
/sys/devices/platform/smapi/BAT0/power_avg = 0 [mW]
/sys/devices/platform/smapi/BAT0/state = idle
/sys/class/power_supply/BAT0/charge_start_threshold = 75 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold = 90 [%]
tpacpi-bat.BAT0.forceDischarge = 0
Charge = 89.5 [%]
Capacity = 99.8 [%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment