Cannot hibernate or sleep

Hi all

I recently installed opensuse 11.3 with KDE 4 on my x41 tablet and upgraded to KDE 4.5.2.

At first I could hibernate and sleep perfectly, but now the computer is stuck at a console state (without X running) and a blinking half-moon light.

How do I make hibernate and sleep work again? What log files should I look into?

Cheers

On 2010-10-07 12:06, ophilar wrote:
>
> Hi all
>
> I recently installed opensuse 11.3 with KDE 4 on my x41 tablet and
> upgraded to KDE 4.5.2.
>
> At first I could hibernate and sleep perfectly, but now the computer is
> stuck at a console state (without X running) and a blinking half-moon
> light.
>
> How do I make hibernate and sleep work again? What log files should I
> look into?

Activate verbose hibernation and boot first. Then see at what message it stops.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

How do I do that - activate verbose hibernation? Sorry, I’m new to this stuff …

On 2010-10-08 00:06, ophilar wrote:
>
> How do I do that - activate verbose hibernation? Sorry, I’m new to this
> stuff …

Edit “/etc/suspend.conf” (as root in a terminal). Find the line:

#splash = y

change to

splash = n

I don’t know if it is active inmediately or not. But try to hibernate and see.

Also, edit “/boot/grub/menu.lst”, find the boot entry, and change “splash=silent” with “splash=verbose”.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Thanks. Apparently it is stuck stating “s2disk: Snapshotting system” when hibernating, for more than an hour …
Which log file should I look at?

I just realized that my swap file is 1GB while I have 1.5GB of RAM. Could this be the cause of the problem?

Here’s /var/log/pm-suspend.log. Hope that helps:

Initial commandline parameters:
Fri Oct 8 16:47:41 IST 2010: Running hooks for hibernate.
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:hibernate initiated: Fri Oct 8 16:47:41 IST 2010

Linux linux-men5.site 2.6.34.7-0.3-default #1 SMP 2010-09-20 15:27:38 +0200 i686 i686 i386 GNU/Linux
kernel command line: ‘root=/dev/disk/by-id/ata-HTC426030G7AT00_EM3371-part5 resume=/dev/disk/by-id/ata-HTC426030G7AT00_EM3371-part3 splash=verbose quiet showopts vga=0x314’
Module Size Used by
aes_i586 7396 2
aes_generic 27151 1 aes_i586
lib80211_crypt_ccmp 4913 2
ip6t_LOG 5182 6
xt_tcpudp 2107 2
xt_pkttype 912 3
xt_physdev 1571 2
ipt_LOG 5119 6
xt_limit 1673 12
rfcomm 68951 6
vmsync 3186 0
vmblock 11363 1
af_packet 19192 4
sco 16647 2
bridge 71014 1
stp 1719 1 bridge
llc 4967 2 bridge,stp
bnep 14600 2
l2cap 53274 16 rfcomm,bnep
snd_pcm_oss 47343 0
snd_mixer_oss 16449 1 snd_pcm_oss
snd_seq 57073 0
snd_seq_device 6566 1 snd_seq
edd 8720 0
cpufreq_conservative 10064 0
cpufreq_userspace 2583 0
cpufreq_powersave 914 0
acpi_cpufreq 7407 1
speedstep_lib 4985 0
mperf 1255 1 acpi_cpufreq
ip6t_REJECT 4311 3
nf_conntrack_ipv6 18193 4
ip6table_raw 1187 1
xt_NOTRACK 816 4
ipt_REJECT 2152 3
xt_state 1162 8
iptable_raw 1246 1
iptable_filter 1418 1
ip6table_mangle 1588 0
nf_conntrack_netbios_ns 1318 0
nf_conntrack_ipv4 8691 4
nf_conntrack 73918 5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
nf_defrag_ipv4 1201 1 nf_conntrack_ipv4
ip_tables 12172 2 iptable_raw,iptable_filter
ip6table_filter 1359 1
ip6_tables 13476 4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables 16414 17 ip6t_LOG,xt_tcpudp,xt_pkttype,xt_physdev,ipt_LOG,xt_limit,ip6t_REJECT,ip6table_raw,xt_NOTRACK,ipt_REJECT,xt_state,iptable_raw,iptable_filter,ip6table_mangle,ip_tables,ip6table_filter,ip6_tables
fuse 65514 1
nls_iso8859_1 3313 1
nls_cp437 4983 1
vfat 10159 1
fat 52460 1 vfat
loop 14417 0
dm_mod 72644 0
pcmcia 58565 0
mmc_block 8876 2
snd_intel8x0m 11937 0
snd_intel8x0 27558 4
yenta_socket 40618 0
sg 27412 0
btusb 15571 2
bluetooth 95471 9 rfcomm,sco,bnep,l2cap,btusb
ipw2200 183086 0
libipw 41980 1 ipw2200
thinkpad_acpi 70763 0
sdhci_pci 7046 0
nsc_ircc 15378 0
sdhci 19828 1 sdhci_pci
snd_ac97_codec 106433 2 snd_intel8x0m,snd_intel8x0
ac97_bus 1066 1 snd_ac97_codec
snd_pcm 86800 5 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer 21318 3 snd_seq,snd_pcm
snd 64702 16 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0m,snd_intel8x0,thinkpad_acpi,snd_ac97_codec,snd_pcm,snd_timer
soundcore 7013 1 snd
rsrc_nonstatic 11814 1 yenta_socket
snd_page_alloc 7817 3 snd_intel8x0m,snd_intel8x0,snd_pcm
cfg80211 155823 2 ipw2200,libipw
battery 9698 0
iTCO_wdt 9926 0
lib80211 5494 3 lib80211_crypt_ccmp,ipw2200,libipw
mmc_core 72312 2 mmc_block,sdhci
rfkill 17106 4 bluetooth,thinkpad_acpi,cfg80211
irda 118144 1 nsc_ircc
crc_ccitt 1403 1 irda
pcmcia_core 19930 3 pcmcia,yenta_socket,rsrc_nonstatic
iTCO_vendor_support 2570 1 iTCO_wdt
ac 3051 0
pcspkr 1614 0
tg3 133061 0
i2c_i801 9949 0
ext4 360788 2
jbd2 78904 1 ext4
crc16 1403 2 l2cap,ext4
sd_mod 36723 4
ata_generic 2743 0
ahci 36734 0
uhci_hcd 25788 0
ata_piix 20041 3
i915 308974 2
drm_kms_helper 29179 1 i915
ehci_hcd 52259 0
libata 185875 3 ata_generic,ahci,ata_piix
drm 177722 3 i915,drm_kms_helper
i2c_algo_bit 5572 1 i915
rtc_cmos 10902 0
i2c_core 26632 5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
rtc_core 17653 1 rtc_cmos
rtc_lib 2441 1 rtc_core
button 5417 1 i915
video 21141 1 i915
scsi_mod 159241 3 sg,sd_mod,libata
usbcore 191575 4 btusb,uhci_hcd,ehci_hcd
intel_agp 27571 2 i915
output 2031 1 video
fan 3539 0
thermal 17293 0
processor 40311 2 acpi_cpufreq
thermal_sys 14735 4 video,fan,thermal,processor
hwmon 2060 2 thinkpad_acpi,thermal_sys

         total       used       free     shared    buffers     cached

