Skip to content

Instantly share code, notes, and snippets.

@linrunner
Last active September 19, 2024 19:18
Show Gist options
  • Save linrunner/bd2158b3eded847fe00bff1277c9ca64 to your computer and use it in GitHub Desktop.
Save linrunner/bd2158b3eded847fe00bff1277c9ca64 to your computer and use it in GitHub Desktop.
--- TLP 1.7.0-beta.2.pre --------------------------------------------
+++ 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/20-disk.conf L0001: DISK_DEVICES="nvme0n1 sda"
/etc/tlp.d/20-disk.conf L0003: DISK_APM_LEVEL_ON_AC="128 128"
/etc/tlp.d/20-disk.conf L0004: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0020: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0021: DISK_IOSCHED="keep keep"
defaults.conf L0022: SATA_LINKPWR_ON_AC="med_power_with_dipm"
defaults.conf L0023: SATA_LINKPWR_ON_BAT="med_power_with_dipm"
/etc/tlp.d/20-disk.conf L0008: AHCI_RUNTIME_PM_ON_AC="auto"
/etc/tlp.d/20-disk.conf L0009: 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"
defaults.conf L0054: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0055: NATACPI_ENABLE="1"
defaults.conf L0056: TPSMAPI_ENABLE="1"
/etc/tlp.d/50-battery.conf L0001: START_CHARGE_THRESH_BAT0="75"
/etc/tlp.d/50-battery.conf L0002: STOP_CHARGE_THRESH_BAT0="80"
/etc/tlp.d/50-usb.conf L0007: USB_DENYLIST="067b:2303 054c:0184 1a86:7523 0403:6001 0416:5011"
+++ System Info
System = LENOVO ThinkPad T14 Gen 4 21K4S02000
BIOS = R2FET57W (1.37 )
EC Firmware = 1.30
OS Release = Arch Linux
Kernel = 6.10.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 15 Aug 2024 00:25:30 +0000 x86_64
/proc/cmdline = BOOT_IMAGE=/vmlinuz-linux root=UUID=860c337b-43b5-49e4-90f9-a44b10519e2d rw splash cryptdevice=PARTUUID=9b1396ba-8ad9-4950-ad62-c67ea18a1898:root:allow-discards
Init system = systemd
Boot mode = UEFI
Suspend mode = [s2idle]
+++ TLP Status
State = enabled
RDW state = not installed
Last run = 20:20:15, 16 sec(s) ago
Mode = AC
Power source = AC
+++ Processor
CPU model = AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = amd-pstate-epp
/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 = 5132000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq = 400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq = 5132000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference = balance_performance [EPP]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu1..cpu15: omitted for clarity, use -v to show all
/sys/devices/system/cpu/amd_pstate/status = active
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ Platform Profile
/sys/firmware/acpi/platform_profile = balanced
/sys/firmware/acpi/platform_profile_choices = low-power balanced performance
/sys/devices/platform/thinkpad_acpi/dytc_lapmode = 0
+++ Temperatures
/proc/acpi/ibm/thermal = 39 -128 39 0 -128 39 39 -128 [°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 = 20
/proc/sys/vm/dirty_background_ratio = 10
+++ Disks
Devices = nvme0n1 sda
/dev/nvme0n1:
Type = NVMe
Disk ID = nvme-SAMSUNG_MZVL21T0HDLU-00BLL_**************
Model = SAMSUNG MZVL21T0HDLU-00BLL
Firmware = 6L2QGXD7
Temp = 34 °C
Scheduler = [none] mq-deadline kyber bfq (multi queue)
Runtime PM:
/sys/block/nvme0n1/device/power/control = auto, autosuspend_delay_ms = (not available)
SMART info:
Critical Warning: 0x00
Temperature: 34 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Written: 3.854.638 [1,97 TB]
Power Cycles: 405
Power On Hours: 108
Unsafe Shutdowns: 23
Media and Data Integrity Errors: 0
/dev/sda: not present.
+++ AMD Radeon Graphics
/sys/class/drm/card1/device/driver = amdgpu
/sys/class/drm/card1/device/power_dpm_force_performance_level = auto
/sys/class/drm/card1/card1-eDP-1/amdgpu/panel_power_savings = 0
+++ Wireless
bluetooth = off (software)
nfc = on
wifi = on
wwan = none (no device)
wlp2s0(ath11k_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
+++ 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:00.2/power/control = on (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.2/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.4/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:03.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:04.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:04.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.3/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = on (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = on (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = on (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = on (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = on (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:02:00.0/power/control = on (0x028000, Network controller, ath11k_pci)
/sys/bus/pci/devices/0000:03:00.0/power/control = on (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:64:00.0/power/control = on (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:64:00.1/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:64:00.2/power/control = on (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:64:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:64:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:64:00.5/power/control = on (0x048000, Multimedia controller, snd_pci_ps)
/sys/bus/pci/devices/0000:64:00.6/power/control = on (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:65:00.0/power/control = on (0x130000, Non-Essential Instrumentation [1300], no driver)
/sys/bus/pci/devices/0000:65:00.1/power/control = on (0x118000, Signal processing controller, no driver)
/sys/bus/pci/devices/0000:66:00.0/power/control = on (0x130000, Non-Essential Instrumentation [1300], no driver)
/sys/bus/pci/devices/0000:66:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:66:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:66:00.6/power/control = on (0x0c0340, USB controller, thunderbolt)
+++ USB
Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = 067b:2303 054c:0184 1a86:7523 0403:6001 0416:5011
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 27c6:6594 control = auto, autosuspend_delay_ms = 2000 -- Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC (no driver)
Bus 001 Device 003 ID 05e3:0610 control = auto, autosuspend_delay_ms = 0 -- Genesys Logic, Inc. Hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 002 ID 04f2:b7c0 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 005 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 006 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 007 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 008 Device 001 ID 1d6b:0003 control = auto, 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)
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/class/power_supply/BAT0/manufacturer = Sunwoda
/sys/class/power_supply/BAT0/model_name = 5B10W51867
/sys/class/power_supply/BAT0/cycle_count = 7
/sys/class/power_supply/BAT0/energy_full_design = 52500 [mWh]
/sys/class/power_supply/BAT0/energy_full = 53030 [mWh]
/sys/class/power_supply/BAT0/energy_now = 53030 [mWh]
/sys/class/power_supply/BAT0/power_now = 0 [mW]
/sys/class/power_supply/BAT0/status = Full
/sys/class/power_supply/BAT0/charge_control_start_threshold = 75 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 80 [%]
/sys/class/power_supply/BAT0/charge_behaviour = [auto] inhibit-charge force-discharge
Charge = 100.0 [%]
Capacity = 101.0 [%]
+++ Recommendations
* BAT0 charge level is above the stop threshold. Use your laptop on battery power until the battery is discharged to the stop threshold.
* Install ethtool to disable Wake-on-LAN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment