From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1.merlins.org (magic.merlins.org [209.81.13.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C9B2196C7C for ; Mon, 2 Jun 2025 20:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.81.13.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748897778; cv=none; b=RTj1mVUZqD6pcbqPFYr9B+3f+4bV0yoX3wKJZiExJ9jeJeS0JIF/nurUzocOYSzbbzC5Sq8bQseq9k9funJF2Spqgnw4PYRuddr85byiYSIimMMamtQJB58yxomugmt4zSSrQ6+okkFw/7ywPgBCx5szl8AGusfWnPt517Ygwdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748897778; c=relaxed/simple; bh=sNWjIMkDdVYMgfh8+9Bo+e7O0UqLVLZbmz6krTtwuYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FsA67nJVtzi7s67QYbnamWTjVIOaZiME0AMNTvZxj7avTQcweq9ydzWPf6ABCg4C1msv2ETjjejYnNY/1wvWCsSw1YiAPJPcDd46lT5uKmP8f9Ot7odJblxMtfmpHmkum8tnoyKAqUwH9ag/UBkymPOBvpVTTY0isqbmLIC5ogQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=merlins.org; spf=pass smtp.mailfrom=merlins.org; dkim=fail (0-bit key) header.d=merlins.org header.i=@merlins.org header.b=Om5SV/ec reason="key not found in DNS"; arc=none smtp.client-ip=209.81.13.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=merlins.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=merlins.org Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=merlins.org header.i=@merlins.org header.b="Om5SV/ec" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=merlins.org ; s=key; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1L4f6hh2CWObMtTIcAf+pC6LqZk3mpG9GJ9iyFa1iTo=; b=Om5SV/ecpCAhTIst81EPvCI4n0 SDUTc7AypGtvON/wZlctxIZzj4AfDTLD8br8yvuV/HOe76vuTbuag47zTXLxuhYBxze3xDLRR8Wf6 I9zhbTe4KqeOixcfbk6nZ3QSxZH7mh7lG7n4NHasUmvBj3fklExSQCNez9066wN+nJurk7xX16O0B upMbIg5M/1kVRC6MpuVNJUlVN5rkOMvgsz6BqMV1LbmvHxKOiWA8qx4xK9suWdMtL2mGo+AHFKrA6 UdR5EyfEmyYX3zof0FZ8i101qZkcl45U7iPtAconIzwAJFfOIdcUMWnCk8wBf8p2wrwp/yLh9Xdt8 rI8qXjhg==; Received: from c-24-4-65-180.hsd1.ca.comcast.net ([24.4.65.180]:44972 helo=sauron.svh.merlins.org) by mail1.merlins.org with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2 #2) id 1uMAhB-0002wk-Rd by authid with srv_auth_plain; Mon, 02 Jun 2025 13:56:14 -0700 Received: from merlin by sauron.svh.merlins.org with local (Exim 4.96) (envelope-from ) id 1uMCCb-005J1z-2P; Mon, 02 Jun 2025 13:56:13 -0700 Date: Mon, 2 Jun 2025 13:56:13 -0700 From: Marc MERLIN To: "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org Subject: Re: s2idle on kdell xps 9730 does go to sleep but laptop is warm Message-ID: References: Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sysadmin: BOFH X-URL: http://marc.merlins.org/ X-SA-Exim-Connect-IP: 24.4.65.180 X-SA-Exim-Mail-From: marc@merlins.org 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