All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: linux-acpi@vger.kernel.org
Subject: Re: s2idle on kdell xps 9730 does go to sleep but laptop is warm
Date: Mon, 2 Jun 2025 13:56:13 -0700	[thread overview]
Message-ID: <aD4P7eU0tOgNhPI5@merlins.org> (raw)
In-Reply-To: <CAJZ5v0j0NK29+D=RjsLgmAmh7_bujA5xXoLpo--FC2Gd98RMig@mail.gmail.com>

On Mon, Jun 02, 2025 at 04:23:42PM +0200, Rafael J. Wysocki wrote:
> >  With kernel 6.6.9 when I put the laptop to sleep, syslog shows that the
> >  laptop was sleeping for 9h, fans were stopped, but when I gabbed my
> >  laptop it was warm and burned 80% of the battery overnight.
> 
> First off, I'd try a newer kernel.  Say 6.15.0 (unless you boot with
> "nosmt" in the kernel command line).
 
Fair point, I somehow failed to upgrade the kernel on that machine.
I have a 6.14.5 kernel I just installed.

I also upgraded all firmware:
dpkggrep firmware | awk '{ print $1 }' | xargs apt-get install -t unstable  -y

> > And yet, linux was not running, my logs show the kernel went into ACPI
> > sleep and back out
> 
> It wouldn't be "ACPI sleep" if it was suspend-to-idle.

My thinkpad has:
sauron:~# cat /sys/power/mem_sleep
s2idle [deep]

The Dell XPS only has:
merlin:/usr/src# cat /sys/power/mem_sleep
[s2idle]

> What processor is there in your system?

model name      : 13th Gen Intel(R) Core(TM) i7-13700H

> Well, it obviously is not a complete log.

Ok, I tested again with the new kernel. The laptop didn't feel warm when
in sleep, but I lost 20% battery in 4H, which means the battery would
not last 24H in sleep

For logs, which one did you want?  I have pretty full logs here:
https://marc.merlins.org/tmp/merlin-sleep-6.14.5_dmesg.txt
https://marc.merlins.org/tmp/merlin-sleep-6.14.5_acpi.txt

One thing I changed recently is that unloading wireless altogether,
causes issues at times, so now I have
rfkill block wlan
instead of
killall wpa_supplicant &>/dev/null
pkill -f "dhclient.*wlan0"
ifconfig -a | grep -q wlan0 && ifconfig wlan0 down
rmmod iwlmvm
rmmod iwlwifi iwlagn iwlcore
rmmod ieee80211
rmmod ieee80211_crypt_wep 2>/dev/null
rmmod ieee80211_crypt_tkip 2>/dev/null
rmmod ieee80211_crypt 2>/dev/null
rmmod mac80211 2>/dev/null
rmmod cfg80211 2>/dev/null

