pm-suspend not restoring /sys/power/disk with /bin/dash

Bug #1394388 reported by Matthias Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 14.04LTS
pm-utils 1.4.1-13ubuntu0.1

When issuing the pm-suspend command, the scripts set the HIBERNATE_MODE in /sys/power/disk to "suspend".
There is some shell magic to save the previous setting in variable HIBERNATE_MODE_SAVE, but this fails under
the default shell /bin/dash (works correctly with /bin/bash).

Effect: if you use pm-suspend once, the effective HIBERNATE_MODE in /sys/power/disk stays in "suspend", and
any subsequent pm-hibernate will also just do a suspend instead of "platform" or "shutdown".

Revision history for this message
Matthias Ferdinand (mf+ubuntu1) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "escape special chars in parameter expansion for HIBERNATE_MODE_SAVE" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
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.