Mem: 1542228 723784 818444 0 34360 561100
-/+ buffers/cache: 128324 1413904
Swap: 1058812 0 1058812

success.
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/02rtcwake hibernate hibernate:rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing…
not applicable.
/usr/lib/pm-utils/sleep.d/06autofs hibernate hibernate:Shutting down automount …done
success.
/usr/lib/pm-utils/sleep.d/30s2disk-check hibernate hibernate:INFO: checking for suspend-to-disk prerequisites…
using userspace suspend method
setting resume device to /dev/sda3
setting image size to 710658662
adding these parameters from /etc/suspend.conf:
splash = n
success.
/usr/lib/pm-utils/sleep.d/45pcmcia hibernate hibernate:ejecting PCMCIA cards…
success.
/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/50rcnetwork hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/75ndiswrapper hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/80acpi-fan hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/80videobios hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/95led hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/95packagekit hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:success.
/usr/lib/pm-utils/sleep.d/99Zgrub hibernate hibernate:INFO: running prepare-grub
Skipping grub entry #1, because it has the noresume option
running kernel is grub menu entry 0 (vmlinuz-2.6.34.7-0.3-default)
preparing boot-loader: selecting entry 0, kernel /boot/2.6.34.7-0.3-default
grub-once: saving original /boot/grub/default
running ‘/usr/sbin/grubonce 0’
Using entry #0: openSUSE 11.3 - 2.6.34.7-0.3
time needed for sync: 0.7 seconds, time needed for grub: 0.0 seconds.
success.
/usr/lib/pm-utils/sleep.d/99info hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate:success.
Fri Oct 8 16:47:44 IST 2010: performing hibernate
INFO: using built-in quirks database from HAL.
INFO: S2RAM_OPTS from HAL quirks: ’ '.

On 2010-10-08 18:36, ophilar wrote:
>
> Thanks. Apparently it is stuck stating “s2disk: Snapshotting system”
> when hibernating, for more than an hour …

That’s very bad.

> Which log file should I look at?

If it crashes/locks at that point, none. Nothing can be written to disk at that point or beyond,
till it awakes.

> I just realized that my swap file is 1GB while I have 1.5GB of RAM.
> Could this be the cause of the problem?

It could… but it should warn, fail, and go back.

You have intel video, so I will not suggest to switch to another driver. Try something: log out of X
(kde, gnome, etc); go to a text console (ctrl-alt-f1). Log in as root, issue “init 3”, then
“pm-hibernate”.