This bit of dmesg just before sleep may be relevant:
[  226.365652] thunderbolt 0000:00:0d.2: save config 0x34: 0x00000080
[  226.365654] thunderbolt 0000:00:0d.3: save config 0x2c: 0x0bda1028
[  226.365655] thunderbolt 0000:00:0d.2: save config 0x38: 0x00000000
[  226.365656] thunderbolt 0000:00:0d.3: save config 0x30: 0x00000000
[  226.365657] thunderbolt 0000:00:0d.2: save config 0x3c: 0x000001ff
[  226.365659] thunderbolt 0000:00:0d.3: save config 0x34: 0x00000080
[  226.365661] thunderbolt 0000:00:0d.3: save config 0x38: 0x00000000
[  226.365663] thunderbolt 0000:00:0d.3: save config 0x3c: 0x000001ff
[  226.366245] thunderbolt 0000:00:0d.2: PME# enabled
[  226.366424] thunderbolt 0000:00:0d.3: PME# enabled
[  226.370305] pcieport 10000:e0:06.2: PCI PM: Suspend power state: D3hot
[  226.370328] pcieport 10000:e0:06.0: PCI PM: Suspend power state: D3hot
[  226.370539] vmd 0000:00:0e.0: save config 0x00: 0xa77f8086
[  226.370551] vmd 0000:00:0e.0: save config 0x04: 0x00100406
[  226.370555] vmd 0000:00:0e.0: save config 0x08: 0x01040000
[  226.370560] vmd 0000:00:0e.0: save config 0x0c: 0x00800000
[  226.370565] vmd 0000:00:0e.0: save config 0x10: 0x02000004
[  226.370575] vmd 0000:00:0e.0: save config 0x14: 0x00000062
[  226.370581] vmd 0000:00:0e.0: save config 0x18: 0x72000000
[  226.370587] vmd 0000:00:0e.0: save config 0x1c: 0x00000000
[  226.370592] vmd 0000:00:0e.0: save config 0x20: 0x07900004
[  226.370596] vmd 0000:00:0e.0: save config 0x24: 0x00000062
[  226.370600] vmd 0000:00:0e.0: save config 0x28: 0x00000000
[  226.370603] vmd 0000:00:0e.0: save config 0x2c: 0x0bda1028
[  226.370607] vmd 0000:00:0e.0: save config 0x30: 0x00000000
[  226.370611] vmd 0000:00:0e.0: save config 0x34: 0x00000080
[  226.370615] vmd 0000:00:0e.0: save config 0x38: 0x00000000
[  226.370620] vmd 0000:00:0e.0: save config 0x3c: 0x00000000
[  226.375481] intel-lpss 0000:00:15.1: ACPI _REG disconnect evaluation failed (5)
[  226.375487] mei_me 0000:00:16.0: PCI PM: Suspend power state: D3hot
[  226.375908] intel-lpss 0000:00:15.0: ACPI _REG disconnect evaluation failed (5)
[  226.376162] proc_thermal_pci 0000:00:04.0: PCI PM: Suspend power state: D3hot
[  226.377183] intel-lpss 0000:00:15.1: power state changed by ACPI to D3hot
[  226.377277] intel-lpss 0000:00:15.1: PCI PM: Suspend power state: D3hot
[  226.377771] intel-lpss 0000:00:15.0: power state changed by ACPI to D3hot
[  226.378257] rtsx_pci 0000:06:00.0: PCI PM: Suspend power state: D3hot
[  226.378422] intel-lpss 0000:00:15.0: PCI PM: Suspend power state: D3hot
[  226.378448] pcieport 0000:00:1c.0: save config 0x00: 0x51bb8086
[  226.378607] pcieport 0000:00:1c.0: save config 0x04: 0x00100407
[  226.378656] pcieport 0000:00:1c.0: save config 0x08: 0x06040001
[  226.378707] pcieport 0000:00:1c.0: save config 0x0c: 0x00810000
[  226.378758] pcieport 0000:00:1c.0: save config 0x10: 0x00000000
[  226.378782] pcieport 0000:00:1c.0: save config 0x14: 0x00000000
[  226.378806] pcieport 0000:00:1c.0: save config 0x18: 0x00060600
[  226.378830] pcieport 0000:00:1c.0: save config 0x1c: 0x000000f0
[  226.378853] pcieport 0000:00:1c.0: save config 0x20: 0x75007500
[  226.378877] pcieport 0000:00:1c.0: save config 0x24: 0x0001fff1
[  226.378899] pcieport 0000:00:1c.0: save config 0x28: 0x00000000
[  226.378905] pcieport 0000:00:1c.0: save config 0x2c: 0x00000000
[  226.378935] pcieport 0000:00:1c.0: save config 0x30: 0x00000000
[  226.378958] pcieport 0000:00:1c.0: save config 0x34: 0x00000040
[  226.378982] pcieport 0000:00:1c.0: save config 0x38: 0x00000000
[  226.379006] pcieport 0000:00:1c.0: save config 0x3c: 0x000204ff
[  226.379534] pcieport 0000:00:1c.0: PME# enabled
[  226.379589] thunderbolt 0000:00:0d.2: ACPI _REG disconnect evaluation failed (5)
[  226.380218] xhci_hcd 0000:00:0d.0: ACPI _REG disconnect evaluation failed (5)
[  226.381101] thunderbolt 0000:00:0d.3: ACPI _REG disconnect evaluation failed (5)
[  226.382316] iwlwifi 0000:00:14.3: power state changed by ACPI to D3hot
[  226.382528] iwlwifi 0000:00:14.3: PCI PM: Suspend power state: D3hot
[  226.383140] vmd 0000:00:0e.0: ACPI _REG disconnect evaluation failed (5)
[  226.384467] xhci_hcd 0000:00:14.0: power state changed by ACPI to D3hot
[  226.384574] xhci_hcd 0000:00:14.0: PCI PM: Suspend power state: D3hot
[  226.384813] vmd 0000:00:0e.0: power state changed by ACPI to D3hot
[  226.384825] vmd 0000:00:0e.0: PCI PM: Suspend power state: D3hot
[  226.385180] xhci_hcd 0000:00:0d.0: power state changed by ACPI to D3cold
[  226.385191] xhci_hcd 0000:00:0d.0: PCI PM: Suspend power state: D3cold
[  226.391528] pcieport 0000:00:1c.0: ACPI _REG disconnect evaluation failed (5)
[  226.392369] pcieport 0000:00:1c.0: power state changed by ACPI to D3hot
[  226.392484] pcieport 0000:00:1c.0: PCI PM: Suspend power state: D3hot
[  226.395162] thunderbolt 0000:00:0d.2: power state changed by ACPI to D3cold
[  226.395172] thunderbolt 0000:00:0d.2: PCI PM: Suspend power state: D3cold
[  226.396283] thunderbolt 0000:00:0d.3: power state changed by ACPI to D3cold
[  226.396291] thunderbolt 0000:00:0d.3: PCI PM: Suspend power state: D3cold
[14916.770339] ACPI: EC: interrupt unblocked

-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
 
Home page: http://marc.merlins.org/                       | PGP 7F55D5F27AAF9D08

  reply	other threads:[~2025-06-02 20:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-15  7:45 s2idle on kdell xps 9730 does go to sleep but laptop is warm Marc MERLIN
2025-05-31 21:26 ` Marc MERLIN
2025-05-31 23:16   ` Theodore Ts'o
2025-06-01 14:23     ` Marc MERLIN
2025-06-02 14:23 ` Rafael J. Wysocki
2025-06-02 20:56   ` Marc MERLIN [this message]
2025-06-27 22:51     ` Marc MERLIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aD4P7eU0tOgNhPI5@merlins.org \
    --to=marc@merlins.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.