Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tlp 1.4.0-1] USB ports don't work on battery #587

Closed
tomizius opened this issue Oct 5, 2021 · 39 comments
Closed

[tlp 1.4.0-1] USB ports don't work on battery #587

tomizius opened this issue Oct 5, 2021 · 39 comments

Comments

@tomizius
Copy link

tomizius commented Oct 5, 2021

[x] I've read and accepted the Bug Reporting Howto
[x] I've attached all required tlp-stat outputs via Gist (see below)

Describe the bug

After the update this morning from version tlp 1.3.1 to tlp 1.4.0 the usb ports don't work as expected.
With version 1.3.1 I never had any prolembs with my usb ports. With version 1.4.0 the usb ports works, if I have the power supplier plugged to my device. If I remove the power supplier, the usb ports stop working after few seconds.

I just replaced tlp version 1.4.0 with version 1.3.1 out of my pacman cache and everything works as expected again.

This problem is also at an other device by a fellow student.

Expected behavior

Fix, that the usb ports are also working in battery mode.

To Reproduce

Steps to reproduce the unexpected behavior:

  1. Does the problem occur on battery or AC or both?
    only on battery mode
  2. Actions to reproduce the behaviour
    Use tlp version 1.4.0 with a Lenovo notebook and try to use usb.
  3. Shell commands entered and their output
    none - but if you need some, I can do it
  4. Full output of tlp-stat via https://gist.github.com/ for all
    matching cases of 1.

    --- TLP 1.4.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_WARN_LEVEL="3"
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0008: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0010: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0012: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0013: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0014: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0051: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0052: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0053: NATACPI_ENABLE="1"
defaults.conf L0054: TPACPI_ENABLE="1"
defaults.conf L0055: TPSMAPI_ENABLE="1"

+++ System Info
System = LENOVO ThinkPad E595 20NF0006GE
BIOS = R11ET39W (1.19 )
OS Release = Arch Linux
Kernel = 5.14.8-arch1-1 #1 SMP PREEMPT Sun, 26 Sep 2021 19:36:15 +0000 x86_64
/proc/cmdline = initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:main root=/dev/mapper/main-home rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
Init system = systemd
Boot mode = UEFI

+++ TLP Status
State = enabled
RDW state = not installed
Last run = 12:47:41, 725 sec(s) ago
Mode = battery
Power source = battery

Warning: systemd-rfkill.service is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.service' to correct this.

Warning: systemd-rfkill.socket is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.socket' to correct this.

+++ Processor
CPU model = AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1..cpu7: omitted for clarity, use -v to show all

/sys/devices/system/cpu/cpufreq/boost = 1

/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
/proc/acpi/ibm/thermal = 46 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 = 20
/proc/sys/vm/dirty_background_ratio = 10

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1:
Type = NVMe
Disk ID = nvme-HFM256GDHTNG-8510B_CS9CN63691110CI4M
Model = HFM256GDHTNG-8510B
Firmware = 80020C00
Temp = 27 °C
Scheduler = [none] mq-deadline kyber bfq (multi queue)

Runtime PM:
/sys/block/nvme0n1/power/control = auto, autosuspend_delay_ms = (not available)

SMART info:
Critical Warning: 0x00
Temperature: 27 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Written: 4.480.226 [2,29 TB]
Power Cycles: 1.557
Power On Hours: 126
Unsafe Shutdowns: 48
Media and Data Integrity Errors: 0

/dev/sda:
Type = SATA
Disk ID = ata-CT250MX500SSD1_2030E2BA8AF9
Model = CT250MX500SSD1
Firmware = M3CR023
APM Level = 128
Status = active/idle
TRIM = supported
Host = ../devices/pci0000:00/0000:00:08.2/0000:06:00.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
Scheduler = [mq-deadline] kyber bfq none (multi queue)

Runtime PM:
/sys/block/sda/power/control = on, autosuspend_delay_ms = -1

SMART info:
9 Power_On_Hours = 1119 [h]
12 Power_Cycle_Count = 844
194 Temperature_Celsius = 28 (Min/Max 0/51) [°C]
246 Total_LBAs_Written = 2.028 [TB]

+++ AHCI Link Power Management (ALPM) :: SATA Links
/sys/bus/pci/devices/0000:06:00.0/ata1/host0/scsi_host/host0/link_power_management_policy = med_power_with_dipm -- sda

+++ AHCI Port Runtime Power Management :: SATA/ATA Ports
/sys/bus/pci/devices/0000:06:00.0/ata1/power/control = on -- sda

+++ AMD Radeon Graphics
/sys/class/drm/card0/device/driver = amdgpu

/sys/class/drm/card0/device/power_dpm_force_performance_level = auto

+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp4s0(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)

