Cannot hibernate (s2disk)

On 2012-02-06 19:26, Ctwx wrote:

> On my quad core AMD cpu @ 3.4 GHz with 8 GB RAM and a 7200 RPM disk
> (where did you get this fast disk?!) I need around 20 minutes

Do you know that compiles run faster if the partition is reiserfs? :slight_smile:

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

On 2012-02-06 18:46, Larry Finger wrote:

> every driver you will need… They start with ā€˜make localmodconfig’, which
> will generate a configuration file that includes all the kernel features of
> your current .config, but only those modules that are currently loaded.

This is interesting, I didn’t know it. Thanks, I have thought about such a
feature for years.

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

During my tests I made some bigger steps. I compiled and tested in this order:

  1. 2.6.38.8
  2. 2.6.39.4
  3. 3.0.20
  4. 3.1 (this time I didn’t take the latest one because I guessed that this one is the first faulty one)

And the result is: Beginning with **Kernel 3.1 ** my system freezes.

Any further instructions what to do next? I never debugged the kernel, especially I never had freezes with Linux before. When I had trouble with the kernel I usually got some kernel panic messages but this time I get nothing… So, forgive me my questions. :slight_smile:

Regards,
Ctwx

On 02/08/2012 03:26 AM, Ctwx wrote:
>
> During my tests I made some bigger steps. I compiled and tested in this
> order:
>
> - 2.6.38.8
> - 2.6.39.4
> - 3.0.20
> - 3.1 (this time I didn’t take the latest one because I guessed that
> this one is the first faulty one)
> And the result is: Beginning with *Kernel 3.1 * my system freezes.
>
> Any further instructions what to do next? I never debugged the kernel,
> especially I never had freezes with Linux before. When I had trouble
> with the kernel I usually got some kernel panic messages but this time I
> get nothing… So, forgive me my questions. :slight_smile:

I would use ā€˜sudo zypper in git’ to get git on my machine, and then install the
mainline source tree using the command


git clone url = git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

That will download a lot of stuff (~300 MB) and create a new source tree in
directory linux. Use the cd command to get to that directory and do the following:


zcat /proc/config.gz > ,config
make -jX
sudo make modules_install install

where X is 2 times the number of CPUs. The install step will create new entries
in your GRUB menu. Note the name of that kernel and select it on the reboot.
Test this v3.3-rc2 kernel to see if the problem has been fixed in kernels later
than v3.1. If it has, you will have saved a lot of work - just use it. To stay
current with the kernels, you may periodically issue the ā€˜git pull’ command,
which will automatically get the latest kernel source. If 3.3 still has the
problem, then do the following:


git bisect start
git bisect bad v3.1
git bisect good v3.0

That will create a new test kernel that is halfway between 3.0 and 3.1 in terms
of commits. Next edit .config, find the line that contains CONFIG_LOCALVERSION,
and change it to read CONFIG_LOCALVERSION_AUTO=y. That will make every kernel
have a unique name. You can then proceed with


make -jX
sudo make modules_install install

Note the name of that kernel and select it on the reboot. Do not worry if the
version changes to 2.6.39, or something else. Next reboot with that kernel and
test. If it fails with the original problem, reboot with a good kernel and enter
the command ā€˜git bisect bad’. If it is OK, use ā€˜git bisect good’. The command
will discard all modifications in 1/2 of the source and generate a new kernel
source for testing. Then redo the make steps above until git tells you the bad
commit. With that information, file a bug report at bugzilla.kernel.org. Be sure
to label it as a regression - those get the highest priority. Be as complete
with the description as possible, and be sure to state that you bisected the
problem and give the bad commit number. There will likely be patches posted that
you will need to test to see if they fix the problem.

Good luck.

That’s amazing! With Kernel 3.3.0-rc2 standby works again, but hibernate only locks the screen. I’m using KDE to standby or/and hibernate. What console command is equivalent to the hibernate/standby button in the kickoff menu? I’ve seen the pm-* tools and I’ve read about some others I don’t remind yet. Do they work different or can I use them interchangeably?

Thank you very much. I’ll continue to test earlier version of the kernel.

It works again. I tested Kernel 3.2, 3.3-rc2 (again) and 3.3-rc3. All three Kernels work. So I think the problem was fixed by Kernel 3.2 and so far I didn’t made any upgrade to this version.

So, I guess there’s no need to try to find the ā€œbugā€?

