0

I have a Lenovo Thinkpad X1 Extreme Gen 2 laptop. Intel CPU.

Fedora 33 KDE.

I have installed Powertop2Tuned and Tuned and thermald. When Tuned is active and using the powertop profile, the computer will not enter sleep. It attempts to sleep, then the screen goes off for 1 second, then it wakes up again.

journlctl:

okt. 13 13:56:43 x1.laptop kernel: Restarting tasks ... 
okt. 13 13:56:43 x1.laptop kernel: OOM killer enabled.
okt. 13 13:56:43 x1.laptop kernel: acpi LNXPOWER:04: Turning OFF
okt. 13 13:56:43 x1.laptop kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
okt. 13 13:56:43 x1.laptop kernel: acpi LNXPOWER:05: Turning OFF
okt. 13 13:56:43 x1.laptop kernel: acpi LNXPOWER:06: Turning OFF
okt. 13 13:56:43 x1.laptop kernel: acpi LNXPOWER:0b: Turning OFF
okt. 13 13:56:43 x1.laptop kernel: PM: resume devices took 0.876 seconds
okt. 13 13:56:43 x1.laptop kernel: usb 1-9: reset full-speed USB device number 3 using xhci_hcd
okt. 13 13:56:43 x1.laptop kernel: usb 1-8: reset high-speed USB device number 2 using xhci_hcd
okt. 13 13:56:43 x1.laptop kernel: ata5.00: Enabling discard_zeroes_data
okt. 13 13:56:43 x1.laptop kernel: ata5.00: configured for UDMA/133
okt. 13 13:56:43 x1.laptop kernel: ata5.00: supports DRM functions and may not be fully accessible
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd ef/10:09:00:00:00:a0 (SET FEATURES) succeeded
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
okt. 13 13:56:43 x1.laptop kernel: ata5.00: supports DRM functions and may not be fully accessible
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd ef/10:09:00:00:00:a0 (SET FEATURES) succeeded
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
okt. 13 13:56:43 x1.laptop kernel: ata5.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
okt. 13 13:56:43 x1.laptop kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
okt. 13 13:56:43 x1.laptop kernel: usb 1-11: reset full-speed USB device number 4 using xhci_hcd
okt. 13 13:56:43 x1.laptop kernel: nvme nvme0: 12/0/0 default/read/poll queues
okt. 13 13:56:43 x1.laptop kernel: nvme nvme0: Shutdown timeout set to 8 seconds
okt. 13 13:56:43 x1.laptop kernel: sd 4:0:0:0: [sda] Starting disk
okt. 13 13:56:43 x1.laptop kernel: i915 0000:00:02.0: [drm] [ENCODER:94:DDI A/PHY A] is disabled/in DSI mode with an ungated DDI clock, gate it
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: event unblocked
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: interrupt unblocked
okt. 13 13:56:43 x1.laptop kernel: ACPI: Waking up from system sleep state S3
okt. 13 13:56:43 x1.laptop kernel: CPU11 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 11 APIC 0xb
okt. 13 13:56:43 x1.laptop kernel: CPU10 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 10 APIC 0x9
okt. 13 13:56:43 x1.laptop kernel: CPU9 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 9 APIC 0x7
okt. 13 13:56:43 x1.laptop kernel: CPU8 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 8 APIC 0x5
okt. 13 13:56:43 x1.laptop kernel: CPU7 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 7 APIC 0x3
okt. 13 13:56:43 x1.laptop kernel: CPU6 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 6 APIC 0x1
okt. 13 13:56:43 x1.laptop kernel: CPU5 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 5 APIC 0xa
okt. 13 13:56:43 x1.laptop kernel: CPU4 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 4 APIC 0x8
okt. 13 13:56:43 x1.laptop kernel: CPU3 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
okt. 13 13:56:43 x1.laptop kernel: CPU2 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
okt. 13 13:56:43 x1.laptop kernel: CPU1 is up
okt. 13 13:56:43 x1.laptop kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
okt. 13 13:56:43 x1.laptop kernel: x86: Booting SMP configuration:
okt. 13 13:56:43 x1.laptop kernel: Enabling non-boot CPUs ...
okt. 13 13:56:43 x1.laptop kernel: PM: Restoring platform NVS memory
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: EC started
okt. 13 13:56:43 x1.laptop kernel: ACPI: Low-level resume complete
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 11 is now offline
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 10 is now offline
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 9 is now offline
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 8 is now offline
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 7 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 174: no longer affine to CPU7
okt. 13 13:56:43 x1.laptop kernel: IRQ 133: no longer affine to CPU7
okt. 13 13:56:43 x1.laptop kernel: IRQ 129: no longer affine to CPU7
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 6 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 173: no longer affine to CPU6
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 5 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 175: no longer affine to CPU5
okt. 13 13:56:43 x1.laptop kernel: IRQ 132: no longer affine to CPU5
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 4 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 179: no longer affine to CPU4
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 3 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 177: no longer affine to CPU3
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 2 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 170: no longer affine to CPU2
okt. 13 13:56:43 x1.laptop kernel: smpboot: CPU 1 is now offline
okt. 13 13:56:43 x1.laptop kernel: IRQ 169: no longer affine to CPU1
okt. 13 13:56:43 x1.laptop kernel: irq_migrate_all_off_this_cpu: 14 callbacks suppressed
okt. 13 13:56:43 x1.laptop kernel: Disabling non-boot CPUs ...
okt. 13 13:56:43 x1.laptop kernel: PM: Saving platform NVS memory
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: EC stopped
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: event blocked
okt. 13 13:56:43 x1.laptop kernel: ACPI: Preparing to enter system sleep state S3
okt. 13 13:56:43 x1.laptop kernel: ACPI: EC: interrupt blocked
okt. 13 13:56:43 x1.laptop kernel: PM: suspend devices took 0.576 seconds
okt. 13 13:56:43 x1.laptop kernel: e1000e: EEE TX LPI TIMER: 00000011
okt. 13 13:56:43 x1.laptop kernel: sd 4:0:0:0: [sda] Stopping disk
okt. 13 13:56:43 x1.laptop kernel: sd 4:0:0:0: [sda] Synchronizing SCSI cache
okt. 13 13:56:43 x1.laptop kernel: printk: Suspending console(s) (use no_console_suspend to debug)
okt. 13 13:56:43 x1.laptop kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
okt. 13 13:56:43 x1.laptop kernel: OOM killer disabled.
okt. 13 13:56:43 x1.laptop kernel: Freezing user space processes ... (elapsed 0.004 seconds) done.
okt. 13 12:44:59 x1.laptop kernel: Filesystems sync: 0.007 seconds
okt. 13 12:44:59 x1.laptop kernel: PM: suspend entry (deep)

