From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eN6/EQ3w8GLGAAAAbAwnHQ (envelope-from ) for ; Mon, 08 Aug 2022 13:14:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8DTYEQ3w8GKfpwAA9RJhRA (envelope-from ) for ; Mon, 08 Aug 2022 13:14:21 +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 DBACE275E7 for ; Mon, 8 Aug 2022 13:14:20 +0200 (CEST) Received: from localhost ([::1]:39508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oL0iB-0008Up-SI for larch@yhetil.org; Mon, 08 Aug 2022 07:14:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oL0Go-0000pR-I6 for bug-guix@gnu.org; Mon, 08 Aug 2022 06:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49577) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oL0Go-00043f-8i for bug-guix@gnu.org; Mon, 08 Aug 2022 06:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oL0Gn-0001lx-VM for bug-guix@gnu.org; Mon, 08 Aug 2022 06:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57052: elogind-service specifies a variable that's ignored by defualt Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 08 Aug 2022 10:46: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: Cairn , 57052@debbugs.gnu.org Received: via spool by 57052-submit@debbugs.gnu.org id=B57052.16599555236761 (code B ref 57052); Mon, 08 Aug 2022 10:46:01 +0000 Received: (at 57052) by debbugs.gnu.org; 8 Aug 2022 10:45:23 +0000 Received: from localhost ([127.0.0.1]:39326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL0GA-0001ky-Qg for submit@debbugs.gnu.org; Mon, 08 Aug 2022 06:45:23 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:24194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oL0G4-0001km-LL for 57052@debbugs.gnu.org; Mon, 08 Aug 2022 06:45:20 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4M1XsN3fLkz3wJl; Mon, 8 Aug 2022 12:45:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1659955512; bh=K7o4iRFvHqfdQ+E9wZj8TJdkQR1KXlzuxYuB4eMuc9M=; h=Subject:From:To:Date:In-Reply-To:References; b=k0vBpk//yv02zNW19AolUuHauh5x+8y4+Ypfhe4RR+fceXivOmvAfkZvy+Wcero4n 2TwlSQ8f3uuQBXRBUACKH0k2JqzEDiSrpwTJSZieiCgWiMrwi73ZkBOOV+LKaxpfGO ssmzZA3PJOPxQENWME6TvphGgRXMZkGhxU6BK/Sw= Message-ID: <8b93b5ce9f1c9caab7a65fcc672dddd24c7ad373.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Mon, 08 Aug 2022 12:45:10 +0200 In-Reply-To: <1MoJ5UI-6FMbpR2WSMjNbdVXZd4GisV-Dl1HPuLfgYLOQYl4Udg7HLNR8NDmZ47slyi4grIwH93xXL8xORLxUo4O80MR34q3wLXMmnktYH8=@pm.me> References: <1MoJ5UI-6FMbpR2WSMjNbdVXZd4GisV-Dl1HPuLfgYLOQYl4Udg7HLNR8NDmZ47slyi4grIwH93xXL8xORLxUo4O80MR34q3wLXMmnktYH8=@pm.me> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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=1659957261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=K7o4iRFvHqfdQ+E9wZj8TJdkQR1KXlzuxYuB4eMuc9M=; b=FfCxD11pwX+MBpWQA84omz/heLn3zcFePJ0lJMSiIgT+6yH/yFNdbDB795bDCFSe7mFr2V oOK4z2BpBCCJYU3jSL9nqaHP8NYGmQn1jOV9m/NtOjDs6P/qbWiF/B3zjXwMExwtHDQkqH eUYV0Ec7nzEyT2lqhNRO0yiE1NQCHttaDayfx8eKu9pT/6xwnC4Vkw0mZzyHCEwQgu3uMd N/kj3Wgm/hgtLNjA8/M5q1YYQFake04QOWsDpstew852gOoLE3KjjAL9HU3jngX9ow2ugk 8UVaKqmvrYsffGaOuWajmhqAeKn5HmzuQIsFXmTM2yImXwpxh8aaaH7BVXIPpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659957261; a=rsa-sha256; cv=none; b=q2FUVF20gjNLTIzQN52hF0VmQOx5zY3r2ibITqZgkUlJBqH897AJSl6QtUURdGZDUH8LYt wSCLLB6qAFr8gbkCN7ZiFudkCls7ICAM0Gxrjb4dCSq668L1SG+SMOesYv7NJJqguxyQvt yJzjzIIPSYKaP1wTB7DxKkByl9WiT1n+WthIxmKI7N8bKKDeXHa2sJemJs8PJORKcNoVK8 GEPnB9tXMTFJDtkmwfciGu9MEhuKXL5d8d4MDE1w6aznyk13xGOW85UK4j0h+RuuUdW8GF aUeGZI4NCVMl0hF/oVfhv0qONKwlLszwTLL457TyTE/XGB9Y0gj68O5IcF5EEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="k0vBpk//"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: 6.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b="k0vBpk//"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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: DBACE275E7 X-Spam-Score: 6.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8kHAsH54OWEI 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. Cheers