You are not logged in.

#1 2011-04-02 03:25:11

Kukunin
Member
Registered: 2011-04-02
Posts: 6

Hibernation

Hello. Today I've observed that hibernation doesn't work. Notebook goes to hibernation fine, but freezes after resuming ( after snapshot is read 100%  ). Simple blank screen, without any reaction on key inputs etc. Ctrl + Alt + Del, ALt + Sysrq + B doesn't works, but caps led doesn't blinks. I should turn off notebook by power button, and it loads again ( without hibernation ). However, s2ram works fine. I've tried hibernation with X, without X, from only bash ( init=/bin/bash in grub ), but nothing helps.

My hibernation script is uswsusp. This is /etc/suspend.conf

snapshot device = /dev/snapshot
resume device = /dev/disk/by-uuid/aa994c3f-946c-465f-b1c9-a7bb425e6922
resume pause = 20
shutdown method = platform
compute checksum = y
compress = y

This is HOOK line in /etc/mkinitcpio.conf

base udev autodetect pata scsi sata uresume filesystems

This is /etc/pm/config.d/module

HIBERNATE_MODE="platform"
SLEEP_MODULE="uswsusp"

I've tried to change shutdown method from platform to shutdown, but nothing.
I can't debug it, because I can't find anything in /var/log. I don't know, is it kernel panic or not?
I've tried to remove uswsusp, and use native kernel method ( I've changed uresume to resume HOOK too ), but I have same symptoms. The one difference, that when netbook freezes after native kernel hibernation resuming, Caps LED is blinking ( Kernel Panic, i know ). But I can't find anything in logs.

My steps betweens worked and nonworked hibernations are increasing RAM from 2gb to 4gb and moving from i686 to x86_64 architecture. My SWAP partition only 2gb, but I've tried with separate swapfile ( 4gb sized ), but it doesn't work too.

I have 2.6.38-ARCH kernel from testing repo. I have Acer Aspire 1551, with ATI Radeon HD 4225 ( I'm using open source drivers ).
Say me, what information I could provide.

Offline

#2 2011-04-02 03:33:01

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Hibernation

Try using the kernel from [core] aka 2.6.37.x. IIRC, it's related to 2.6.38.

Offline

#3 2011-04-02 04:14:14

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Hibernation

JokerBoy wrote:

Try using the kernel from [core] aka 2.6.37.x. IIRC, it's related to 2.6.38.

And 2.6.37.6 as well, if I'm reading some of the MLs I'm on correctly. Try 2.6.37.5.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2011-04-02 22:11:39

eduardo.eae
Member
From: Reconquista - Argentina
Registered: 2010-01-24
Posts: 68

Re: Hibernation

2.6.37.6 and 2.6.38.2 in x86_64 have this bug.
Here is some info about it

Last edited by eduardo.eae (2011-04-02 22:12:58)

Offline

#5 2011-04-03 07:59:58

Kukunin
Member
Registered: 2011-04-02
Posts: 6

Re: Hibernation

yes, I can confirm this. I've made downgrade to 2.6.37.5 version, and hibernation is working

Offline

#6 2011-04-09 20:27:01

avikos
Member
Registered: 2010-08-23
Posts: 2

Re: Hibernation

yes.  today I had the same situation ..
I have kernel 2.6.38-2 and hibernation dosen't work.. works only suspend.
After power-on I can see only how CapsLock blinks.

Offline

#7 2011-04-10 03:35:56

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

Re: Hibernation

I can confirm that too. On a thinkpad T60, intel 945GM, 2.6.38-2 fails too resume from hibernate (same caps lock blinking after reading the resume image), while 2.6.37-5 resumes well.
Thanks jokerboy and ngoonee.
edit: x86_64 here

Last edited by frigaut (2011-04-10 03:36:43)


Archer since 03/2009 - AUR packages

Offline

#8 2011-04-10 08:55:37

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Hibernation

You have to apply this patch to make the hibernation work again on 2.6.38

Offline

#9 2011-04-10 09:41:45

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Hibernation

I reported this bug here, but from the mailing list it seems they'll be moving 2.6.38.2 anyway. I hope 2.6.38.3 will be out soon.
2.6.37.5 and 2.6.38.1 are not affected so you can use either of those in the meantime.

Offline

#10 2011-04-10 13:56:03

avikos
Member
Registered: 2010-08-23
Posts: 2

Re: Hibernation

laloch wrote:

You have to apply this patch to make the hibernation work again on 2.6.38

Thank you for the link.. It really helped me smile

Offline

#11 2011-04-14 05:46:11

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Hibernation

laloch wrote:

You have to apply this patch to make the hibernation work again on 2.6.38

Can someone please quickly explain how such a patch is actually applied?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#12 2011-04-14 06:37:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,728

Re: Hibernation

It is non-trivial.

You will be changing arch/x86/kernel/setup.c in the kernel source tree.  See man patch for how to apply a diff output to an existing file to incorporate those changes to make an updated file.
This then turns it to an exercise in building and installing a kernel.

The best way to do this (IMHO - best means high probability of success) entails:

  • Install abs (if you have not done this already)

  • Copy the kernel package to a working directory of your choice.

  • Optional - Do a makepkg to ensure everything works (At this point it is just like building an AUR package by hand)

  • Copy the patch into the working directory

  • Modify the PKGBUILD to incorporate the patch after unpack and before compile

  • Perform a makepkg

  • Do a pacman -U on the resulting package.

  • Profit smile  (I could not resist)

I've seen your posts, I know you'll be able to do it smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#13 2011-04-14 08:35:24

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Hibernation

A similar approach step by step:

$ sudo pacman -S abs
$ sudo abs
$ cp -a /var/abs/core/kernel26 .
$ cd kernel26
$ makepkg -o
$ wget "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=patch;h=4da9484bdece39ab0b098fa711e095e3e9fc8684" -O patch.diff
$ patch -d src/linux-2.6.38 -p1 < patch.diff
$ makepkg -es
$ sudo pacman -U kernel26-2.6.38.2-1-x86_64.pkg.tar.xz
$ cd ..
$ rm -r kernel26

If you don't have/use/like sudo, you have to run the commands beginning with sudo as root.

Offline

#14 2011-04-15 08:02:39

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Hibernation

laloch wrote:

A similar approach step by step:

$ sudo pacman -S abs
$ sudo abs
$ cp -a /var/abs/core/kernel26 .

To get only kernel26's PKGBUILD in the current directory:

ABSROOT=. abs core/kernel26

Offline

#15 2011-04-15 10:26:45

rubenvb
Member
Registered: 2011-01-14
Posts: 99

Re: Hibernation

I'm also having resume problems (but I get flashing caps lock ?= kernel panic after the resume image has been loaded 100%)).

Has this been patched in 2.6.38.3? It was released yesterday, so it should be in Arch soon, right :-)?

