chiark / gitweb /
shared/sleep-config: return a custom message when not enough swap for hibernation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 11 Apr 2018 06:51:06 +0000 (08:51 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitadeb587a08c5f314cb74ccd31128e8dece59a945
tree011e6c027a19abc0b341b271ea6733cb89ef8591
parent797ec1bf0caeea2b72de01f8082bba2d785a20e4
shared/sleep-config: return a custom message when not enough swap for hibernation

$ sudo swapoff -av
swapoff /dev/vda4
$ sudo systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation

Fixes #6729.
src/login/logind-dbus.c
src/shared/sleep-config.c