Bug 233761 - Failure to suspend on PowerBook
Summary: Failure to suspend on PowerBook
Alias: None
Product: Fedora
Classification: Fedora
Component: pm-utils (Show other bugs)
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact:
Depends On:
Blocks: FC7Blocker
TreeView+ depends on / blocked
Reported: 2007-03-24 19:08 UTC by David Woodhouse
Modified: 2015-03-05 01:18 UTC (History)
1 user (show)

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

Attachments (Terms of Use)

Description David Woodhouse 2007-03-24 19:08:23 UTC
/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 19:14:58 UTC
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 19:25:43 UTC
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-25 00:06:54 UTC
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 23:59:06 UTC
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.