+++ PCIe Runtime Power Management
Enable devices = (disabled)
Disable devices = (disabled)
Device denylist = (disabled)
Driver denylist = mei_me nouveau radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = on (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = auto (0x010601, SATA controller, ahci)

+++ USB
Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = (not configured)
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 04f2:b6d9 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 002 ID 8087:0029 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX200 Bluetooth (btusb)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:

  • natacpi (thinkpad_acpi) = active (charge thresholds)
  • tpacpi-bat (acpi_call) = active (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 = Celxpert
/sys/class/power_supply/BAT0/model_name = 5B10W138
/sys/class/power_supply/BAT0/cycle_count = 155
/sys/class/power_supply/BAT0/energy_full_design = 45730 [mWh]
/sys/class/power_supply/BAT0/energy_full = 40640 [mWh]
/sys/class/power_supply/BAT0/energy_now = 26750 [mWh]
/sys/class/power_supply/BAT0/power_now = 9944 [mW]
/sys/class/power_supply/BAT0/status = Discharging

/sys/class/power_supply/BAT0/charge_control_start_threshold = 95 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 65.8 [%]
Capacity = 88.9 [%]

+++ Recommendations

  • Install ethtool to disable Wake On LAN (WOL)
@linrunner
Copy link
Owner

linrunner commented Oct 5, 2021

Hi,

are you absolutely sure that this did not already occur with 1.3.1? I ask because this is a known issue (-> FAQ) on AMD ThinkPads since 1.2.

Before you try the solution from the FAQ, be so kind, install 1.3.1, reboot, show the full output of tlp-stat - and check for the symptom of course.

@tomizius

This comment has been minimized.

@linrunner
Copy link
Owner

Your output is on AC power, battery is needed for comparison with 1.4.0.

@tomizius
Copy link
Author

tomizius commented Oct 5, 2021

Sorry for that.

Here we go again:
--- TLP 1.3.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0012: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0013: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0014: NMI_WATCHDOG="0"
defaults.conf L0015: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0018: DISK_IOSCHED="keep keep"
defaults.conf L0019: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0020: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0021: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0022: PCIE_ASPM_ON_AC="default"
defaults.conf L0023: PCIE_ASPM_ON_BAT="default"
defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0025: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0027: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0028: WIFI_PWR_ON_AC="off"
defaults.conf L0029: WIFI_PWR_ON_BAT="on"
defaults.conf L0030: WOL_DISABLE="Y"
defaults.conf L0031: SOUND_POWER_SAVE_ON_AC="0"
defaults.conf L0032: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0033: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0034: BAY_POWEROFF_ON_AC="0"
defaults.conf L0035: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0036: BAY_DEVICE="sr0"
defaults.conf L0037: RUNTIME_PM_ON_AC="on"
defaults.conf L0038: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0039: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
defaults.conf L0040: USB_AUTOSUSPEND="1"
defaults.conf L0041: USB_BLACKLIST_BTUSB="0"
defaults.conf L0042: USB_BLACKLIST_PHONE="0"
defaults.conf L0043: USB_BLACKLIST_PRINTER="1"
defaults.conf L0044: USB_BLACKLIST_WWAN="0"
defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0046: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0048: NATACPI_ENABLE="1"
defaults.conf L0049: TPACPI_ENABLE="1"
defaults.conf L0050: TPSMAPI_ENABLE="1"

+++ System Info
System = LENOVO ThinkPad E595 20NF0006GE
BIOS = R11ET39W (1.19 )
Release = "Arch Linux"
Kernel = 5.14.9-arch2-1 #1 SMP PREEMPT Fri, 01 Oct 2021 19:03:20 +0000 x86_64
/proc/cmdline = initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:main root=/dev/mapper/main-home rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
Init system = systemd
Boot mode = UEFI

+++ TLP Status
State = enabled
RDW state = not installed
Last run = 17:19:53, 8 sec(s) ago
Mode = battery
Power source = battery

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 = AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu4/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu4/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu5/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu5/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu6/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu6/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu7/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu7/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpufreq/boost = 1

Intel EPB: unsupported CPU.

/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0

+++ Temperatures
/proc/acpi/ibm/thermal = 50 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 = 20
/proc/sys/vm/dirty_background_ratio = 10

+++ Storage Devices
Devices = nvme0n1 sda

/dev/nvme0n1:
Type = NVMe
Model = HFM256GDHTNG-8510B
Firmware = 80020C00
Scheduler = [none] mq-deadline kyber bfq (multi queue)

Runtime PM: control = auto, autosuspend_delay_ms = (not available)

SMART info:
Critical Warning: 0x00
Temperature: 41 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 1%
Data Units Written: 4.482.201 [2,29 TB]
Power Cycles: 1.560
Power On Hours: 126
Unsafe Shutdowns: 48
Media and Data Integrity Errors: 0

/dev/sda:
Type = ATA
Model = CT250MX500SSD1
Firmware = M3CR023
APM Level = 128
Status = active/idle
TRIM = supported
Scheduler = [mq-deadline] kyber bfq none (multi queue)

Runtime PM: control = on, autosuspend_delay_ms = -1

SMART info:
9 Power_On_Hours = 1120 [h]
12 Power_Cycle_Count = 847
194 Temperature_Celsius = 26 (Min/Max 0/51) [°C]
246 Total_LBAs_Written = 2.029 [TB]

+++ AHCI Link Power Management (ALPM)
/sys/class/scsi_host/host0/link_power_management_policy = med_power_with_dipm

+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:06:00.0/ata1/power/control = on

+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp4s0(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, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/power/control = on (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = on (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = auto (0x010601, SATA controller, ahci)

+++ USB
Autosuspend = enabled
Device whitelist = (not configured)
Device blacklist = (not configured)
Bluetooth blacklist = disabled
Phone blacklist = disabled
WWAN blacklist = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 04f2:b6d9 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 002 ID 8087:0029 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX200 Bluetooth (btusb)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root 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 (data, thresholds)
tpacpi-bat = active (recalibrate)
tp-smapi = inactive (ThinkPad not supported)

+++ ThinkPad Battery Status: BAT0 (Main / Internal)
/sys/class/power_supply/BAT0/manufacturer = Celxpert
/sys/class/power_supply/BAT0/model_name = 5B10W138
/sys/class/power_supply/BAT0/cycle_count = 155
/sys/class/power_supply/BAT0/energy_full_design = 45730 [mWh]
/sys/class/power_supply/BAT0/energy_full = 40640 [mWh]
/sys/class/power_supply/BAT0/energy_now = 23370 [mWh]
/sys/class/power_supply/BAT0/power_now = 12318 [mW]
/sys/class/power_supply/BAT0/status = Discharging

/sys/class/power_supply/BAT0/charge_start_threshold = 95 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 57.5 [%]
Capacity = 88.9 [%]

+++ Recommendations

  • Install ethtool to disable Wake On LAN (WOL)

@linrunner
Copy link
Owner

The runtime pm settings of the PCIe devices are identical. At the moment I am at a loss as to what the cause could be.

Please try the workaround from the FAQ with 1.4.0 now.

@linrunner
Copy link
Owner

linrunner commented Oct 7, 2021

Your thumbs-up means the workaround works, right?

I'm still wondering why this happens with 1.4.0 and not with 1.3.1. I hope you've got a little time for further analysis.

I diffed your tlp-stat outputs and found no relevant difference in runtime pm settings including the AHCI ones. The only thing that's new is pm for amdgpu:

+++ AMD Radeon Graphics
/sys/class/drm/card0/device/driver = amdgpu

/sys/class/drm/card0/device/power_dpm_force_performance_level = auto

So please test again with 1.4.0: remove the workaround from the configuration by commenting the RUNTIME_PM_DENYLIST line and instead disable amdgpu settings like this:

RADEON_DPM_PERF_LEVEL_ON_AC=
RADEON_DPM_PERF_LEVEL_ON_BAT=

Reboot and check.

ps. and show

sudo tlp-stat

again of course ...

@linrunner linrunner added the amd label Oct 7, 2021
@tomizius
Copy link
Author

tomizius commented Oct 7, 2021

To be honest, I did not tried it, because I had installed version 1.3.1 and had the new package banned in the pacman.conf.

So I just tried it for you a few seconds ago and here are the results:

version workaround USB workaround Radeon Graphics working
1.3.1 no no yes
1.4.0 yes no no
1.4.0 no yes no

Here we go with the output of tlp-stat:


Version 1.4.0 USB workaroung:
--- TLP 1.4.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_WARN_LEVEL="3"
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0008: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0010: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0012: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0013: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0014: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0051: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0052: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0053: NATACPI_ENABLE="1"
defaults.conf L0054: TPACPI_ENABLE="1"
defaults.conf L0055: TPSMAPI_ENABLE="1"
/etc/tlp.d/00-template.conf L0008: RUNTIME_PM_DENYLIST="05:00.3 05:00.4"

+++ System Info
System = LENOVO ThinkPad E595 20NF0006GE
BIOS = R11ET39W (1.19 )
OS Release = Arch Linux
Kernel = 5.14.9-arch2-1 #1 SMP PREEMPT Fri, 01 Oct 2021 19:03:20 +0000 x86_64
/proc/cmdline = initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:main root=/dev/mapper/main-home rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
Init system = systemd
Boot mode = UEFI

+++ TLP Status
State = enabled
RDW state = not installed
Last run = 11:17:10, 128 sec(s) ago
Mode = battery
Power source = battery

Warning: systemd-rfkill.service is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.service' to correct this.

Warning: systemd-rfkill.socket is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.socket' to correct this.

+++ Processor
CPU model = AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1..cpu7: omitted for clarity, use -v to show all

/sys/devices/system/cpu/cpufreq/boost = 1

/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
/proc/acpi/ibm/thermal = 51 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 = 20
/proc/sys/vm/dirty_background_ratio = 10

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1:
Type = NVMe
Disk ID = nvme-HFM256GDHTNG-8510B_CS9CN63691110CI4M
Model = HFM256GDHTNG-8510B
Firmware = 80020C00
Temp = 34 °C
Scheduler = [none] mq-deadline kyber bfq (multi queue)

Runtime PM:
/sys/block/nvme0n1/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: 2%
Data Units Written: 4.497.642 [2,30 TB]
Power Cycles: 1.563
Power On Hours: 126
Unsafe Shutdowns: 48
Media and Data Integrity Errors: 0

/dev/sda:
Type = SATA
Disk ID = ata-CT250MX500SSD1_2030E2BA8AF9
Model = CT250MX500SSD1
Firmware = M3CR023
APM Level = 128
Status = active/idle
TRIM = supported
Host = ../devices/pci0000:00/0000:00:08.2/0000:06:00.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
Scheduler = [mq-deadline] kyber bfq none (multi queue)

Runtime PM:
/sys/block/sda/power/control = auto, autosuspend_delay_ms = 15000

SMART info:
9 Power_On_Hours = 1130 [h]
12 Power_Cycle_Count = 850
194 Temperature_Celsius = 28 (Min/Max 0/51) [°C]
246 Total_LBAs_Written = 2.060 [TB]

+++ AHCI Link Power Management (ALPM) :: SATA Links
/sys/bus/pci/devices/0000:06:00.0/ata1/host0/scsi_host/host0/link_power_management_policy = med_power_with_dipm -- sda

+++ AHCI Port Runtime Power Management :: SATA/ATA Ports
/sys/bus/pci/devices/0000:06:00.0/ata1/power/control = auto -- sda

+++ AMD Radeon Graphics
/sys/class/drm/card0/device/driver = amdgpu

/sys/class/drm/card0/device/power_dpm_force_performance_level = auto

+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp4s0(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)

+++ PCIe Runtime Power Management
Enable devices = (disabled)
Disable devices = (disabled)
Device denylist = 05:00.3 05:00.4
Driver denylist = mei_me nouveau radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = auto (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = auto (0x010601, SATA controller, ahci)

+++ USB
Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = (not configured)
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 04f2:b6d9 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 002 ID 8087:0029 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX200 Bluetooth (btusb)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 1532:0037 control = on, autosuspend_delay_ms = 2000 -- Razer USA, Ltd DeathAdder 2013 (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:

  • natacpi (thinkpad_acpi) = active (charge thresholds)
  • tpacpi-bat (acpi_call) = active (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 = Celxpert
/sys/class/power_supply/BAT0/model_name = 5B10W138
/sys/class/power_supply/BAT0/cycle_count = 157
/sys/class/power_supply/BAT0/energy_full_design = 45730 [mWh]
/sys/class/power_supply/BAT0/energy_full = 38810 [mWh]
/sys/class/power_supply/BAT0/energy_now = 35620 [mWh]
/sys/class/power_supply/BAT0/power_now = 9165 [mW]
/sys/class/power_supply/BAT0/status = Discharging

/sys/class/power_supply/BAT0/charge_control_start_threshold = 95 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 91.8 [%]
Capacity = 84.9 [%]

+++ Recommendations

  • Install ethtool to disable Wake On LAN (WOL)

Version 1.4.0 Graphics Workaroung:
--- TLP 1.4.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_WARN_LEVEL="3"
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0008: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0010: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0012: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0013: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0014: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
/etc/tlp.d/00-template.conf L0010: RADEON_DPM_PERF_LEVEL_ON_AC=""
/etc/tlp.d/00-template.conf L0011: RADEON_DPM_PERF_LEVEL_ON_BAT=""
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0051: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0052: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0053: NATACPI_ENABLE="1"
defaults.conf L0054: TPACPI_ENABLE="1"
defaults.conf L0055: TPSMAPI_ENABLE="1"

+++ System Info
System = LENOVO ThinkPad E595 20NF0006GE
BIOS = R11ET39W (1.19 )
OS Release = Arch Linux
Kernel = 5.14.9-arch2-1 #1 SMP PREEMPT Fri, 01 Oct 2021 19:03:20 +0000 x86_64
/proc/cmdline = initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:main root=/dev/mapper/main-home rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
Init system = systemd
Boot mode = UEFI

+++ TLP Status
State = enabled
RDW state = not installed
Last run = 11:23:29, 49 sec(s) ago
Mode = battery
Power source = battery

Warning: systemd-rfkill.service is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.service' to correct this.

Warning: systemd-rfkill.socket is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.socket' to correct this.

+++ Processor
CPU model = AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1..cpu7: omitted for clarity, use -v to show all

/sys/devices/system/cpu/cpufreq/boost = 1

/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
/proc/acpi/ibm/thermal = 48 0 0 0 0 0 0 0 [°C]
/proc/acpi/ibm/fan = 3300 [/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 = 20
/proc/sys/vm/dirty_background_ratio = 10

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1:
Type = NVMe
Disk ID = nvme-HFM256GDHTNG-8510B_CS9CN63691110CI4M
Model = HFM256GDHTNG-8510B
Firmware = 80020C00
Temp = 37 °C
Scheduler = [none] mq-deadline kyber bfq (multi queue)

Runtime PM:
/sys/block/nvme0n1/power/control = auto, autosuspend_delay_ms = (not available)

SMART info:
Critical Warning: 0x00
Temperature: 37 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 2%
Data Units Written: 4.497.852 [2,30 TB]
Power Cycles: 1.563
Power On Hours: 126
Unsafe Shutdowns: 48
Media and Data Integrity Errors: 0

/dev/sda:
Type = SATA
Disk ID = ata-CT250MX500SSD1_2030E2BA8AF9
Model = CT250MX500SSD1
Firmware = M3CR023
APM Level = 128
Status = active/idle
TRIM = supported
Host = ../devices/pci0000:00/0000:00:08.2/0000:06:00.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
Scheduler = [mq-deadline] kyber bfq none (multi queue)

Runtime PM:
/sys/block/sda/power/control = auto, autosuspend_delay_ms = 15000

SMART info:
9 Power_On_Hours = 1130 [h]
12 Power_Cycle_Count = 850
194 Temperature_Celsius = 31 (Min/Max 0/51) [°C]
246 Total_LBAs_Written = 2.060 [TB]

+++ AHCI Link Power Management (ALPM) :: SATA Links
/sys/bus/pci/devices/0000:06:00.0/ata1/host0/scsi_host/host0/link_power_management_policy = med_power_with_dipm -- sda

+++ AHCI Port Runtime Power Management :: SATA/ATA Ports
/sys/bus/pci/devices/0000:06:00.0/ata1/power/control = auto -- sda

+++ AMD Radeon Graphics
/sys/class/drm/card0/device/driver = amdgpu

/sys/class/drm/card0/device/power_dpm_force_performance_level = auto

+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp4s0(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)

+++ PCIe Runtime Power Management
Enable devices = (disabled)
Disable devices = (disabled)
Device denylist = (disabled)
Driver denylist = mei_me nouveau radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = auto (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = auto (0x010601, SATA controller, ahci)

+++ USB
Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = (not configured)
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 04f2:b6d9 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 002 ID 8087:0029 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX200 Bluetooth (btusb)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 1532:0037 control = on, autosuspend_delay_ms = 2000 -- Razer USA, Ltd DeathAdder 2013 (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:

  • natacpi (thinkpad_acpi) = active (charge thresholds)
  • tpacpi-bat (acpi_call) = active (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 = Celxpert
/sys/class/power_supply/BAT0/model_name = 5B10W138
/sys/class/power_supply/BAT0/cycle_count = 157
/sys/class/power_supply/BAT0/energy_full_design = 45730 [mWh]
/sys/class/power_supply/BAT0/energy_full = 38810 [mWh]
/sys/class/power_supply/BAT0/energy_now = 34570 [mWh]
/sys/class/power_supply/BAT0/power_now = 12426 [mW]
/sys/class/power_supply/BAT0/status = Discharging

/sys/class/power_supply/BAT0/charge_control_start_threshold = 95 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 89.1 [%]
Capacity = 84.9 [%]

+++ Recommendations

  • Install ethtool to disable Wake On LAN (WOL)

I hope I could help you

@linrunner
Copy link
Owner

Well ... let me think about that. Stay tuned please.

@linrunner
Copy link
Owner

You rebooted for every test, right?

@tomizius
Copy link
Author

tomizius commented Oct 7, 2021

Yes, I did reboot every single time :)

@linrunner
Copy link
Owner

Next try with 1.4.0: please edit /usr/sbin/tlp function apply_common_settings(), moving line 20

     set_runtime_pm $1

after line 45

    set_sound_power_mode $1 

Reboot.

@tomizius
Copy link
Author

tomizius commented Oct 7, 2021

Sorry, but I don't get you.
Both is set at this file.
set_runtimer_pm $1is in the code at line 34 and set_sound_power_mode $1is at line 45 in my file.
What do you want, should I remove them?
Or move the postition in the bash code?

@linrunner
Copy link
Owner

linrunner commented Oct 7, 2021

Move line 34 after line 45.

@tomizius
Copy link
Author

tomizius commented Oct 7, 2021

I did, but unfortunately it doesn't help. My function with version 1.4.0 looks like this after editing:

apply_common_settings () { # apply settings common to all modes
                           # $1: 0=ac mode, 1=battery mode
    set_laptopmode $1
    set_dirty_parms $1
    set_platform_profile $1
    set_cpu_scaling_governor $1
    set_cpu_scaling_min_max_freq $1
    set_intel_cpu_perf_policy $1
    set_intel_cpu_perf_pct $1
    set_cpu_boost_all $1
    set_intel_cpu_hwp_dyn_boost $1
    set_sched_powersave $1
    set_nmi_watchdog
    set_ahci_port_runtime_pm $1
    set_ahci_disk_runtime_pm $1
    set_sata_link_power $1
    set_disk_apm_level $1
    set_disk_spindown_timeout $1
    set_disk_iosched
    set_pcie_aspm $1
    set_intel_gpu_min_max_boost_freq $1
    set_amdgpu_profile $1
    set_wifi_power_mode $1
    disable_wake_on_lan
    set_sound_power_mode $1
    set_runtime_pm $1
    
    return 0
}

@linrunner
Copy link
Owner

OK. Lets try to disable PCIe runtime pm completely:

RUNTIME_PM_ON_AC=
RUNTIME_PM_ON_BAT=

Reboot :)

@tomizius
Copy link
Author

Hello, unfortunately I only had time now, to try it out. But I have really good news! It's working with your last workaround.

--- TLP 1.4.0 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_WARN_LEVEL="3"
defaults.conf L0006: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0008: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0010: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0012: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0013: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0014: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
/etc/tlp.d/00-template.conf L0006: RUNTIME_PM_ON_AC=""
/etc/tlp.d/00-template.conf L0007: RUNTIME_PM_ON_BAT=""
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0051: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0052: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0053: NATACPI_ENABLE="1"
defaults.conf L0054: TPACPI_ENABLE="1"
defaults.conf L0055: TPSMAPI_ENABLE="1"

+++ System Info
System = LENOVO ThinkPad E595 20NF0006GE
BIOS = R11ET39W (1.19 )
OS Release = Arch Linux
Kernel = 5.14.11-arch1-1 #1 SMP PREEMPT Sun, 10 Oct 2021 00:48:26 +0000 x86_64
/proc/cmdline = initrd=\initramfs-linux.img cryptdevice=/dev/nvme0n1p2:main root=/dev/mapper/main-home rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8
Init system = systemd
Boot mode = UEFI

+++ TLP Status
State = enabled
RDW state = not installed
Last run = 12:52:30, 37 sec(s) ago
Mode = battery
Power source = battery

Warning: systemd-rfkill.service is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.service' to correct this.

Warning: systemd-rfkill.socket is not masked, radio device switching may not work as configured.

Invoke 'systemctl mask systemd-rfkill.socket' to correct this.

+++ Processor
CPU model = AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2100000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2100000 1700000 1400000 [kHz]

/sys/devices/system/cpu/cpu1..cpu7: omitted for clarity, use -v to show all

/sys/devices/system/cpu/cpufreq/boost = 1

/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
/proc/acpi/ibm/thermal = 56 0 0 0 0 0 0 0 [°C]
/proc/acpi/ibm/fan = 3300 [/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 = 20
/proc/sys/vm/dirty_background_ratio = 10

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1:
Type = NVMe
Disk ID = nvme-HFM256GDHTNG-8510B_CS9CN63691110CI4M
Model = HFM256GDHTNG-8510B
Firmware = 80020C00
Temp = 36 °C
Scheduler = [none] mq-deadline kyber bfq (multi queue)

Runtime PM:
/sys/block/nvme0n1/power/control = auto, autosuspend_delay_ms = (not available)

SMART info:
Critical Warning: 0x00
Temperature: 36 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 2%
Data Units Written: 4.531.013 [2,31 TB]
Power Cycles: 1.574
Power On Hours: 128
Unsafe Shutdowns: 50
Media and Data Integrity Errors: 0

/dev/sda:
Type = SATA
Disk ID = ata-CT250MX500SSD1_2030E2BA8AF9
Model = CT250MX500SSD1
Firmware = M3CR023
APM Level = 128
Status = active/idle
TRIM = supported
Host = ../devices/pci0000:00/0000:00:08.2/0000:06:00.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
Scheduler = [mq-deadline] kyber bfq none (multi queue)

Runtime PM:
/sys/block/sda/power/control = auto, autosuspend_delay_ms = 15000

SMART info:
9 Power_On_Hours = 1149 [h]
12 Power_Cycle_Count = 861
194 Temperature_Celsius = 31 (Min/Max 0/51) [°C]
246 Total_LBAs_Written = 2.062 [TB]

+++ AHCI Link Power Management (ALPM) :: SATA Links
/sys/bus/pci/devices/0000:06:00.0/ata1/host0/scsi_host/host0/link_power_management_policy = med_power_with_dipm -- sda

+++ AHCI Port Runtime Power Management :: SATA/ATA Ports
/sys/bus/pci/devices/0000:06:00.0/ata1/power/control = auto -- sda

+++ AMD Radeon Graphics
/sys/class/drm/card0/device/driver = amdgpu

/sys/class/drm/card0/device/power_dpm_force_performance_level = auto

+++ Wireless
bluetooth = off (software)
wifi = on
wwan = none (no device)

hci0(btusb) : bluetooth, not connected
wlp4s0(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)

+++ PCIe Runtime Power Management
Enable devices = (disabled)
Disable devices = (disabled)
Device denylist = (disabled)
Driver denylist = mei_me nouveau radeon

/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:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/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 = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (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 (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = on (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = on (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = on (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = on (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = on (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = on (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = on (0x010601, SATA controller, ahci)

+++ USB
Autosuspend = enabled
Device allowlist = (not configured)
Device denylist = (not configured)
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled

Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 003 Device 003 ID 04f2:b6d9 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 003 Device 002 ID 8087:0029 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX200 Bluetooth (btusb)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 002 ID 1532:0037 control = on, autosuspend_delay_ms = 2000 -- Razer USA, Ltd DeathAdder 2013 (usbhid)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Care
Plugin: thinkpad
Supported features: charge thresholds, recalibration
Driver usage:

  • natacpi (thinkpad_acpi) = active (charge thresholds)
  • tpacpi-bat (acpi_call) = active (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 = Celxpert
/sys/class/power_supply/BAT0/model_name = 5B10W138
/sys/class/power_supply/BAT0/cycle_count = 158
/sys/class/power_supply/BAT0/energy_full_design = 45730 [mWh]
/sys/class/power_supply/BAT0/energy_full = 39750 [mWh]
/sys/class/power_supply/BAT0/energy_now = 34730 [mWh]
/sys/class/power_supply/BAT0/power_now = 15049 [mW]
/sys/class/power_supply/BAT0/status = Discharging

/sys/class/power_supply/BAT0/charge_control_start_threshold = 95 [%]
/sys/class/power_supply/BAT0/charge_control_end_threshold = 100 [%]
tpacpi-bat.BAT0.forceDischarge = 0

Charge = 87.4 [%]
Capacity = 86.9 [%]

+++ Recommendations

  • Install ethtool to disable Wake On LAN (WOL)

@linrunner
Copy link
Owner

Good. It would be great if you could narrow down which driver or device is to blame. To do this you need to re-enable runtime pm and then denylist individual devices or drivers step by step --> see the Troubleshooting Guide.

@tomizius
Copy link
Author

Hello, I'm sorry it took three days to get in touch, but it took me some time to troubleshoot.

I just found the evil driver, it's the ahci driver. If I running following configuration, all usb devices are working:

--- TLP 1.4.0 --------------------------------------------

+++ 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 ahci

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.6/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:01:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x020000, Ethernet controller, r8169)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x028000, Network controller, iwlwifi)
/sys/bus/pci/devices/0000:05:00.0/power/control = auto (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:05:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:05:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:05:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:05:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_acp3x)
/sys/bus/pci/devices/0000:05:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:06:00.0/power/control = on (0x010601, SATA controller, ahci)

Please let me know if I can help you by fixing the driver or something else :)

@linrunner
Copy link
Owner

Great. I'll update the FAQ with your denylist workaround.

To get the driver fixed you may file a kernel bug.

@tomizius
Copy link
Author

All right, thank you!

There is one other problem which occurs since version 1.4.0 and not with 1.3.1.
If my notebook goes in suspend to RAM I need a hard reset with 1.4.0, it doesn't come back by itself.

Should I open for that another issue? Or is that simply irrelevant for you?

@linrunner
Copy link
Owner

linrunner commented Nov 5, 2021

There is one other problem which occurs since version 1.4.0 and not with 1.3.1. If my notebook goes in suspend to RAM I need a hard reset with 1.4.0, it doesn't come back by itself.
Should I open for that another issue? Or is that simply irrelevant for you?

Similar issue and workaround is here: #593

@linrunner
Copy link
Owner

Because the ahci driver already causes trouble and you excluded it from runtime pm I'd try to disable ahci runtime pm as well with:

AHCI_RUNTIME_PM_ON_AC=
AHCI_RUNTIME_PM_ON_BAT=

@Slater91
Copy link

I can confirm that this is an issue on my laptop as well (HP EliteBook 745 G5 with a Ryzen 5 2500U). I was thinking that the issue was with the hardware as it was present with older, known-working kernels as well as the latest ones! Interestingly enough, the problem kept on being there even when disabling the TLP service.
The proposed fixes do indeed work.

@linrunner
Copy link
Owner

linrunner commented Dec 8, 2021

@tomizius : so how do you want to proceed? Close?

@sleeyax
Copy link

sleeyax commented Dec 8, 2021

@tomizius : so how do you want to proceed? Close?

What's the actual fix to this though? I have the exact same issue with 0 additional configuration and by reading this thread I'm still not sure what the solution is.

@Slater91
Copy link

Slater91 commented Dec 8, 2021

@tomizius : so how do you want to proceed? Close?

What's the actual fix to this though? I have the exact same issue with 0 additional configuration and by reading this thread I'm still not sure what the solution is.

The solution is this:
AHCI_RUNTIME_PM_ON_AC= AHCI_RUNTIME_PM_ON_BAT=
Just remove anything after those two values and things should start working again.

As this issue was not present on versions before 1.4, though, I would personally say that digging a bit deeper into the causes and actually fixing the problem would be ideal, also because people who are going to install TLP on their systems might not see this bug report (I have had to point at least two people to this in the past week alone).

@linrunner
Copy link
Owner

@Slater91 : the bottom line is: TLP exposes a kernel issue in the ahci driver. If you want to address it, open a kernel bug.

In TLP, I could only disable the feature by default, as was the case until 1.3. But then there is no benefit, because the majority of users runs the default configuration.

@tomizius
Copy link
Author

tomizius commented Dec 9, 2021

I understand the procedure of linrunner, that you wont disable the feature by default.
For me it's also fine, if you close this issue, because there is a workaround. Unfortunately I had no time to open a kernel bug, but I hope I find the time during around the Christmas holidays.

@sleeyax right now I'm just running Version 1.3.1 because it's easier for me to disable the update, then exclude all buggy kernel drivers

@linrunner
Copy link
Owner

There is one other problem which occurs since version 1.4.0 and not with 1.3.1. If my notebook goes in suspend to RAM I need a hard reset with 1.4.0, it doesn't come back by itself.

Workaround added to the FAQ.

@linrunner linrunner added ahci pm and removed expired labels Dec 15, 2021
@linrunner
Copy link
Owner

@tomizius are there news from the kernel front?

@liberodark
Copy link

Same for me on my side have revert to 1.3.1

@linrunner
Copy link
Owner

@liberodark : Stating only "same for me" is just a waste of attention and bandwidth.

Where is your tlp-stat output?

Did you try both workarounds from the FAQ:

  1. https://linrunner.de/tlp/faq/usb.html#newly-inserted-usb-devices-not-recognized-in-battery-mode
  2. https://linrunner.de/tlp/faq/operation.html#system-freezes-on-wakeup-from-suspend-on-battery

and what was the result?

@linrunner
Copy link
Owner

Since there is no further feedback, I consider this issue to be solved either with the workaround or with the resulting change (56bb6ce).

@linrunner
Copy link
Owner

Hi @ALL : TLP 1.6 Beta 1 is out and contains a fix for this issue -> #700

@linrunner linrunner changed the title [tlp 1.4.0-1] USB ports don't work after update [tlp 1.4.0-1] USB ports don't work on battery Aug 14, 2023
linrunner added a commit that referenced this issue Feb 20, 2024
Rationale: users report that USB devices are not recognized or do not
work in battery mode.

Workaround: exclude USB3 controllers from runtime pm. Additional power
consumption on unaffected laptops should be negligible.

References:
* https://linrunner.de/tlp/faq/usb.html#faq-usb-not-working-on-battery
* #436
* #587
@linrunner
Copy link
Owner

linrunner commented Sep 5, 2024

Hi @ALL : TLP 1.7 Beta 2 is out and contains another fix for this issue -> #760

@Slater91
Copy link

Unfortunately it seems like version 1.7 re-introduces the problem, despite the fix and the workarounds. Version 1.6.1, which I was using, worked without a hitch; version 1.7 appears to not work and I have to manually reset the USB subsystem every single time the computer goes on battery power. Disabling TLP makes things work as expected just to be clear.

Please find my tlp-stat output here:
tlp-stat.txt

@linrunner
Copy link
Owner

linrunner commented Oct 25, 2024

@Slater91 Why do you show the output for AC if the problem occurs in BAT mode? I would also like to have the output for 1.6.1. Your configuration for 1.6.1 was identical?

@Slater91
Copy link

Because I had no idea the output would be different. I don't know the ins and outs of TLP, so please tone it down. Here is the output while on battery:
tlp-stat.txt
You may notice that I disabled USB autosuspend entirely in the meantime, unfortunately to no avail.

The configuration was identical. I'm not sure where to get version 1.6.1 as apt only reports 1.7.0 as available.

@linrunner
Copy link
Owner

linrunner commented Oct 25, 2024

@Slater91

so please tone it down.

The question was meant as a suggestion to think along, nothing more.

You may notice that I disabled USB autosuspend entirely in the meantime, unfortunately to no avail.

I need to compare the result of 1.7 and 1.6.1. Please show the 1.6.1 tlp-stat output with identical settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants