Feedback

type to search

how to debug hibernate failures

Asked by , Edited by Fernando C. Estrada [ Admin ]

I’m using debian squeeze on an MSI Wind U100 netbook.


The behaviour of resuming from hibernate is rather erratic… sometimes it works, sometimes the netbook reboots to a fresh start after (trying) loading the hibernate image.

Where to find a comprehensive debug guide explaining where to look for clues about what’s wrong?

NN comments
casaschi
-

the original issue seems finally solved by kernel 2.6.32-31

or Cancel

4 answers

3

whizse [ Editor ]

http://www.mjmwired.net/kernel/Documentation/power/basic-pm-debugging.txt


You’ll also most likely want to try the latest and greatest, linux 2.6.37 (or possibly even an rc) to see if this problem already have been solved. If you’re still having trouble, file a bug upstream https://bugzilla.kernel.org/

If this is something that has worked reliably in the past, you have another option. Bisecting the kernel to find out what caused it to break.

I also noticed that there's an open bug report about a similar problem:
http://bugs.debian.org/611099 But maybe you were the one who filed it? :)
or Cancel
0

anonymous

thanks for the info

the bug is not mine, but looks very similar indeed

I tried the debugging instructions you posted, but without conclusive results.
All test modes work ok.
Booting with init=/bin/bash then hibernate works ok, even trying hibernate several times in a row.

Booting with init=/bin/bash and then adding modules with modprobe… then the behaviour is erratic… the same module (or combination of modules) let me do hibernate/resume for a couple of times in a row then suddenly fails. With such a sporadic behaviour I could not isolate any faulty module.

I’ll have to wait for a kernel update in squeeze and hope for the best :–(
NN comments
chem-bla-ics
-

Replies to answers should not be listed as separate answers, but as comment. Alternatively, you can extend your question to elaborate on details…

or Cancel
0

Anonymous

Thanks about the hint of downgrading the kernel to 2.6.32-29… sorry for my ignorance, but what is the proper way to downgrade to that version of the kernel (I got my current kernel version when I installed squeeze few days ago) and how to prevent that automatic updates “upgrades” me again to the non-working version?

NN comments
vp1
-

hi, i’m just going to describe how i did it (i’m not sure if this is the completely debian-way though)

i’m sorry this is a bit unreadable, i don’t why it looks so funky?!? i wanted just plain text…

first read here about unpatching the kernel:

http://kernel-handbook.alioth.debian.org/ch-common-tasks.html

(these commands should do in our case:

 # apt-get install linux-source-2.6.32

 $ tar jxf /usr/src/linux-source-2.6.32.tar.bz2

 # apt-get install linux-patch-debian-2.6.32

 $ cd linux-source-2.6.32

 $ /usr/src/kernel-patches/all/2.6.32/apply/debian 29

)

btw, i used aptitude instead of apt-get.

then, see this on how to compile your kernel (steps 3 to 5):

http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html

to create initrd image i did:

cd /boot

mkinitramfs -o initrd.img-2.6.32 2.6.32

to modify grub2:

vi /etc/grub.d/40_custom

there just copy one of the entries and point linux and initrd to your new kernel files, and of course change the name to something

update-grub2

that’s what i did. i guess it should hold your version, but i’m not sure though – don’t have many experience with that. maybe check on the web for that (e.g. surf on aptitude, apt-get, grub2,…) and if you do, let me know if you find something…

or Cancel

Your answer

You need to join Debian to complete this action, click here to do so.