Thanks for your help. :slight_smile: I’ll stay with the latest Kernel 3.2.

On 02/09/2012 06:56 AM, Ctwx wrote:
>
> It works again. I tested Kernel 3.2, 3.3-rc2 (again) and 3.3-rc3. All
> three Kernels work. So I think the problem was fixed by Kernel 3.2 and
> so far I didn’t made any upgrade to this version.
>
> So, I guess there’s no need to try to find the ā€œbugā€?
>
>
> Thanks for your help. :slight_smile: I’ll stay with the latest Kernel 3.2.

That is a good plan.

That’s amazing! I’ve been in the field with a crappy connection several weeks. thanks for your hard work guys!

Now, which would be the best simple and uncomplicated way to upgrade to 3.2 kernel? Sort of ā€œzypper up ā€¦ā€

I am now in

Linux laptop-sergio.husky01 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) i686 athlon i386 GNU/Linux

Thanks guys!

Nevermind, I updated using Tumbleweed repos and installed NVIDIA ā€œthe hard wayā€ and hibernation seems to be working for now.

I am now using:

Linux laptop-sergio.husky01 3.2.10-15-desktop #1 SMP PREEMPT Tue Mar 13 10:07:58 UTC 2012 (614ed04) i686 athlon i386 GNU/Linux

Thanks for all replies and tips guys!

This is my system uname output


 uname -a
Linux i74 2.6.37.6-0.11-desktop #1 SMP PREEMPT 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64 GNU/Linux
free -m
             total       used       free     shared    buffers     cached
Mem:         16070      10468       5602          0         67       9128
-/+ buffers/cache:       1272      14798
Swap:        20480          0      20480

after the last update on my sytem running opensuse 11.4, (I’m unable to say which update is to blame)

the hibernate, that till today works smoothly, started to give the problem you highlighted in this post.

Any hint?

On 2012-04-04 20:06, roberto60 wrote:

> the hibernate, that till today works smoothly, started to give the
> problem you highlighted in this post.

As the thread is months long and with several people involved, and many
posts that I do not want to reread, I can not know what is that problem you
mention. Could you be more explicit?

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

the hibernate operation hangs at the following point:


s2disk: Snapshotting system 

On 2012-04-05 11:46, roberto60 wrote:
>
> the hibernate operation hangs at the following point:
>
> Code:
> --------------------
>
> s2disk: Snapshotting system
> --------------------

It would be better if you had started your own thread. Anyway, there is
little we can do. Did it work before (another oS version)?

Have a look:

here
here

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

as I told it (hibernate) has worked till some on-line update ago. The last I remembered was of the virtualbox package.
Right now while I’m writing I received an online patch with the heading


pm-util

fix the hibernate failure due to security update

On 2012-04-05 12:46, roberto60 wrote:
>
> as I told it (hibernate) has worked till some on-line update ago. The
> last I remembered was of the virtualbox package.
> Right now while I’m writing I received an online patch with the heading
>
>
>
> Code:
> --------------------
>
> pm-util
>
> fix the hibernate failure due to security update
> --------------------

Ah, yes, I forgot that one. Yes, hibernation broke few weeks ago, it was
reported in the forum and in bugzilla.

Bug here
View this thread
here

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

After the patch install the suspend to disc doesn’t work still it hangs at the

s2disk: Snapshoting system

I attach the output in the log file /var/log/pm-suspend.log after at the command line prompt I issued

pm-hibernate with no effect. (BTW the suspend to RAM works very fine…)


Initial commandline parameters: 
Fri Apr  6 23:38:04 CEST 2012: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
hibernate initiated: Fri Apr  6 23:38:04 CEST 2012

