Это старая версия документа!
Disable suspend and hibernate The following rule disables suspend and hibernate for all users. /etc/polkit-1/rules.d/10-disable-suspend.rules polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.suspend" || action.id == "org.freedesktop.login1.suspend-multiple-sessions" || action.id == "org.freedesktop.login1.hibernate" || action.id == "org.freedesktop.login1.hibernate-multiple-sessions") { return polkit.Result.NO; }
});