Offline

#16 2011-04-15 10:58:54

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Hibernation

rubenvb wrote:

Has this been patched in 2.6.38.3? It was released yesterday, so it should be in Arch soon, right :-)?

No, the patch doesn't seem to make it into the 2.6.38.3 :(

Offline

#17 2011-04-15 11:06:22

rubenvb
Member
Registered: 2011-01-14
Posts: 99

Re: Hibernation

laloch wrote:

No, the patch doesn't seem to make it into the 2.6.38.3 sad

Thanks. Is there any way to downgrade the arch kernel easily to 2.6.38.1 (with matching nvidia modules) or should I get the -lts kernel?

Offline

#18 2011-04-15 11:13:49

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Hibernation

There's a nice article about downgrading in general in the wiki here.

Offline

#19 2011-04-15 11:17:04

rubenvb
Member
Registered: 2011-01-14
Posts: 99

Re: Hibernation

laloch wrote:

There's a nice article about downgrading in general in the wiki here.

<Slaps himself over the forehead> Thanks, should've checked there first. I keep forgetting Arch has the best wiki in town. (Why on earth doesn't it show up higher in google searches wink )

Offline

#20 2011-04-17 15:37:08

metre
Member
Registered: 2011-03-13
Posts: 130

Re: Hibernation

Ramses de Norre wrote:

I reported this bug here, but from the mailing list it seems they'll be moving 2.6.38.2 anyway. I hope 2.6.38.3 will be out soon.

Let's wait for it: http://www.archlinux.org/packages/core/x86_64/kernel26/, Flagged out-of-date on 2011-04-14

Offline

#21 2011-04-17 17:52:28

webmasteryoda
Member
From: Serbia
Registered: 2010-03-20
Posts: 115
Website

Re: Hibernation

laloch wrote:

A similar approach step by step:

$ sudo pacman -S abs
$ sudo abs
$ cp -a /var/abs/core/kernel26 .
$ cd kernel26
$ makepkg -o
$ wget "http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=patch;h=4da9484bdece39ab0b098fa711e095e3e9fc8684" -O patch.diff
$ patch -d src/linux-2.6.38 -p1 < patch.diff
$ makepkg -es
$ sudo pacman -U kernel26-2.6.38.2-1-x86_64.pkg.tar.xz
$ cd ..
$ rm -r kernel26

If you don't have/use/like sudo, you have to run the commands beginning with sudo as root.

If I apply this, is it going to broke again after kernel update ?

Offline

#22 2011-04-17 18:57:52

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Hibernation

webmasteryoda wrote:

If I apply this, is it going to broke again after kernel update ?

yep. 2.6.38.3 does not fix the issue.
EDIT:
...but 2.6.39-rc3 does.
EDIT 2:
It's entirely up to the package maintainer, what is our next kernel going to look like.

Last edited by laloch (2011-04-17 19:22:39)

Offline

#23 2011-04-17 19:48:49

webmasteryoda
Member
From: Serbia
Registered: 2010-03-20
Posts: 115
Website

Re: Hibernation

thx for your answer.
I ll patch it, and do it again if it stops working.... I use hibernation alot.

Offline

#24 2011-04-17 19:56:50

webmasteryoda
Member
From: Serbia
Registered: 2010-03-20
Posts: 115
Website

Re: Hibernation

I confirm that this patch works !

thx

Offline

#25 2011-04-17 20:40:16

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Hibernation

laloch wrote:

yep. 2.6.38.3 does not fix the issue.

2.6.38.3-ARCH does. tongue

Offline

Board footer

Powered by FluxBB