← Back to team overview

dx-packages team mailing list archive

[Bug 1232814] Re: Hibernate option is missing from menu in 13.10 even after trying to re-enable

 

Hi,

1) Weird enough the method by Jeffery To, namely the editing of
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
to include the logind polkit authorization works in a kubuntu machine
and is persistent here... So it fails on my ubuntu laptop but it works
on my kubuntu laptop.

Here

gdbus call --system --dest org.freedesktop.login1 --object-path
/org/freedesktop/login1 --method
org.freedesktop.login1.Manager.CanHibernate

returns 'Yes', not 'Challenge' as on the Ubuntu machine.

2) to Shiraz Dindar. Thanks to the pointer to the not-actually-hybrid-
suspend-mode. That's quite interesting! However, I'm a bit scared by it.
I wonder what happens if I suspend and the laptop decides to switch on
to hibernate, doing tons of disk activity, when I am on my Vespa on the
infamous 'pavé' (sort of quite irregular stone surface) present in many
Italian roads...

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-session in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1232814

Title:
  Hibernate option is missing from menu in 13.10 even after trying to
  re-enable

Status in Ubuntu Documentation:
  Confirmed
Status in “indicator-session” package in Ubuntu:
  Confirmed

Bug description:
  I upgraded from raring to saucy on my notebook, where hibernate was
  enabled and working fine. Now the hibernate option is missing. I
  followed the instructions on how to reenable hibernate
  (https://help.ubuntu.com/13.10/ubuntu-help/power-hibernate.html) but
  the option is still missing. Hibernating from terminal via s2disk
  works.

  File exists with proper content and permissions:
  $ sudo ls -l /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
  -rw-r--r-- 1 root root 111 Sep 29 18:52 /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

  $ sudo cat /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
  [Re-enable hibernate by default]
  Identity=unix-user:*
  Action=org.freedesktop.upower.hibernate
  ResultActive=yes

  -----

  Solution found by Jeffery To (jefferyto) in comment #13 to enable
  hibernate menuentry:

  File /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-
  hibernate.pkla needs to contain:

      [Re-enable hibernate by default in upower]
      Identity=unix-user:*
      Action=org.freedesktop.upower.hibernate
      ResultActive=yes

      [Re-enable hibernate by default in logind]
      Identity=unix-user:*
      Action=org.freedesktop.login1.hibernate
      ResultActive=yes

  Then reboot and run 'killall indicator-session-service' in terminal
  from your session. For background see #13.

  However this is not persistent across reboots.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-docs/+bug/1232814/+subscriptions


References