sudo systemd-inhibit --list --mode=block                                                                                                                                 (base) 51.9s
WHO        UID  USER     PID  COMM            WHAT                                                                       WHY                      MODE 
PowerDevil 1000 torstein 6721 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events block

1 inhibitors listed.

Tuned config:

# Automatically generated by powertop2tuned tool

[main]
include=balanced

[sysfs]
# Enable SATA link power management for host2 
/sys/class/scsi_host/host2/link_power_management_policy=med_power_with_dipm

# Enable SATA link power management for host3 
/sys/class/scsi_host/host3/link_power_management_policy=med_power_with_dipm

# Enable SATA link power management for host1 
/sys/class/scsi_host/host1/link_power_management_policy=med_power_with_dipm

# Enable SATA link power management for host4 
/sys/class/scsi_host/host4/link_power_management_policy=med_power_with_dipm

# Enable SATA link power management for host0 
/sys/class/scsi_host/host0/link_power_management_policy=med_power_with_dipm

# Wake-on-lan status for device wlp82s0 
/sys/class/net/wlp82s0/device/power/wakeup=enabled

# Wake-on-lan status for device enp0s31f6 
/sys/class/net/enp0s31f6/device/power/wakeup=enabled

# Wake status for USB device 1-9 
/sys/bus/usb/devices/1-9/power/wakeup=enabled

# Wake status for USB device 1-14 
/sys/bus/usb/devices/1-14/power/wakeup=enabled

# Wake status for USB device usb3 
/sys/bus/usb/devices/usb3/power/wakeup=enabled

# Wake status for USB device usb1 
/sys/bus/usb/devices/usb1/power/wakeup=enabled

# Wake status for USB device usb4 
/sys/bus/usb/devices/usb4/power/wakeup=enabled

# Wake status for USB device usb2 
/sys/bus/usb/devices/usb2/power/wakeup=enabled

# Wake status for USB device 1-11 
/sys/bus/usb/devices/1-11/power/wakeup=enabled


[audio]
# Enable Audio codec power management 
timeout=1


[powertop_script]
type=script
replace=1
script=${i:PROFILE_DIR}/script.sh

If I do: tuned-adm off then sleep works.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.