Bug#749832: systemd: ignores /run/do-not-hibernate, hibernates after kernel update

Michael Biebl biebl at debian.org
Fri Jul 20 23:31:02 BST 2018


On Thu, 26 Jun 2014 12:41:44 +0200 Zbigniew
=?utf-8?Q?J=C4=99drzejewski-Szmek?= <zbyszek at in.waw.pl> wrote:
> On Fri, May 30, 2014 at 09:00:12PM -0700, Nikolaus Rath wrote:
> > On 05/30/2014 10:46 AM, Michael Biebl wrote:
> > > Am 30.05.2014 18:34, schrieb Nikolaus Rath:
> > >>>
> > >>> The problem with simply doing nothing on hibernate when
> > >>> /run/do-not-hibernate exists, is that this is also not visible to the
> > >>> user since there there is no API to communicate that to the user why
> > >>> hibernate did not succeed.
> > >>
> > >> Well, in my case I'm calling 'systemctl hibernate' from the command
> > >> line, so a simple message to the console would do.
> > > 
> > > Do you want to work on such a patch?
> > > You'd have to implement this check in systemd (or logind) and then
> > > communicate the failure reason back to the caller.
> > > That requires updates to the D-Bus interface etc.
> > 
> > Sorry, no. I'm not familiar with D-Bus at all. I'll just create wrapper
> > script for systemctl hibernate that does the check, and I assume that's
> > not quite suitable for inclusion in the Debian package...
> It'd be easier and more worthwhile I think, to work from the other and
> and instruct the packaging scripts to also take a hibernation inhibitor.
> This would have the advantage that other tools which already know how
> to deal with inhibitor locks would be able to notify the user etc.
> Something like 'systemd-inhibit --what sleep sleep 10000', but smarter.
> It seems that the inhibitor api is not flexible enough here, though,
> so some upstream discussion would be required.

Not sure if the systemd-inhibit API would be the right tool for this
job. After upgrading the kernel, the system could be running days or
weeks until an actual hibernate is requested. You'd need a process with
an unbounded run time which just sits there forever.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180721/126e3718/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list