* Implement power management (suspend, hibernate, resume) in Shepherd?
[not found] <20150328205904.GB8346@venom>
@ 2017-07-04 0:45 ` Mekeor Melire
2017-07-04 19:31 ` Mark H Weaver
2017-07-09 12:15 ` Ricardo Wurmus
0 siblings, 2 replies; 4+ messages in thread
From: Mekeor Melire @ 2017-07-04 0:45 UTC (permalink / raw
To: help-guix
I'm bumping this old thread:
https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00757.html
because I'd like to discuss if it still makes sense to implement power
management, i.e. suspend (to memory=RAM), hibernate (to (hard) disk) and
resume in GNU Shepherd. As far as I can see, Shepherd currently only
provides ‘halt’ and ‘reboot’.
As far as I understand, currently GuixSD uses elogind (“systemd
project's ‘logind’, extracted to a standalone package”) to suspend,
hibernate and resume when some events happen, like pressing the
suspend-key etc.
Is there any nice way to suspend GuixSD by command? (I didn't yet try
out ‘echo mem > /sys/power/state’.) Is it still desirable that Shepherd
itself could get this job done?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Implement power management (suspend, hibernate, resume) in Shepherd?
2017-07-04 0:45 ` Implement power management (suspend, hibernate, resume) in Shepherd? Mekeor Melire
@ 2017-07-04 19:31 ` Mark H Weaver
2017-07-08 22:09 ` Ludovic Courtès
2017-07-09 12:15 ` Ricardo Wurmus
1 sibling, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2017-07-04 19:31 UTC (permalink / raw
To: Mekeor Melire; +Cc: help-guix
Mekeor Melire <mekeor.melire@gmail.com> writes:
> As far as I understand, currently GuixSD uses elogind (“systemd
> project's ‘logind’, extracted to a standalone package”) to suspend,
> hibernate and resume when some events happen, like pressing the
> suspend-key etc.
>
> Is there any nice way to suspend GuixSD by command? (I didn't yet try
> out ‘echo mem > /sys/power/state’.)
"loginctl suspend" will do it, optionally with "-i" added to ignore
inhibitors. See "loginctl --help" for more.
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Implement power management (suspend, hibernate, resume) in Shepherd?
2017-07-04 19:31 ` Mark H Weaver
@ 2017-07-08 22:09 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-07-08 22:09 UTC (permalink / raw
To: Mark H Weaver; +Cc: help-guix
Mark H Weaver <mhw@netris.org> skribis:
> Mekeor Melire <mekeor.melire@gmail.com> writes:
>
>> As far as I understand, currently GuixSD uses elogind (“systemd
>> project's ‘logind’, extracted to a standalone package”) to suspend,
>> hibernate and resume when some events happen, like pressing the
>> suspend-key etc.
>>
>> Is there any nice way to suspend GuixSD by command? (I didn't yet try
>> out ‘echo mem > /sys/power/state’.)
>
> "loginctl suspend" will do it, optionally with "-i" added to ignore
> inhibitors. See "loginctl --help" for more.
Even simpler: closing my laptop’s lid puts it into suspend-to-memory
mode.
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Implement power management (suspend, hibernate, resume) in Shepherd?
2017-07-04 0:45 ` Implement power management (suspend, hibernate, resume) in Shepherd? Mekeor Melire
2017-07-04 19:31 ` Mark H Weaver
@ 2017-07-09 12:15 ` Ricardo Wurmus
1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2017-07-09 12:15 UTC (permalink / raw
To: Mekeor Melire; +Cc: help-guix
Mekeor Melire <mekeor.melire@gmail.com> writes:
> Is there any nice way to suspend GuixSD by command? (I didn't yet try
> out ‘echo mem > /sys/power/state’.) Is it still desirable that Shepherd
> itself could get this job done?
My librebooted laptop sometimes … breaks in weird ways disabling all
hotkeys, including the switch that is used to suspend. Whenever this
happens and I cannot reboot I use
echo mem | sudo tee /sys/power/state
This works fine to suspend the laptop. It does not lock it, though.
Usually, though it is enough to close the lid of this X200S.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-09 12:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20150328205904.GB8346@venom>
2017-07-04 0:45 ` Implement power management (suspend, hibernate, resume) in Shepherd? Mekeor Melire
2017-07-04 19:31 ` Mark H Weaver
2017-07-08 22:09 ` Ludovic Courtès
2017-07-09 12:15 ` Ricardo Wurmus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).