Skip to content

Instantly share code, notes, and snippets.

@BarbUk
Created September 20, 2024 16:16
Show Gist options
  • Save BarbUk/b9314650851618c8d2690f8ccd7a707a to your computer and use it in GitHub Desktop.
Save BarbUk/b9314650851618c8d2690f8ccd7a707a to your computer and use it in GitHub Desktop.
--- TLP 1.7.0-beta.2 --------------------------------------------
+++ Configured Settings:
defaults.conf L0006: TLP_ENABLE="1"
defaults.conf L0007: TLP_WARN_LEVEL="3"
defaults.conf L0008: TLP_MSG_COLORS="91 93 1 92"
defaults.conf L0009: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0010: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0011: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0012: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0013: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0014: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0015: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0016: NMI_WATCHDOG="0"
/etc/tlp.d/01-custom.conf L0004: DISK_DEVICES="sda"
/etc/tlp.d/01-custom.conf L0005: DISK_APM_LEVEL_ON_AC="254"
/etc/tlp.d/01-custom.conf L0006: DISK_APM_LEVEL_ON_BAT="128"
defaults.conf L0020: DISK_APM_CLASS_DENYLIST="usb ieee1394"
/etc/tlp.d/01-custom.conf L0007: DISK_IOSCHED="mq-deadline"
defaults.conf L0022: SATA_LINKPWR_ON_AC="med_power_with_dipm"
defaults.conf L0023: SATA_LINKPWR_ON_BAT="med_power_with_dipm"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0025: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0026: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0027: PCIE_ASPM_ON_AC="default"
defaults.conf L0028: PCIE_ASPM_ON_BAT="default"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0030: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0032: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0033: AMDGPU_ABM_LEVEL_ON_AC="0"
defaults.conf L0034: AMDGPU_ABM_LEVEL_ON_BAT="1"
defaults.conf L0035: WIFI_PWR_ON_AC="off"
defaults.conf L0036: WIFI_PWR_ON_BAT="on"
defaults.conf L0037: WOL_DISABLE="Y"
defaults.conf L0038: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0039: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0040: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0041: BAY_POWEROFF_ON_AC="0"
defaults.conf L0042: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0043: BAY_DEVICE="sr0"
defaults.conf L0044: RUNTIME_PM_ON_AC="on"
defaults.conf L0045: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0046: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon xhci_hcd"
defaults.conf L0047: USB_AUTOSUSPEND="1"
defaults.conf L0048: USB_EXCLUDE_AUDIO="1"
defaults.conf L0049: USB_EXCLUDE_BTUSB="0"
defaults.conf L0050: USB_EXCLUDE_PHONE="0"
defaults.conf L0051: USB_EXCLUDE_PRINTER="1"
defaults.conf L0052: USB_EXCLUDE_WWAN="0"
defaults.conf L0053: RESTORE_DEVICE_STATE_ON_STARTUP="0"
/etc/tlp.d/01-custom.conf L0012: RESTORE_THRESHOLDS_ON_BAT="1"
defaults.conf L0055: NATACPI_ENABLE="1"
defaults.conf L0056: TPSMAPI_ENABLE="1"
/etc/tlp.d/01-custom.conf L0001: CPU_BOOST_ON_AC="1"
/etc/tlp.d/01-custom.conf L0002: CPU_BOOST_ON_BAT="0"
/etc/tlp.d/01-custom.conf L0003: CPU_SCALING_GOVERNOR_ON_AC="ondemand"
/etc/tlp.d/01-custom.conf L0008: DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"
/etc/tlp.d/01-custom.conf L0009: DEVICES_TO_ENABLE_ON_STARTUP="wifi"
/etc/tlp.d/01-custom.conf L0010: START_CHARGE_THRESH_BAT0="75"
/etc/tlp.d/01-custom.conf L0011: STOP_CHARGE_THRESH_BAT0="90"
/etc/tlp.d/01-custom.conf L0014: USB_DENYLIST="04d9:a293 0d8c:1319 1d6b:0002 1d6b:0003 1d6b:0002 1d6b:0002"
+++ System Info
System = LENOVO ThinkPad X220 4287CTO
BIOS = 8DET76WW (1.46 )
EC Firmware = 1.24
OS Release = Arch Linux
Kernel = 6.10.10-zen1-1.1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 15 Sep 2024 00:50:55 +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=43503616 rw zswap.enabled=1 zswap.compressor=zstd systemd.unified_cgroup_hierarchy=1 mitigations=off vga=current ipv6.disable=1
Init system = systemd
Boot mode = UEFI
Suspend mode = s2idle [deep]
+++ TLP Status
State = enabled
RDW state = enabled
Last run = 06:14:33 PM, 107 sec(s) ago
Mode = AC
Power source = AC
+++ Processor
CPU model = Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/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/cpu0/cpufreq/cpuinfo_min_freq = 800000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq = 3500000 [kHz]
/sys/devices/system/cpu/cpu0/power/energy_perf_bias = 4 (balance_performance) [EPB]
/sys/devices/system/cpu/cpu1..cpu3: omitted for clarity, use -v to show all
/sys/devices/system/cpu/intel_pstate/status = passive
/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/hwp_dynamic_boost = (not available)
/sys/devices/system/cpu/intel_pstate/turbo_pct = 25 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates = 28
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ Platform Profile
/sys/firmware/acpi/platform_profile = (not available)
/sys/firmware/acpi/platform_profile_choices = (not available)
/sys/devices/platform/thinkpad_acpi/dytc_lapmode = (not available)
+++ Temperatures
CPU temp = 74 [°C]
/proc/acpi/ibm/fan = 3454 [/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
+++ Disks
Devices = sda
/dev/sda:
Type = SATA
Disk ID = ata-Samsung_SSD_860_EVO_500GB_***************
Model = Samsung SSD 860 EVO 500GB
Firmware = RVT02B6Q
APM Level = none/disabled
Status = active/idle
TRIM = supported
Host = host0
Scheduler = none [mq-deadline] kyber bfq (multi queue)
Runtime PM:
/sys/block/sda/device/power/control = on, autosuspend_delay_ms = 15000
SMART info:
5 Reallocated_Sector_Ct = 0
9 Power_On_Hours = 10554 [h]
12 Power_Cycle_Count = 4108
177 Wear_Leveling_Count = 98 [%]
179 Used_Rsvd_Blk_Cnt_Tot = 0
190 Airflow_Temperature_Cel = 33 [°C]
241 Total_LBAs_Written = 13.072 [TB]
+++ AHCI Link Power Management (ALPM) :: SATA Links
/sys/bus/pci/devices/0000:00:1f.2/ata1/host0/scsi_host/host0/link_power_management_policy = med_power_with_dipm -- sda
/sys/bus/pci/devices/0000:00:1f.2/ata2/host1/scsi_host/host1/link_power_management_policy = med_power_with_dipm
/sys/bus/pci/devices/0000:00:1f.2/ata3/host2/scsi_host/host2/link_power_management_policy = med_power_with_dipm
/sys/bus/pci/devices/0000:00:1f.2/ata4/host3/scsi_host/host3/link_power_management_policy = med_power_with_dipm
/sys/bus/pci/devices/0000:00:1f.2/ata5/host4/scsi_host/host4/link_power_management_policy = med_power_with_dipm
/sys/bus/pci/devices/0000:00:1f.2/ata6/host5/scsi_host/host5/link_power_management_policy = med_power_with_dipm
+++ AHCI Port Runtime Power Management :: SATA/ATA Ports
/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control = on -- sda
/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/class/drm/card1/device/driver = i915
/sys/class/drm/card1/power/rc6_enable = 1 (enabled)
/sys/kernel/debug/dri/1/i915_fbc_status = FBC disabled: disabled per module param or by default
/sys/module/i915/parameters/enable_psr = -1 (use per-chip default)
/sys/class/drm/card1/gt_min_freq_mhz = 650 [MHz]
/sys/class/drm/card1/gt_max_freq_mhz = 1300 [MHz]
/sys/class/drm/card1/gt_boost_freq_mhz = 1300 [MHz]
/sys/class/drm/card1/gt_RPn_freq_mhz = 650 [MHz] (GPU min)
/sys/class/drm/card1/gt_RP0_freq_mhz = 1300 [MHz] (GPU max)
+++ Wireless
bluetooth = on
nfc = none (no device)
wifi = on
wwan = none (no device)
hci0(btusb) : bluetooth, connected
wlan(ath10k_pci) : wifi, connected, power management = off
+++ 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)
+++ PCIe Runtime Power Management
Enable devices = (disabled)
Disable devices = (disabled)
Device denylist = (disabled)
Driver denylist = mei_me nouveau radeon xhci_hcd
/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 = on (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 = on (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, ath10k_pci)
/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 allowlist = (not configured)
Device denylist = 04d9:a293 0d8c:1319 1d6b:0002 1d6b:0003 1d6b:0002 1d6b:0002
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled
Bus 001 Device 001 ID 1d6b:0002 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 001 Device 003 ID 04d9:a293 control = on, autosuspend_delay_ms = 2000 -- Holtek Semiconductor, Inc. OBINS (usbhid)
Bus 001 Device 004 ID 0cf3:e300 control = auto, autosuspend_delay_ms = 2000 -- Qualcomm Atheros Communications QCA61x4 Bluetooth 4.0 (btusb)
Bus 002 Device 001 ID 1d6b:0002 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 002 ID 8087:0024 control = auto, autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching Hub (hub)
Bus 002 Device 003 ID 046d:c092 control = on, autosuspend_delay_ms = 2000 -- Logitech, Inc. G102/G203 LIGHTSYNC Gaming Mouse (usbhid)
Bus 002 Device 004 ID 04f2:b217 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) (uvcvideo)
Bus 003 Device 001 ID 1d6b:0002 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 004 Device 001 ID 1d6b:0003 control = on, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:
* natacpi (thinkpad_acpi) = active (charge thresholds, recalibration)
* tp-smapi (tp_smapi) = readonly (status)
Parameter value ranges:
* START_CHARGE_THRESH_BAT0/1: 0(off)..96(default)..99
* STOP_CHARGE_THRESH_BAT0/1: 1..100(default)
+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/devices/platform/smapi/BAT0/manufacturer = LGC
/sys/devices/platform/smapi/BAT0/model = 45N1029
/sys/devices/platform/smapi/BAT0/manufacture_date = 2017-07-21
/sys/devices/platform/smapi/BAT0/first_use_date = 2022-12-14
/sys/devices/platform/smapi/BAT0/cycle_count = 28
/sys/devices/platform/smapi/BAT0/temperature = 31 [°C]
/sys/devices/platform/smapi/BAT0/design_capacity = 93240 [mWh]
/sys/devices/platform/smapi/BAT0/last_full_capacity = 93230 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_capacity = 83050 [mWh]
/sys/devices/platform/smapi/BAT0/remaining_percent = 89 [%]
/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_control_start_threshold = 75 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 90 [%]
/sys/class/power_supply/BAT0/charge_behaviour = [auto] inhibit-charge force-discharge
Charge = 89.1 [%]
Capacity = 100.0 [%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment