/etc/acpi/hibernate.sh should bail out if /sys/power/resume is 0:0

Bug #32150 reported by Paul Sladen
6
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Invalid
Medium
Unassigned
powermanagement-interface (Ubuntu)
Incomplete
Undecided
Paul Sladen

Bug Description

$ sudo /etc/acpi/hibernate.sh
DHCPRELEASE on eth1 to 10.0.0.3 port 67
 * Shutting down ALSA... [ ok ]
/etc/acpi/hibernate.sh: line 28: echo: write error: No such device

Which would be because:

$ cat /sys/power/resume
0:0

Revision history for this message
Paul Sladen (sladen) wrote :

It needed:

$ sudo mkswap -v1 /dev/sda7
Setting up swapspace version 1, size = 1003446 kB
no label, UUID=896b58d1-9565-489c-a7df-fa6416b4d9b9
$ sudo swapon -a
$ echo -n 8:7 | sudo tee /sys/power/resume

and then:

  resume=/dev/sda7

on the kernel commandline, I guess a round of update-initramfs will get this updated.

Revision history for this message
Paul Sladen (sladen) wrote :

Indeed,

  $ grep RESUME /etc/mkinitramfs/initramfs.conf
  RESUME=/dev/sda7

then:

  sudo update-initramfs -u

and from then on it works.

Matt Zimmerman (mdz)
Changed in acpi-support:
status: Unconfirmed → Needs Info
Revision history for this message
Paul Sladen (sladen) wrote :

Possibly 'pmi' should bail even earlier. It currently does in the case that the kernel has been updated, and we could do the same thing for a bust/empty resume device.

Changed in powermanagement-interface:
assignee: nobody → sladen
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for acpi-support (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Jeff Anderson (jander99) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in powermanagement-interface (Ubuntu):
status: New → Incomplete
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

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.