public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Dell XPS 13 9360 (Kaby Lake): Power button LED stays sporadically trying to S0ix suspend
@ 2024-05-29  9:55 Paul Menzel
  2024-05-29 15:21 ` Zhang, Rui
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Menzel @ 2024-05-29  9:55 UTC (permalink / raw)
  To: linux-pm; +Cc: Mike Jones, Hans de Goede

Dear Linux folks,


On the Intel Kaby Lake Dell XPS 13 9360, I have been using ACPI S3 
(`mem_sleep_default=deep`) over S0ix since starting to use the device 
over half a year in October/November 2023 due to the feeling, that the 
battery was drained a lot more with S0ix.

Looking into other problems, cf. *Dell XPS 13 9360: 
`slp_s0_residency_usec` stays 0* [1], I was pointed to S0ix self test 
tools [2], and now test s2idle sporadically. Today, with Linux 
6.10.0-rc1-00021-ge0cce98fe279, I did

     $ echo s2idle | sudo tee /sys/power/mem_sleep

and suspended the system from the GNOME Shell menu. The screen turned 
black, but the power button LED stayed on, so I believe it didn’t really 
suspend. Pressing a keyboard key did nothing – maybe expected. Pressing 
the power button it resumed. The logs contain:

     [    0.000000] Linux version 6.10.0-rc1-00021-ge0cce98fe279 
(build@bohemianrhapsody.molgen.mpg.de) (gcc (Debian 13.2.0-25) 13.2.0, 
GNU ld (GNU Binutils for Debian) 2.42) #167 SMP PREEMPT_DYNAMIC Wed May 
29 06:05:16 CEST 2024
     [    0.000000] Command line: 
BOOT_IMAGE=/vmlinuz-6.10.0-rc1-00021-ge0cce98fe279 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests
     [    0.000000] DMI: Dell Inc. XPS 13 9360/0596KF, BIOS 2.21.0 
06/02/2022
     […]
     [ 2917.885886] PM: suspend entry (s2idle)
     [ 2917.893434] Filesystems sync: 0.007 seconds
     [ 2917.895608] Freezing user space processes
     [ 2917.897114] Freezing user space processes completed (elapsed 
0.001 seconds)
     [ 2917.897117] OOM killer disabled.
     [ 2917.897118] Freezing remaining freezable tasks
     [ 2917.898487] Freezing remaining freezable tasks completed 
(elapsed 0.001 seconds)
     [ 2917.898490] printk: Suspending console(s) (use 
no_console_suspend to debug)
     [ 2918.091771] ACPI: EC: interrupt blocked
     [ 2956.317686] intel_pch_thermal 0000:00:14.2: Wakeup event 
detected, abort cooling
     [ 2956.350676] ACPI: EC: interrupt unblocked
     [ 2956.589690] usb 1-3: reset full-speed USB device number 2 using 
xhci_hcd
     [ 2956.616448] r8152 4-1.2:1.0 enx18dbf22dccf3: carrier on
     [ 2956.741393] OOM killer enabled.
     [ 2956.741402] Restarting tasks ... done.
     [ 2956.744243] random: crng reseeded on system resumption
     [ 2956.745947] mei_hdcp 
0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 
(ops i915_hdcp_ops [i915])
     [ 2956.833723] PM: suspend exit
     [ 2956.887812] Process accounting resumed

Testing a later again, it worked, that means the power button LED turned 
off.

     [ 7977.402744] PM: suspend entry (s2idle)
     [ 7977.410894] Filesystems sync: 0.008 seconds
     [ 7977.414415] Freezing user space processes
     [ 7977.415982] Freezing user space processes completed (elapsed 
0.001 seconds)
     [ 7977.415985] OOM killer disabled.
     [ 7977.415986] Freezing remaining freezable tasks
     [ 7977.417507] Freezing remaining freezable tasks completed 
(elapsed 0.001 seconds)
     [ 7977.417524] printk: Suspending console(s) (use 
no_console_suspend to debug)
     [ 7977.637987] ACPI: EC: interrupt blocked
     [ 7977.641470] intel_pch_thermal 0000:00:14.2: CPU-PCH is cool [44C]
     [ 7979.244068] ACPI: EC: interrupt unblocked
     [ 7979.489907] usb 1-3: reset full-speed USB device number 2 using 
xhci_hcd
     [ 7979.510653] r8152 4-1.2:1.0 enx18dbf22dccf3: carrier on
     [ 7979.644236] OOM killer enabled.
     [ 7979.644243] Restarting tasks ... done.
     [ 7979.648330] random: crng reseeded on system resumption
     [ 7979.649654] mei_hdcp 
0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 
(ops i915_hdcp_ops [i915])
     [ 7979.745631] PM: suspend exit
     [ 7979.799159] Process accounting resumed

The difference is:

1.  LED stays on:

         intel_pch_thermal 0000:00:14.2: Wakeup event detected, abort 
cooling

2.  LED turns off:

         intel_pch_thermal 0000:00:14.2: CPU-PCH is cool [44C]

Does intel_pch_thermal prevent the system from S0ix suspending, so the 
LED stays on until the device is cooled down? If so, could this be 
better logged, so users know, what is going on. The driver description 
only says, that reading capabilities are provided:

     config INTEL_PCH_THERMAL
             tristate "Intel PCH Thermal Reporting Driver"
             depends on X86 && PCI
             select ACPI_THERMAL_LIB if ACPI
             help
               Enable this to support thermal reporting on certain intel 
PCHs.
               Thermal reporting device will provide temperature reading,
               programmable trip points and other information.

If intel_pch_thermal does *not* prevent the system from reaching S0ix 
state, can you please point me to the correct subsystem to report this to?


Kind regards,

Paul


[1]: 
https://lore.kernel.org/platform-driver-x86/38fc334a-7c8c-4e43-bf63-6ac9aa882a2f@molgen.mpg.de/
[2]: https://github.com/intel/S0ixSelftestTool/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-30 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  9:55 Dell XPS 13 9360 (Kaby Lake): Power button LED stays sporadically trying to S0ix suspend Paul Menzel
2024-05-29 15:21 ` Zhang, Rui
2024-05-30  8:37   ` Paul Menzel
2024-05-30 15:20     ` Zhang, Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox