How to enable hibernation in 15.04?

I did в clean install of 15.04, tried to enable hibernation per instruction from http://ubuntuhandbook.org/index.php/2014/10/enable-hibernate-option-in-ubuntu-14-10-unity/

but it works only if I boot with upstart and not with systemd.

How хан I get it to work with systemd?

EDIT> After installing hibernate package I хан run it from the конечный, but still it is not available in the shutdown меню.

24
задан 28 June 2015 в 13:24

2 ответа

  1. Создают следующий файл: /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

  2. Копия / вставляют следующее содержание в него:

    [Enable hibernate by default in upower]
    Identity=unix-user:*
    Action=org.freedesktop.upower.hibernate
    ResultActive=yes
    
    [Enable hibernate by default in logind]
    Identity=unix-user:*
    Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
    ResultActive=yes
    
  3. Выходят из системы и проверяют, что Вы видите быть в спящем режиме пункт меню на экране входа в систему, сделайте то же, как только Вы вошли в систему.

причина, вышеупомянутый ручной шаг должен быть сделан, состоит в том, что они, кажется, отключили, в спящем режиме по умолчанию в Ubuntu 15.04.

17
ответ дан 23 November 2019 в 01:21

Ответ, данный Jinesh Choksi для создания файла /etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla, кажется, не работает на меня, когда я возобновляю спящий режим, это просто выполняет нормальную начальную загрузку. Наилучшим вариантом, который я нашел, является классик pm-hibernate, который работает без проблем:

sudo pm-hibernate

у Вас также есть опция гибрида, приостанавливают / в спящем режиме. Из страниц справочника:

pm-suspend-hybrid
    Hybrid-suspend is the process where the system does everything it needs to hibernate, but suspends instead of shutting down. This means
    that your computer can wake up quicker than for normal hibernation if you do not run out of power, and you can resume even if you run
    out of power. s2both(8) is an hybrid-suspend implementation.
1
ответ дан 23 November 2019 в 01:21

Другие вопросы по тегам:

Похожие вопросы: