From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kMhJOkO+8WIQYQAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 03:54:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8IaBOUO+8WJMRAAAG6o9tA (envelope-from ) for ; Tue, 09 Aug 2022 03:54:11 +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 90E3D39CFB for ; Tue, 9 Aug 2022 03:54:10 +0200 (CEST) Received: from localhost ([::1]:44120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLERd-0005fC-Nl for larch@yhetil.org; Mon, 08 Aug 2022 21:54:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLERW-0005f3-HU for bug-guix@gnu.org; Mon, 08 Aug 2022 21:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLERV-0002RC-QU for bug-guix@gnu.org; Mon, 08 Aug 2022 21:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLERV-0007kj-I9 for bug-guix@gnu.org; Mon, 08 Aug 2022 21:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57052: elogind-service specifies a variable that's ignored by defualt Resent-From: bokr@bokr.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Aug 2022 01:54: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.166000998929733 (code B ref 57052); Tue, 09 Aug 2022 01:54:01 +0000 Received: (at 57052) by debbugs.gnu.org; 9 Aug 2022 01:53:09 +0000 Received: from localhost ([127.0.0.1]:42185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLEQf-0007jU-9y for submit@debbugs.gnu.org; Mon, 08 Aug 2022 21:53:09 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:42884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLEQc-0007ix-3E for 57052@debbugs.gnu.org; Mon, 08 Aug 2022 21:53:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id B507663116; Tue, 9 Aug 2022 01:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1660009978; bh=ekXDdkFkV7f1lP45Ftmh7jGnro3q396k1Cwo3Fnyy5Q=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=iYovEPiBVizbKz8bYg/VjUaD3K6FT3/D2dIAsyDiEGDUlNBI+BAtQwLvRrr+HgyyH p1b62BhrlgCuPXwF4C43d9Url3YcnAJA7hqj/v6KW4bkXKpp2tsnxu4lldRFPGc1eu hjgiTx3CQYQArs7JnEXWQZGiheScNzjDjN7Yx9ikD5p/47vKWVEABPqSfMLmaXB2P8 INZ/hjxq8Hb07SQQNnvTBKfagS5OZkbz+qIrWndEKwIQ/W+zzDinesIzjX8YU5uzPu raTmCDq2R87h0w7BLvobJoHcoMf938r55Y6mEY440qqCNRzNjk0yL64zjrx/TUH/TN Osik96vgZkVlQ== X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3UEvXcCW3n08; Tue, 9 Aug 2022 01:52:58 +0000 (UTC) Received: from localhost (m90-129-208-143.cust.tele2.se [90.129.208.143]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id C3A2F62F88; Tue, 9 Aug 2022 01:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1660009978; bh=ekXDdkFkV7f1lP45Ftmh7jGnro3q396k1Cwo3Fnyy5Q=; h=From:Date:To:Cc:Subject:References:In-Reply-To:From; b=iYovEPiBVizbKz8bYg/VjUaD3K6FT3/D2dIAsyDiEGDUlNBI+BAtQwLvRrr+HgyyH p1b62BhrlgCuPXwF4C43d9Url3YcnAJA7hqj/v6KW4bkXKpp2tsnxu4lldRFPGc1eu hjgiTx3CQYQArs7JnEXWQZGiheScNzjDjN7Yx9ikD5p/47vKWVEABPqSfMLmaXB2P8 INZ/hjxq8Hb07SQQNnvTBKfagS5OZkbz+qIrWndEKwIQ/W+zzDinesIzjX8YU5uzPu raTmCDq2R87h0w7BLvobJoHcoMf938r55Y6mEY440qqCNRzNjk0yL64zjrx/TUH/TN Osik96vgZkVlQ== From: bokr@bokr.com Date: Tue, 9 Aug 2022 03:52:43 +0200 Message-ID: <20220809015243.GA19707@LionPure> References: <1MoJ5UI-6FMbpR2WSMjNbdVXZd4GisV-Dl1HPuLfgYLOQYl4Udg7HLNR8NDmZ47slyi4grIwH93xXL8xORLxUo4O80MR34q3wLXMmnktYH8=@pm.me> <8b93b5ce9f1c9caab7a65fcc672dddd24c7ad373.camel@ist.tugraz.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8b93b5ce9f1c9caab7a65fcc672dddd24c7ad373.camel@ist.tugraz.at> User-Agent: Mutt/1.10.1 (2018-07-13) 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=1660010050; 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=2eG9FR3Ia6gqbHBMccRnV01TOsovR8fzwsiIPrf8Lr4=; b=RTGOGa35n4cx9YPH2LwvLLbjNkdASxybsIstX8x1jHoYeKrXLsdEE6nzoTlymzoOwApfvF hlTBO5Yst2GzxatRff802ld1qdRV5+Zqevi3MVPiuVY6TQOWjbk54JgC+RKSsaETYIcAHQ 4GydV7rdhX5dmFo53ujHWPBpJgdcV5XNihund6eXPY2Sk5UOi3fBP2T3HwvSXK7GE02e7y ZjbIb0CzPOvf0jCuclaMH/nK72XTNzI+OQXKTs01s7JCpS0IQkEoZSn0psmf8yP6I6L3n2 KihwAR3ejwCBW6E1GQT6Izp+SNEDdWNfLq55yIiv0+/eI03JBOaD18L6xjNvFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660010050; a=rsa-sha256; cv=none; b=ABog/yJeWdqvLNDLf1SfDuQT4NMnIdDQYXCyINYA1MGxjgzH2/+211hJio9B2ki8C5DDPF oULWu5NlCcqKfpUgOy50BvBFXVkzCWTykmGkHJZmVHhpuTEAUkqaSGAx4BQw5sGPKISs/z /4EiLcL6LMoljq6+kuW+4sUvXcMw3qGtEaiIhY4V/c0LGVm9ek1FFPlRk+WaCPqL1xRNnU M6XWLkrS2YPd2tgB1Z33g4Qo6r1tBFWBonTATVwjh8INNazkQLG112wIU0ed4raFnB82uZ jMCsNphkEE4fxHTMeU+PdTBptVXUDwCOr30Darm8n0PKwXXTYM52pJ6tJkf/tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=iYovEPiB; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=iYovEPiB; dmarc=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: 1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=iYovEPiB; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=iYovEPiB; dmarc=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: 90E3D39CFB X-Spam-Score: 1.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: mEFTThd7AqfO Hi Liliana, On +2022-08-08 12:45:10 +0200, Liliana Marie Prikler wrote: > 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. > What would you advise if there's no battery power, or for some reason one is running on plug power only, for worriers that the bulding power might fail? I'd guess a power brick would power for some milliseconds and wonder if this is detectable, i.e., to do something at least to leave a goodbye world message somewhere if the machine was not suspended with sufficient state to resume after power restore? Buy a UPS, and don't go away long enough for that to run out? :) > Cheers > -- Regards, Bengt Richter