Инструменты пользователя

Инструменты сайта


запретить_suspend_и_hibernate_fedora_20

Это старая версия документа!


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;
  }

});

запретить_suspend_и_hibernate_fedora_20.1424728893.txt.gz · Последнее изменение: 2015.02.23 22:01 — admin