GNU bug report logs - #57052
elogind-service specifies a variable that's ignored by defualt

Previous Next

Package: guix;

Reported by: Cairn <cairn <at> pm.me>

Date: Mon, 8 Aug 2022 07:20:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#57052: closed (elogind-service specifies a variable that's
 ignored by defualt)
Date: Wed, 10 Aug 2022 04:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 10 Aug 2022 00:38:34 -0400
with message-id <871qton25x.fsf <at> gmail.com>
and subject line Re: bug#57052: elogind-service specifies a variable that's ignored by defualt
has caused the debbugs.gnu.org bug report #57052,
regarding elogind-service specifies a variable that's ignored by defualt
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
57052: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57052
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Cairn <cairn <at> pm.me>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: elogind-service specifies a variable that's ignored by defualt
Date: Sun, 07 Aug 2022 23:29:30 +0000
[Message part 3 (text/plain, inline)]
"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.

[1]: https://www.freedesktop.org/software/systemd/man/logind.conf.html
[signature.asc (application/pgp-signature, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Cairn <cairn <at> pm.me>
Cc: liliana.prikler <at> ist.tugraz.at, 57052-done <at> debbugs.gnu.org,
 Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: bug#57052: elogind-service specifies a variable that's ignored
 by defualt
Date: Wed, 10 Aug 2022 00:38:34 -0400
Hello,

Cairn <cairn <at> pm.me> writes:

> Would it not still be explicit if variables that should go unspecified
> were written out, but not given a value? Maybe I'm misunderstanding
> the point of explicit values though.

I made it *unspecified* in 59ee837d8b, given this service config doesn't
yet use 'define-configuration' that would have allowed for a proper
maybe-value.

Tested to work on a X200 and pushed!

Closing, at last.

Thanks,

Maxim


This bug report was last modified 2 years and 346 days ago.

Previous Next


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