From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4NWHEu5n8mLRxgAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 15:58:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WPlpEu5n8mIhHwEAauVa8A (envelope-from ) for ; Tue, 09 Aug 2022 15:58:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 09F7C15547 for ; Tue, 9 Aug 2022 15:58:06 +0200 (CEST) Received: from localhost ([::1]:46762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLPkD-0002hf-1A for larch@yhetil.org; Tue, 09 Aug 2022 09:58:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLPkA-0002hW-4P for bug-guix@gnu.org; Tue, 09 Aug 2022 09:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLPk9-0005UA-RW for bug-guix@gnu.org; Tue, 09 Aug 2022 09:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLPk9-0001po-M9 for bug-guix@gnu.org; Tue, 09 Aug 2022 09:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57052: elogind-service specifies a variable that's ignored by defualt Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Aug 2022 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57052 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: Cairn , 57052@debbugs.gnu.org Received: via spool by 57052-submit@debbugs.gnu.org id=B57052.16600534366999 (code B ref 57052); Tue, 09 Aug 2022 13:58:01 +0000 Received: (at 57052) by debbugs.gnu.org; 9 Aug 2022 13:57:16 +0000 Received: from localhost ([127.0.0.1]:44401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLPjP-0001op-Vo for submit@debbugs.gnu.org; Tue, 09 Aug 2022 09:57:16 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:35662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLPjM-0001oY-0V for 57052@debbugs.gnu.org; Tue, 09 Aug 2022 09:57:14 -0400 Received: by mail-qt1-f178.google.com with SMTP id h22so3282657qtu.2 for <57052@debbugs.gnu.org>; Tue, 09 Aug 2022 06:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc; bh=EsOuPrI2rKpH6ijkJB14Z4WeR8J0I2tQa4if3UySp9s=; b=XWdQuABI42D26G3C0fFHgkN0URKjoDfznp33eoqRmmy1s9qScTzcGGhmF/lqouUf8Z 5bKDVfG+87b5q+3GF33vwyADgR8QsamD+7DemzWb9v2YeKEgDG/ACctN4bVwOu/wguWt l4EEz6YVnVYTj71MRJKAqUV8bfwS5BS6pN0gdc8kEAiweIWFvG6z/EQ3OPNSx4pHjtUV oCMRwCwIvBCARzzxVyAqB+4bWMQ6Sqa5cY38wTO2hiPMYjTq95G1wkTu3CAHRfs15TJE me+iB+4bCi9pcoG7ujqDFqE3/A6XlqdCETN2ZC55vJA6KX6Q2A4ZloqOPXA2r06dTrDB GanA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=EsOuPrI2rKpH6ijkJB14Z4WeR8J0I2tQa4if3UySp9s=; b=oQ9OiuYo9FJVl4qy7nEbGNCQB9F+pYxu7y9q3vRci73/+urGVoHd8b7DLvpzmJxwBj pUWUUFnBCyZO9HdoR/LBBOvmy37i+jRSy2r+kyoWM/l4lBH9J4wVbsaqQrWeDfgXuNHW jaX+DnlkDaubHJtM0mXiQ5uTiXSM4HTeIuUC/3IqDvPlvmSe0d0iBipPL7P9AKHZFNjr kTs9JMtiwyMKzI5OmVSDioBUMcjNP9/O8ghsENeIpwl124rr35ZoefS202uHsmXh6vfC MRGAs88QePt+dF3Z9DxN5CjTqHgRjs5xXyvZMFZj02bu5MktC3GRPe/P/0v0upGOtdcA opNA== X-Gm-Message-State: ACgBeo3sRlcRuzxQsqfiJCRcTAEp2JhxgJ8pRpynGW2RjC1yjKtxOhbE 7/s8ly61C0gVbVRTMuFl6WBOHRlswsU= X-Google-Smtp-Source: AA6agR5kImR68tn+jEYkEoEzOk3ImqpM6y+FvDVtDaWTHJJSyYkEkWE94LS6TqsTkq96B6MzwG8DJA== X-Received: by 2002:a05:622a:c7:b0:343:2e72:8416 with SMTP id p7-20020a05622a00c700b003432e728416mr1759426qtw.92.1660053426410; Tue, 09 Aug 2022 06:57:06 -0700 (PDT) Received: from hurd (dsl-10-135-11.b2b2c.ca. [72.10.135.11]) by smtp.gmail.com with ESMTPSA id u4-20020a05620a430400b006b5988b2ca8sm11442519qko.40.2022.08.09.06.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 06:57:06 -0700 (PDT) From: Maxim Cournoyer References: <1MoJ5UI-6FMbpR2WSMjNbdVXZd4GisV-Dl1HPuLfgYLOQYl4Udg7HLNR8NDmZ47slyi4grIwH93xXL8xORLxUo4O80MR34q3wLXMmnktYH8=@pm.me> <8b93b5ce9f1c9caab7a65fcc672dddd24c7ad373.camel@ist.tugraz.at> <8735e5plra.fsf@gmail.com> Date: Tue, 09 Aug 2022 09:57:05 -0400 In-Reply-To: <8735e5plra.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 09 Aug 2022 09:52:25 -0400") Message-ID: <87wnbho6z2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660053486; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=EsOuPrI2rKpH6ijkJB14Z4WeR8J0I2tQa4if3UySp9s=; b=IF8UM81dAEKUi/4bU1udesaGHRxN/m2hug51aZr5kPFNLIVXSaN6WRQVQt/gef5yBorvO5 MNjfF11Q9n1Po7zsjJE1xs0SRA3RqgjQvPv7BBOLZMxGdFCLyq2OOm+hLasb6DUFiRQsi2 QcJKlPQv4tcuR3dWuX4LKV7E+LSme4epzJxZpBeE51sdrbelcleDf7cUD3i/+TkYhq45AU B9Wct2NJvTXBJkTQ51XUnKOpbAUTxlOscV5ICXM4CI6ebESpc/LN8b5KQvalUo6fGi8dis oKdIBAcbU7uOs/3XOa51kD1PtZ+DK7VQvmxNOP+7d91XMTSCh4p2yWOmqvwhWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660053486; a=rsa-sha256; cv=none; b=jtHjLD8ZalfazOBqi/UE5q7BrZ5M2xDex3AtIcB4kjMoojVbuLJcrSa3EvhPcXLmdaGThu ofTVaZAvPmjbpc4T47ERr5GGE7sVgX2kNpbcfl6+cPz7dglbg8xgeEbZB6dR2CinQJ78VM A9/8NaVjqP13Md8RGGTFIySAH989TyoiCeir96Zk9pqSLR+akWIzMNQdwmYe1iG1jshZez 5Rhpj8YicVZuHpuv3PDyzA8pAcBSGh00BOGSlVibF0BcRSRA5MIRpG4yVSuunR/CfMccnj 0XR+oTHp5wFdK6eZZt6FpI+pueFj9m8lnMQwTLqFXiTXPNs+WyG0NpJFl/fKGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XWdQuABI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XWdQuABI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 09F7C15547 X-Spam-Score: 5.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6ryfhkuWYPF8 Hi, Maxim Cournoyer writes: > Hi, > > Liliana Marie Prikler writes: > >> Am Sonntag, dem 07.08.2022 um 23:29 +0000 schrieb Cairn: >>> "HandleLidSwitchExternalPower= is completely ignored by default (for >>> backwards compatibility)"[1] >>> >>> I noticed (with help in IRC) that my laptop wasn't suspending on lid >>> close when plugged in and charging, which I hadn't seen happen on >>> other systems. I now know that I can set this by configuring the >>> `elogind-service` parameter `handle-lid-switch-external-power`. >>> Regardless, it seems like it should default to being unset rather >>> than set/ignored, since that would heed the line I quoted above. >> I think you're misreading that line. What it states is not that >> "HandleLidSwitchExternalPower" is ignored by default, but >> "HandleLidSwitchExternalPower=" is ignored by default, i.e. there will >> be no value unless one was provided (whichever semantics "no value" has >> later on) is only confusingly explained later on. >> >> IMHO the Guix behaviour of always setting a value is the right one >> (explicit is better than implicit after all). As for the default >> values, one might disagree as to which fits, but I don't think ignoring >> lid switches while powered is harmful. > > It can be. I have a Lenovo T430s with a partially discolored LCD from > heat after I left it closed in a backpack for a couple hours, thinking > it would have suspend (it was not). That would not have happened with > the value supposed to be default (which matches the behavior used on > most other systems). > > So I'd favor having the default to suspend on any lid close. For the record, this was noticed and discussed more than a year ago, see Message-ID: <871rens9a2.fsf@nckx>. It had fallen into the cracks, it seems. Maxim