GNU bug report logs - #77806
elogind behavior changed: power key turns computer off

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Mon, 14 Apr 2025 16:48:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 77806 <at> debbugs.gnu.org:


Received: (at 77806) by debbugs.gnu.org; 24 Apr 2025 05:29:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 24 01:29:38 2025
Received: from localhost ([127.0.0.1]:33725 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u7p9V-0001Is-SH
	for submit <at> debbugs.gnu.org; Thu, 24 Apr 2025 01:29:38 -0400
Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:58513)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1u7p9T-0001IV-Np
 for 77806 <at> debbugs.gnu.org; Thu, 24 Apr 2025 01:29:36 -0400
Received: by mail-pf1-x434.google.com with SMTP id
 d2e1a72fcca58-7376dd56eccso578558b3a.0
 for <77806 <at> debbugs.gnu.org>; Wed, 23 Apr 2025 22:29:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1745472569; x=1746077369; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=uWJT/7rHz6OjLsPTzi2KoOcW+yxda75nhTaa83GOngk=;
 b=crDq3Sbzqw2XaPWye5O98s/0Pk8bKJrnyo+hUg1dOzlknWj76yiSUMY1CrI3UGVNUr
 11QZ4y9oAh9FNCfLf2KavlC6NbqA21bIOpiq0zqWZM7YdSdWiDuI0cLh9XQvBWGVa789
 PJz8832aoW5tHCDk/ldBwI8w8Q4Y5bqsBW4VWsBFwCkECYiI3SnZADeNm2Xi9rfZDhZr
 JgbxEZ/Gce3ClrchZWdgbh1iR4TH0+Eke8c/H61Ch5heYOch63fQi1Y2MNZQcGLVDhjg
 RcE3cMH72I7JGzu+m9p3ZaTkSZ4TT0Vl0kEYfiJCnU0iSivtSGFJhvszlSR+9ZoE1DMp
 oCjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745472569; x=1746077369;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=uWJT/7rHz6OjLsPTzi2KoOcW+yxda75nhTaa83GOngk=;
 b=gndDZJ61f3inmafw5NSqCd9lR7dyU73mG73Mh52A9FQ1zn2ORTnOllKggxGCM2Afvm
 uYLLpl/zg2lRRSQ2y5dZBlfTjYsq5fboOTJi0x8l5dDW4wii7Mgedt1u8YgqMvhYboAO
 C4aLwxg+wWS9Ltvnp1BraRoFZZ1pgHc6WrVuTpk8hV30F5/vgJM+s7XEQCOJMaZf0zXd
 oNdkJLxXo3x6U3kiDOIGb4vX7uCNHOXSyJxA+73JIhQ2L6UG0qtE4CHLFQTQ0D04wf7D
 4xJjyN1TuVvKJUcyG+KD0enCMwgmiRTP4w0QVQqb8o0k0Uq7Z7r1aJFAAOY3AlSE8/7V
 hJ1Q==
X-Forwarded-Encrypted: i=1;
 AJvYcCW3Yy5jPwRZkq9JHYgvJ3vIuwbKYsvlEhi2ZcJvAUk56CK5bqrId8+nd/UNP7soMm35Pld8WA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yya8dBSSweyDYd6ae3sRU3rOYYO1H11hBaXhjt/TOrJBa44bHRo
 DDzwbhEtbt3vr1lplb5Q8h0+TP6niy5pwJhFOaeSmUa0pyhUNnPuXiwzpqDs
X-Gm-Gg: ASbGncu1h4Ag5kk4JdNLbkbUQZ/8Xc9m/H56aoqhAJDuT/9kN4/UZxYwQhuLOOIXC4H
 MtgOh1pyFlQJQ3mpL2F5yY+V2n/fcmLIe15+kfIqGi8+cn4z7B4/+8gyfytend8V5MZGXi76Mu0
 SSdDlnJvnq2JLkZXT1VeWX9x51xq0bY+cJdE25+qi8WwV4TSW6OGu2zyW5cZFDi9ENkF3LrktoV
 6icf2wKlbSnYK6I0Xyy25O7YcYFo3UW/BRROZcliSxgpf8/KpDWuO/INE8oXbKsYeQ3IWOFbloT
 36wlJcEbYSM2/rSf1alHpW+YtFoSX6QEqctZIQ8=
X-Google-Smtp-Source: AGHT+IGEnmk7aQQ77OgZoOBqtOpriH847eddCmQNh9EfgVtbSJOftlGnlOlLk3d1/Rha5rzyYqnEIw==
X-Received: by 2002:a05:6a21:e590:b0:1f5:8d91:293a with SMTP id
 adf61e73a8af0-20444fc3288mr1951074637.41.1745472568985; 
 Wed, 23 Apr 2025 22:29:28 -0700 (PDT)
Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-b15fadec8c0sm414570a12.68.2025.04.23.22.29.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 23 Apr 2025 22:29:28 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Bas Alberts <bas@HIDDEN>
Subject: Re: bug#77806: elogind behavior changed: power key turns computer off
In-Reply-To: <pch62olsec.fsf@HIDDEN> (Bas Alberts's message of "Wed, 16
 Apr 2025 03:03:28 +0000")
References: <87v7r6ofme.fsf@HIDDEN> <pch62olsec.fsf@HIDDEN>
Date: Thu, 24 Apr 2025 14:29:24 +0900
Message-ID: <87selyrutn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77806
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 77806 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

Thanks for the report.

It looks like nowadays the sleep settings are expected to be in a
distinct sleep.conf file [0]; I haven't verified yet but I suspect the
[Sleep] section of our logind.conf is no longer honored.

[0]  https://github.com/elogind/elogind/issues/293

-- 
Thanks,
Maxim




Information forwarded to bug-guix@HIDDEN:
bug#77806; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 77806 <at> debbugs.gnu.org:


Received: (at 77806) by debbugs.gnu.org; 16 Apr 2025 03:03:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 15 23:03:51 2025
Received: from localhost ([127.0.0.1]:59758 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u4t42-00017c-VH
	for submit <at> debbugs.gnu.org; Tue, 15 Apr 2025 23:03:51 -0400
Received: from mail-10624.protonmail.ch ([79.135.106.24]:42277)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bas@HIDDEN>) id 1u4t3u-00015Y-Lb
 for 77806 <at> debbugs.gnu.org; Tue, 15 Apr 2025 23:03:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anti.computer;
 s=protonmail2; t=1744772612; x=1745031812;
 bh=xV3h86HMZENLbXGgbSQycHf1NpGMedKdZS2bS9Xmoxc=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post;
 b=j3+AIDw6Rdt4RCH6LQCiD3DdajbA9ruduR41JQEF7Jy23aMx766y/2mVAQ2fvhCrK
 wHJrrXMhH5VtYNT4NdV5qQHst7eJhueu1qViJ32HlnI7eZZKrCJGGrrPoeA5HNzXhg
 I1640Zj82ZSWkxoPUUKBF2Lz3MQN9HItS5UPUXOUcM0RM5fgscZ9DhOS/2+Vz38/nc
 2Df2o8Qd+Q5YfzgKaWI0BulW77QF0mL5U1pqu1RhMNNMDHQ7EICuwWqphEd13y9OrE
 7qx+nhPEH7JNiPMsglXHY5Vbg92YkwQK7EDKz6bRweECqHoOpgP+umVqoHbx+wxQoM
 455NypBaSvg8Q==
Date: Wed, 16 Apr 2025 03:03:28 +0000
To: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
From: Bas Alberts <bas@HIDDEN>
Subject: Re: bug#77806: elogind behavior changed: power key turns computer off
Message-ID: <pch62olsec.fsf@HIDDEN>
In-Reply-To: <87v7r6ofme.fsf@HIDDEN>
References: <87v7r6ofme.fsf@HIDDEN>
Feedback-ID: 9830402:user:proton
X-Pm-Message-ID: cebc757b04c0671a30340995b9912dcceb493e44
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77806
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, 77806 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Mon, 14 Apr 2025 18:46:33 +0200,=20
Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:
>
> Yet the config reads this:
>
> $ grep -i powerkey $(sudo herd configuration elogind)
> HandlePowerKey=3Dsuspend
> PowerKeyIgnoreInhibited=3Dno

I'm having the same issue.

My config is also unchanged but after this week's upgrades elogind no
longer respects HandleLidSwitch=3Dhibernate and my laptop defaults to
s2idle which is prohibitively battery consuming on my hardware.

=CE=BB ~ =E2=80=BA grep -i HandleLidSwitch=3D $(sudo herd configuration elo=
gind)
HandleLidSwitch=3Dhibernate

... on lid close:

[ 3603.354720] PM: suspend entry (s2idle)
[ 3603.359069] Filesystems sync: 0.004 seconds
[ 3603.368060] Freezing user space processes

...

Kind regards,
Bas





Information forwarded to bug-guix@HIDDEN:
bug#77806; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Apr 2025 16:47:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 14 12:47:05 2025
Received: from localhost ([127.0.0.1]:48690 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u4Mxc-000695-KL
	for submit <at> debbugs.gnu.org; Mon, 14 Apr 2025 12:47:04 -0400
Received: from lists.gnu.org ([2001:470:142::17]:44642)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1u4MxY-00068Q-Ic
 for submit <at> debbugs.gnu.org; Mon, 14 Apr 2025 12:47:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1u4MxQ-0006ON-UU
 for bug-guix@HIDDEN; Mon, 14 Apr 2025 12:46:52 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1u4MxQ-0007cD-J3
 for bug-guix@HIDDEN; Mon, 14 Apr 2025 12:46:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=GIOq4RjAjvK2X0Sc+bJLsu4msXWo/uZkid0bwajsN5w=; b=kjpAGguPwuexPD
 22wX1/tFt6m4O1OLmOM9nmWeqQC1OLRpwwURGhuNpMz6trWU6s4y9x+InAGNkcQtXjr+OVsdie95J
 N7FWTEvV2wEYU4gLrtHaCvnd0CVZG2VF/TSIRBoDzRx4UciAY3bi4jszVieyto+PFDEA+Msx98ezR
 pIt8vKy9SPAbsqJG2xbh+LfaGHDakOZdcOvhcgR6LKFho9W8gNjXVJefwRRKXIAwWvlHwuIHQRd1+
 9NCD99UpDVKxw4j3CAIbW8oI1fFl9SF72/OF9lJCSnPKuEo6nwR1mwKIAFrqo0797HK0YWV+qtmAY
 S3yuPpTUgn/EUmhYWD3g==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-guix@HIDDEN
Subject: elogind behavior changed: power key turns computer off
User-Agent: mu4e 1.12.9; emacs 29.4
X-Debbugs-Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-URL: https://people.bordeaux.inria.fr/lcourtes/
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
X-Revolutionary-Date: Quintidi 25 Germinal an 233 de la =?utf-8?Q?R=C3=A9v?=
 =?utf-8?Q?olution=2C?= jour du Pigeon
Date: Mon, 14 Apr 2025 18:46:33 +0200
Message-ID: <87v7r6ofme.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

Probably related to the elogind upgrade in
098b5cdf9c6841df0b3c086974eef7e13fd23b36, I noticed today that pressing
the power button on my laptop would turn it off instead of putting it
into software suspend as it used to do:

--8<---------------cut here---------------start------------->8---
2025-04-14 17:59:53 localhost elogind[290]: Power key pressed short.
2025-04-14 17:59:53 localhost elogind[290]: Powering off...
2025-04-14 17:59:53 localhost elogind[290]: System is powering down.
2025-04-14 17:59:54 localhost shepherd[1]: Stopping service root...
2025-04-14 17:59:54 localhost shepherd[1]: Exiting shepherd...
2025-04-14 17:59:54 localhost shepherd[1]: Stopping service swap-/swap...
2025-04-14 17:59:54 localhost shepherd[1]: Service swap-/swap stopped.
2025-04-14 17:59:54 localhost shepherd[1]: Service swap-/swap is now stoppe=
d.
--8<---------------cut here---------------end--------------->8---

Previously I had:

--8<---------------cut here---------------start------------->8---
2025-04-08 18:07:51 localhost elogind[282]: Power key pressed short.
2025-04-08 18:07:51 localhost elogind[282]: Suspending...
2025-04-08 18:07:51 localhost NetworkManager[311]: <info>  [1744128471.3311=
] manager: sleep: sleep requested (sleeping: no  enabled: yes)
2025-04-08 18:07:51 localhost NetworkManager[311]: <info>  [1744128471.3332=
] manager: NetworkManager state is now ASLEEP
2025-04-08 18:07:51 localhost elogind[282]: Entering sleep state 'suspend'.=
..
2025-04-08 18:07:51 localhost linux: [82930.856145] PM: suspend entry (deep)
--8<---------------cut here---------------end--------------->8---

Yet the config reads this:

--8<---------------cut here---------------start------------->8---
$ grep -i powerkey $(sudo herd configuration elogind)
HandlePowerKey=3Dsuspend
PowerKeyIgnoreInhibited=3Dno
--8<---------------cut here---------------end--------------->8---

Thoughts?

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to maxim.cournoyer@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to maxim.cournoyer@HIDDEN, bug-guix@HIDDEN:
bug#77806; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 24 Apr 2025 05:30:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.