ubuntu-docs - "How do I hibernate my computer?" doesn't accomplish it's task

Bug #1575466 reported by Enkouyami
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-docs (Ubuntu)
Fix Released
Medium
Gunnar Hjalmarsson

Bug Description

On https://help.ubuntu.com/stable/ubuntu-help/power-hibernate.html & https://help.ubuntu.com/16.04/ubuntu-help/power-hibernate.html it states that creating a file /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla with the following contents will enable hibernate on the menus:
[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;org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes

That will only work if the entries [Disable hibernate by default in upower] & [Disable hibernate by default in logind] are commented out or removed from /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla.

The entries in /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla does not supersede the entries in /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Revision history for this message
Enkouyami (furyhamster) wrote :

Also should the logind entry in /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla be so short compared to the one in /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla ?

tags: added: rls-x-incoming
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Sebastien: Is this actually a polkit bug, or is there a need to change the documentation?

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Gunnar, I think that logind/systemd changed and the permissions list needs to be updated like it was done on
http://launchpadlibrarian.net/185739824/policykit-desktop-privileges_0.18_0.19.diff.gz

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks. Added a policykit-desktop-privileges bug task.

Revision history for this message
Sebastien Bacher (seb128) wrote :

I don't think there is any change needed in the desktop privileges definition?

Changed in policykit-desktop-privileges (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

No, there isn't, Sebastien. I misunderstood your hint above; thanks for explaining on IRC.

On 2016-04-27 07:22, Enkouyami wrote:
> Also should the logind entry in
> /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
> be so short compared to the one in
> /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla ?

No, they should be identical. If they are, it works without editing /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla (which is not recommended, since the file is owned by the policykit-desktop-privileges package, and changes would be overwritten at next update of that package).

I just committed the change. Thanks for reporting this bug, Enkouyami!

Changed in ubuntu-docs (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Medium
status: New → Fix Committed
no longer affects: policykit-desktop-privileges (Ubuntu)
no longer affects: ubuntu-docs
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-docs - 16.10.1

---------------
ubuntu-docs (16.10.1) yakkety; urgency=medium

  * scripts/translation-test-build.sh:
    - Check that required packages are installed.
  * Updates due to switch from "Software" to "Ubuntu Software"
    (LP: #1570479).
  * nautilus-list.page:
    - Less specific description of column "Modified" (LP: #1572304).
  * Extra update of ubuntu-help.pot (LP: #1573249, LP: #1573251).
  * video-dvd-restricted.page:
    - Updated suggested packages (LP: #1201904).
    - New guidance on how to install libdvdcss2 (LP: #1571208).
  * power-hibernate.page:
    - Code for re-enabling hibernate corrected (LP: #1575466).
  * mouse-disabletouchpad.page:
    - Deleted, since the feature is enabled by default now, and the
      GUI control has been dropped (LP: #1575911).
  * disk-check.page:
    - Updated to correspond to gnome-disk-utility 3.18 (LP: #1573025).
  * net-chat-empathy.page:
    - Updated since Empathy is no longer installed by default
      (LP: #1579394).
  * files-disc-write.page:
    - Updated since Brasero is no longer installed by default.
  * numeric-keypad.page, shell-guest-session.page:
    - Suggest lightdm configuration in /etc instead of /usr/share.
  * net-wireless-troubleshooting-initial-check.page:
    - Replace nm-tool (no longer available) with nmcli (LP: #1581846).
  * Updated ubuntu-help.pot.
  * New Kabyle (kab) translation.
  * The latest translations exported from Launchpad (LP: #1592162).
  * debian/control: Bump Standards-Version to 3.9.8.
  * Bump version to 16.10 / yakkety.

  [ Milo Casagrande ]
  * Make Italian screenshots 250x200.

  [ Doug Smythies ]
  * unity.png, unity-windows.png, unity-overview.png:
    - Updated again due to new yet old Ubuntu Software icon
      (LP: #1570479).

 -- Gunnar Hjalmarsson <email address hidden> Fri, 17 Jun 2016 00:11:00 +0200

Changed in ubuntu-docs (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.