Linux i74 2.6.37.6-0.11-desktop #1 SMP PREEMPT 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64 GNU/Linux
kernel command line: 'root=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5P228555-part3 resume=/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5P228555-part2 splash=verbose quiet showopts vga=0x317'
Module                  Size  Used by
fuse                   80799  3 
ip6t_LOG                9192  5 
xt_tcpudp               3812  2 
xt_pkttype              1288  3 
ipt_LOG                 8721  5 
xt_limit                2591  10 
vboxpci                17556  0 
vboxnetadp              6390  0 
vboxnetflt             18665  1 
vboxdrv              1869427  4 vboxpci,vboxnetadp,vboxnetflt
snd_pcm_oss            53391  0 
snd_mixer_oss          20225  1 snd_pcm_oss
snd_seq                66675  0 
snd_seq_device          7770  1 snd_seq
edd                     9664  0 
nfs                   363192  2 
lockd                  82143  1 nfs
fscache                55451  1 nfs
nfs_acl                 3107  1 nfs
auth_rpcgss            49071  1 nfs
sunrpc                252149  20 nfs,lockd,nfs_acl,auth_rpcgss
ip6t_REJECT             4709  3 
nf_conntrack_ipv6       9399  3 
nf_defrag_ipv6         11699  1 nf_conntrack_ipv6
ip6table_raw            1627  1 
xt_NOTRACK              1224  4 
ipt_REJECT              2640  3 
iptable_raw             1686  1 
iptable_filter          1946  1 
ip6table_mangle         2036  0 
nf_conntrack_netbios_ns     1822  0 
nf_conntrack_ipv4      10168  3 
nf_defrag_ipv4          1737  1 nf_conntrack_ipv4
ip_tables              22302  2 iptable_raw,iptable_filter
xt_conntrack            2880  6 
nf_conntrack           88175  5 nf_conntrack_ipv6,xt_NOTRACK,nf_conntrack_netbios_ns,nf_conntrack_ipv4,xt_conntrack
ip6table_filter         1855  1 
ip6_tables             22656  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               28281  16 ip6t_LOG,xt_tcpudp,xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,ip6table_raw,xt_NOTRACK,ipt_REJECT,iptable_raw,iptable_filter,ip6table_mangle,ip_tables,xt_conntrack,ip6table_filter,ip6_tables
cpufreq_conservative    11828  0 
cpufreq_userspace       3264  0 
cpufreq_powersave       1290  0 
acpi_cpufreq            8367  1 
mperf                   1555  1 acpi_cpufreq
dm_mod                 86272  0 
snd_hda_codec_hdmi     28023  4 
snd_hda_codec_via      64160  1 
nvidia              12129441  40 
snd_hda_intel          28773  2 
snd_hda_codec         108050  3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
iTCO_wdt               12266  0 
sg                     33426  0 
sr_mod                 16781  0 
iTCO_vendor_support     3118  1 iTCO_wdt
snd_hwdep               7772  1 snd_hda_codec
snd_pcm               104468  4 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              26774  2 snd_seq,snd_pcm
snd                    84374  15 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
button                  6829  0 
r8169                  43831  0 
joydev                 12166  0 
serio_raw               5318  0 
soundcore               8782  1 snd
snd_page_alloc          9569  2 snd_hda_intel,snd_pcm
asus_atk0110           15784  0 
cdrom                  43280  1 sr_mod
shpchp                 31135  0 
pci_hotplug            32310  1 shpchp
i2c_i801               10920  0 
pcspkr                  2190  0 
ext4                  398026  8 
jbd2                   91654  1 ext4
crc16                   1747  1 ext4
fan                     3215  0 
processor              39669  1 acpi_cpufreq
thermal                14914  0 
thermal_sys            17462  3 fan,processor,thermal
ata_generic             3995  0 
pata_via                9672  0 

             total       used       free     shared    buffers     cached
Mem:      16456524   16094988     361536          0     170452   10152120
-/+ buffers/cache:    5772416   10684108
Swap:     20972540          0   20972540


/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:

/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/02rtcwake hibernate hibernate:
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...

/usr/lib/pm-utils/sleep.d/02rtcwake hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/06autofs hibernate hibernate

:

On 2012-04-06 23:56, roberto60 wrote:
>
> After the patch install the suspend to disc doesn’t work still it hangs
> at the

I know. If you read the report you will see that another file is at fault.
You can edit that file manually as told in the last comment.

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

To avoid misunderstanding do you mean to set on the ā€œrtcwake alarmā€ in the config file

/etc/pm/config.d/rtcwake.config?

On 2012-04-07 09:16, roberto60 wrote:

> To avoid misunderstanding do you mean to set on the ā€œrtcwake alarmā€ in
> the config file
>
> /etc/pm/config.d/rtcwake.config?

Nowhere in the report it speaks of that file. No, you are to edit
ā€œ/usr/lib/pm-utils/sleep.d/06autofsā€ as the bugzilla report says, and aply
the changes - or wait till the next update.

–
Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 ā€œCeladonā€ at Telcontar)

I’m sorry but I’m unable to safly apply the modfication based on the bugzilla report. Would you be so kindly to give me some more hints about where to set the ā€œifā€ the bugzilla report speaks of?