From: Celejar on
On Fri, 29 Jan 2010 18:52:37 +0000 (UTC)
T o n g <mlist4suntong(a)yahoo.com> wrote:

> On Fri, 29 Jan 2010 13:32:53 -0500, Celejar wrote:
>
> >> and s2disk preserves the system and shuts down fine.
> >>
> >> However, on turning on the machine, everything goes back to old routine
> >> and does a normal boot, instead of resuming from my suspension. What
> >> I've missed?
> >
> > It looks like the kernel / initrd isn't properly configured to use the
> > resume image. I'm not really expert on this stuff, but please post:
> >
> > a) your uswsusp.conf
>
> $ cat /etc/uswsusp.conf
> # /etc/uswsusp.conf(8) -- Configuration file for s2disk/s2both
> resume device = /dev/sda9
> compress = y
> early writeout = y
> image size = 1786029178
> shutdown method = shutdown
> #compute checksum = y

Don't really understand this stuff well, but have you tried the
'platform' method?
> I've double checked again that "resume device" and "image size" settings
> are appropriate:
>
> $ blkid | grep sda9
> /dev/sda9: LABEL="swap" UUID="05858bd5-e713-421a-a4c3-02fda431ec44"
> TYPE="swap"
>
> $ cat /proc/meminfo | grep MemTotal
> MemTotal: 3791672 kB
>
> > b) (relevant parts of) the dmesg / syslog from a boot after a suspend
>
> Hmm... I didn't spot anything relevant in /var/log/dmesg or /var/log/
> syslog. Could you post yours so that I know what to look for pleae?

I'll see if I can get any useful dmesg output next time I resume. You
mentioned running update-initramfs - forgive a dumb question, but did
you do that after configuring uswsusp?

I see that I have a file /etc/initramfs-tools/conf.d/resume, containing
the line:

RESUME=UUID=4b33b853-b245-4ec1-b649-c14f9a9b9907

Do you have such a file, with similar contents?

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: T o n g on
On Fri, 29 Jan 2010 14:10:19 -0500, Celejar wrote:

>> What does you kernel line look like in your lilo/grub1/grub2
>> configuration. I think it may be helpful to have a resume= argument
>> there somewhere.
>
> I actually don't have 'resume' arguments in my kernel lines,

yes, the resume= argument is only useful for suspend2/tuxonice.

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: T o n g on
On Fri, 29 Jan 2010 21:06:42 +0000, T o n g wrote:

> - > "Please recommend a good article/blog/site for me to follow".
>
> The best places are the included docs, ie,
>
> /usr/share/doc/uswsusp/README
> /usr/share/doc/uswsusp/README.Debian
> /usr/share/doc/uswsusp/README.s2ram-whitelist.gz

And the hibernate package will help to avoid all the quirks.

Question:

,-----
| If you are using the hibernate script with vanilla swsusp or
| Software Suspend 2, then it is strongly recommended that you
| install the script init.d/hibernate-cleanup.sh into
| /etc/init.d (or the relevant place on your distribution), and
| arrange for it to be run on boot from rcS.d, somewhere before
| enabling swap or clearing out /var/run, but after mounting your
| filesystems (/var in particular).
`-----

Any one knows what number should I prefix hibernate-cleanup.sh in rcS.d
to satisfy above?

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Celejar on
On Fri, 29 Jan 2010 21:06:42 +0000 (UTC)
T o n g <mlist4suntong(a)yahoo.com> wrote:

> On Fri, 29 Jan 2010 14:17:06 -0500, Celejar wrote:
>
> >> shutdown method = shutdown
> >
> > Don't really understand this stuff well, but have you tried the
> > 'platform' method?
>
> I'm able to shut down fine, so that irrelevant.

Right.

> >> $ blkid | grep sda9
> >> /dev/sda9: LABEL="swap" UUID="05858bd5-e713-421a-a4c3-02fda431ec44"
> >> TYPE="swap"
> > . . .
> > I see that I have a file /etc/initramfs-tools/conf.d/resume, containing
> > the line:
> >
> > RESUME=UUID=4b33b853-b245-4ec1-b649-c14f9a9b9907
> >
> > Do you have such a file, with similar contents?
>
> Ok, just created one (don't know if it is necessary though), then re-
> create initramfs:
>
> $ cat /etc/initramfs-tools/conf.d/resume
> RESUME=UUID=05858bd5-e713-421a-a4c3-02fda431ec44
>
> % update-initramfs -u
> update-initramfs: Generating /boot/initrd.img-2.6.31-grml64
>
> $ tail -3 /boot/grub/menu.lst
> title os1 :: Debian kernel 2.6.31-grml64
> kernel /boot/vmlinuz-2.6.31-grml64 root=/dev/sda6 ro vga=normal
> initrd /boot/initrd.img-2.6.31-grml64
>
> Hooray!!!
>
> It resumes fine!!!
>
> The only difference is the /etc/initramfs-tools/conf.d/resume file.
>
> Thanks a lot, Celejar.

Glad we got it sorted out, but I wonder why that file wasn't
automatically created. I'm pretty sure that I never had to do it
manually.

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
First  |  Prev  | 
Pages: 1 2 3
Prev: eth0 or eth1
Next: Recording website audio