linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Tim Dijkstra <newsuser@famdijkstra.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>,
	debian-powerpc@lists.debian.org
Subject: Re: hibernate, suspend and s2both support
Date: Thu, 22 Mar 2007 15:31:56 +0100	[thread overview]
Message-ID: <20070322153156.6057ead7@commensaal.drs.p> (raw)
In-Reply-To: <1174262983.13027.58.camel@johannes.berg>

Hi,

I'm trying to get suspend-to-both (save state to disk, just like
hibernate, but then suspend to ram) to work on ppc.

In the end it is probably simpler than I imagined. Due to the work the
linux-pm guys did, it appears I only had to rip out all the evil hacks
some x86 machines need.

If someone could test the powerpc packages on debian by doing roughly
the following, that would be really nice:

a) Download:

http://www.famdijkstra.org/~tdykstra/debian/uswsusp/uswsusp_0.6~cvs20070202-2.diff.gz
http://www.famdijkstra.org/~tdykstra/debian/uswsusp/uswsusp_0.6~cvs20070202-2.dsc
http://www.famdijkstra.org/~tdykstra/debian/uswsusp/uswsusp_0.6~cvs20070202.orig.tar.gz

b) install debhelper (>= 5), pciutils-dev, docbook2x, po-debconf, libgcrypt-dev, zlib1g-dev, libsplashy0-dev

c) Unpack & Compile
$ dpkg-source -x uswsusp_0.6~cvs20070202-2.dsc
$ cd uswsusp-0.6~cvs20070202/
$ dpkg-buildpackage -us -uc -rfakeroot

d) Install
$ dpkg -i <the resulting deb>


The install process should update your initramfs if you use initramfs-tools.
You need an initramfs that includes the resume binary else it won't work.

For testing purposes it is best you don't have splashy installed or at least
disabled in /etc/uswsusp.conf.

Then run s2both. This should save to disk (you'll get some messages
reporting progress of that) and suspend-to-ram. Now wake up
your system.

If that went OK then run s2both and poweroff the hard way. Boot up again.

All this is of course on your own risk, but you knew that;)

As a bonus there is also a s2ram binary which won't do much more than
'echo mem > /sys/power/state' and ioctl(/dev/pmu,...) on older kernels.

grts Tim

      reply	other threads:[~2007-03-22 14:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070318010044.0b0bebf0@commensaal.drs.p>
2007-03-18  8:54 ` hibernate, suspend and s2both support Johannes Berg
2007-03-18 13:41   ` Tim Dijkstra
2007-03-18 14:37     ` Johannes Berg
2007-03-18 22:46       ` Tim Dijkstra
2007-03-19  0:09         ` Johannes Berg
2007-03-22 14:31           ` Tim Dijkstra [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070322153156.6057ead7@commensaal.drs.p \
    --to=newsuser@famdijkstra.org \
    --cc=debian-powerpc@lists.debian.org \
    --cc=johannes@sipsolutions.net \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).