If it works, then next time try the same without killing the graphical session: don’t log out, don’t
issue “init 3”, just go to the text console and do the pm-…

If it doesn’t work (neither) then… :-?

Try in “/etc/pm/config.d” to adjust “HIBERNATE_METHOD”. Perhaps change something in suspend.conf :-?

See that threads is set to no, compress, and encryption (all no). Mmm… compress=n is a problem in
your case, swap is small. Then do your tests with no programs loaded. Ah, you can also increase
verbosity.

There is a debugging feature you might use if you have the hardware: a serial port. The kernel can
dump messages there at times it can not dump to disk. It has to be a real serial port, a usb
converter does not work. However, I have reason to believe that the kernel will refuse to hibernate
when this feature is active - I wrote a Bugzilla about this (for 11.1).

(If something is not clear, ask: I’m multitasking, watching “law & order” on TV at the same time,
and it is getting complex :slight_smile: )


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Thanks. At least it’s getting interesting :slight_smile:

You have intel video, so I will not suggest to switch to another driver. Try something: log out of X
(kde, gnome, etc); go to a text console (ctrl-alt-f1). Log in as root, issue “init 3”, then
“pm-hibernate”.

It didn’t work :frowning: It’s strange. I did notice something about hci failing to resubmit or something. Something related to the Bluetooth - btusb …

The weird thing is that it was working at first. Then it stopped working, even after re-installation of the OS.

/etc/pm/config.d is a directory containing rtcwake.config, and I don’t see this option there. Where is the suspend.conf located?

I also have a permanent mount of an SD card and Bluetooth on. Could this be related?

UPDATE: I managed to hibernate using the log-off, init 3 etc method after closing all plasmoids and unmounting the SD first. It seems to work mostly fine - I lost the sound card and couldn’t hibernate from KDM afterward. The other method
works as well, when SD is unmounted. I’m experimenting more to see if the SD is the problem.

Thanks for the help!

On 2010-10-09 14:36, ophilar wrote:
>
> Thanks. At least it’s getting interesting :slight_smile:
>
>> You have intel video, so I will not suggest to switch to another driver.
>> Try something: log out of X
>> (kde, gnome, etc); go to a text console (ctrl-alt-f1). Log in as root,
>> issue “init 3”, then
>> “pm-hibernate”.
>
> It didn’t work :frowning: It’s strange. I did notice something about hci
> failing to resubmit or something. Something related to the Bluetooth -
> btusb …
>
> The weird thing is that it was working at first. Then it stopped
> working, even after re-installation of the OS.
>
> /etc/pm/config.d is a directory containing rtcwake.config, and I don’t
> see this option there. Where is the suspend.conf located?

You edited it a few posts back, it is in /etc.

> I also have a permanent mount of an SD card and Bluetooth on. Could
> this be related?

Try removing it.
Ah, you did.

> UPDATE: I managed to hibernate using the log-off, init 3 etc method
> after closing all plasmoids and unmounting the SD first. It seems to
> work mostly fine - I lost the sound card and couldn’t hibernate from KDM
> afterward. The other method
> works as well, when SD is unmounted. I’m experimenting more to see if
> the SD is the problem.

Well, that’s something. You could try then removing the modules using scripts in “/etc/pm/sleep.d/”.
You have samples in “/usr/share/doc/packages/pm-utils/examples/hooks”.

There are some pages in the wiki, with trick for making s2ram/s2disk work. See there. I don’t know
if there is a specialized forum or mail list for hibernation problems.

Also, knowing that some hardware is affecting hibernation, you could try with a Bugzilla, as it is a
general problem then (general for a certain combination of hardware).


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Thanks.

I’ll try it all. Term started, so I won’t have time to meddle with it, but now I know what to do when next I’ve a couple of free days :slight_smile:

I wonder whose responsibility is s2disk/s2ram - kernel, distribution, otherwise? Will check on the wiki. Could this be a distribution specific problem? Will have to check on another distro …

Cheers and thanks

On 2010-10-10 19:06, ophilar wrote:
>
> Thanks.
>
> I’ll try it all. Term started, so I won’t have time to meddle with it,
> but now I know what to do when next I’ve a couple of free days :slight_smile:
>
> I wonder whose responsibility is s2disk/s2ram - kernel, distribution,
> otherwise? Will check on the wiki. Could this be a distribution specific
> problem? Will have to check on another distro …

I report this issues against kernel, and let them move it if appropriate :slight_smile:

Yes, it could be that a different distro worked, or another version of opensuse. Different kernel,
perhaps a different configuration, or who knows what different that does the trick.

Look, my laptop suspends to disk just fine in 11.2, and to ram almost fine: the touchpad mouse dies.
On 11.3 this has been solved, but there are video problems (slow). So I stay with 11.2. At least I
can choose.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)