Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 233761 - Failure to suspend on PowerBook
Failure to suspend on PowerBook
Product: Fedora
Classification: Fedora
Component: pm-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Depends On:
Blocks: FC7Blocker
  Show dependency treegraph
Reported: 2007-03-24 15:08 EDT by David Woodhouse
Modified: 2015-03-04 20:18 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-27 19:59:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Woodhouse 2007-03-24 15:08:23 EDT
/usr/sbin/pm-suspend fails on my PowerBook, with the following complaint:
Error: kernel cannot suspend to ram.

Commenting out the offending check makes it work, since it talks to the PMU
Comment 1 Will Woods 2007-03-24 15:14:58 EDT
Really? That's it? I had assumed the kernel actually wasn't capable of
suspending to RAM on PMU-using machines.

The check you're referring to, I assume, is this:

        if ! grep -q mem /sys/power/state ; then
            echo "Error: kernel cannot suspend to ram." 1>&2
            exit 1

Is there an equivalent sysfs file for PMU state/capabilities? Maybe the kernel
needs a simple patch to export the PMU info in /sys/power/state?
Comment 2 David Woodhouse 2007-03-24 15:25:43 EDT
The kernel has been suspending to RAM on PMU-based machines for _much_ longer
than it's been doing so with ACPI crap.

There is work afoot to make the kernel suspend/resume using the "generic" stuff
in /sys/power/state, but it isn't yet ready -- it isn't just a simple patch,
because that "generic" code was fairly poorly-designed.

I don't believe there's a sysfs file you can query to check if the machine can
suspend. Trust HAL; it has a special case. 
Comment 3 David Woodhouse 2007-03-24 20:06:54 EDT
Actually I have some working patches which make /sys/power/state work. I'll look
at putting them into the rawhide kernel.
Comment 4 David Woodhouse 2007-03-27 19:59:06 EDT
The kernel now lets you use /sys/power/state.

Note You need to log in before you can comment on or make changes to this bug.