logind: when we need to execute a sleep operation we don't support, fall back to...
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 20:44:36 +0000 (21:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 20:50:24 +0000 (21:50 +0100)
commitc282daed6818ce89a981a15f92e1dbb6bdd05433
tree90e8a8eec202000de280e5f74f54527065dca866
parent14c4da2ffecd7f9c0b27c5de11093bd2cb40eac4
logind: when we need to execute a sleep operation we don't support, fall back to suspend

If suspend-then-hibernate, hybrid-sleep or plain hibernation is
supposed to be execute due to a key press/lid switch but is not
supported, automatically fall back to plain suspend (and log about it).

Fixes: #10558
src/login/logind-action.c