You are not logged in.

#1 2011-07-21 17:02:59

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

[SOLVED] Hibernation / Suspend stopped working!

Dear *,

Hi! Thanks for reading this. I would not have started another hibernation thread if this was not utterly beyond me. Hoping one of you will be able to help.

I installed Arch on a new machine last week. Everything is swell. Suspend/Hibernation was working too. I have always been using uswsusp and installed the same. Since I 'totally forgot' to keep a swap partition, I set up a swap file.

All was well in ArchLand when only today I noticed that suspend of any kind is not working. Whether I call it as s2* or pm-* or use one of the graphical options. I have no idea if I did something which has broken it but can't recall doing anything that should have meddled with the pm ecosystem.

Anyway, I've tried the vanilla kernel suspension, uswsusp and nothing is working. Everything seems to be set alright. I've read the wiki and forums over and over for all sorts of issues. I am sure the swapfile is large enough (4 GB) for a 3 GB RAM.

The symptoms are: the screen goes black, the blinking cursor comes up and hangs up. After that nothing happens for as long as 5-10 mins while the little red light on my thinkpad keeps blinking indicating that the machine is entering suspension.

The only thing I know is that the issue may be related to Kernel Mode Setting or using a swapfile.

I am attaching the important config files and logs.

Please let me know if there are any ideas.

=========================
/etc/suspend.conf
=========================

snapshot device = /dev/snapshot
resume device = /dev/sda3
resume offset = 7802880
image size = 0
shutdown method = platform
threads = y
early writeout = y
#compress = y
#splash = y
#encrypt = y
#suspend loglevel = 2
#compute checksum = y

=========================
/boot/grub/menu.lst
=========================

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 resume=/dev/sda3 resume_offset=7802880 ro
initrd /boot/kernel26.img

=========================
/etc/pm/config.d/module
=========================

SLEEP_MODULE=uswsusp

=========================
/var/log/pm-suspend.log
=========================

Thu Jul 21 22:03:32 IST 2011: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux TheArchWizard 2.6.39-ARCH #1 SMP PREEMPT Sat Jul 9 15:31:04 CEST 2011 i686 Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz GenuineIntel GNU/Linux
Module                  Size  Used by
fuse                   58669  3 
bnep                    7234  2 
bluetooth             115465  7 bnep
autofs4                19423  1 
option                 13370  2 
usb_wwan                7806  1 option
uvcvideo               55084  0 
videodev               70734  1 uvcvideo
media                   8513  1 videodev
snd_hda_codec_hdmi     20368  1 
snd_hda_codec_conexant    35057  1 
sdhci_pci               6886  0 
sdhci                  15197  1 sdhci_pci
joydev                  7535  0 
mmc_core               60838  1 sdhci
sg                     21022  0 
arc4                    1094  2 
i915                  557838  3 
snd_hda_intel          19261  4 
drm_kms_helper         24245  1 i915
snd_hda_codec          66665  3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
snd_hwdep               4919  1 snd_hda_codec
thinkpad_acpi          54615  0 
ecb                     1645  2 
drm                   147653  4 i915,drm_kms_helper
r8169                  34891  0 
intel_agp               8664  1 i915
rtl8192ce              60178  0 
rtl8192c_common        47777  1 rtl8192ce
snd_pcm                60311  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              15542  1 snd_pcm
snd                    43399  15 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,thinkpad_acpi,snd_pcm,snd_timer
rtlwifi                71649  1 rtl8192ce
snd_page_alloc          5909  2 snd_hda_intel,snd_pcm
mac80211              189598  2 rtl8192ce,rtlwifi
mii                     3383  1 r8169
cfg80211              126930  2 rtlwifi,mac80211
psmouse                55927  0 
i2c_algo_bit            4431  1 i915
intel_gtt              11417  3 i915,intel_agp
iTCO_wdt               10333  0 
i2c_i801                7039  0 
soundcore               5018  1 snd
serio_raw               3430  0 
evdev                   7310  8 
iTCO_vendor_support     1553  1 iTCO_wdt
agpgart                22160  3 drm,intel_agp,intel_gtt
nvram                   4741  1 thinkpad_acpi
battery                 8905  0 
button                  3654  1 i915
i2c_core               16665  6 videodev,i915,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
rfkill                 12510  5 bluetooth,thinkpad_acpi,cfg80211
thermal                 6603  0 
video                   9852  1 i915
ac                      2545  0 
coretemp                4182  0 
hwmon_vid               2064  0 
cpufreq_powersave        714  0 
cpufreq_ondemand        5064  4 
acpi_cpufreq            5053  0 
freq_table              2055  2 cpufreq_ondemand,acpi_cpufreq
processor              21884  1 acpi_cpufreq
mperf                   1035  1 acpi_cpufreq
loop                   14003  0 
vboxdrv               191895  0 
usb_storage            35215  0 
usbserial              26671  6 option,usb_wwan
uinput                  5864  0 
ext4                  334562  3 
mbcache                 4321  1 ext4
jbd2                   59098  1 ext4
crc16                   1077  2 bluetooth,ext4
sr_mod                 12956  0 
cdrom                  31341  1 sr_mod
sd_mod                 25483  4 
ahci                   18093  3 
libahci                16581  1 ahci
libata                154285  2 ahci,libahci
ehci_hcd               34847  0 
scsi_mod              110702  5 sg,usb_storage,sr_mod,sd_mod,libata
usbcore               119324  8 option,usb_wwan,uvcvideo,rtlwifi,usb_storage,usbserial,ehci_hcd
             total       used       free     shared    buffers     cached
Mem:       3013924     427364    2586560          0      33808     233712
-/+ buffers/cache:     159844    2854080
Swap:      4194300          0    4194300

/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/01grub hibernate hibernate:

/usr/lib/pm-utils/sleep.d/01grub hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate:

/usr/lib/pm-utils/sleep.d/11netcfg hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:

/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:

/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: success.
Running hook /etc/pm/sleep.d/90alsa hibernate hibernate:

/etc/pm/sleep.d/90alsa hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:

/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
Kernel modesetting video driver detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Thu Jul 21 22:03:33 IST 2011: performing hibernate

=========================
cat /var/log/dmesg.log | grep PM
=========================

[    1.985155] PM: Checking hibernation image partition /dev/sda3
[    1.985158] PM: Hibernation image not present or could not be loaded.
[    3.808060] PM: Marking nosave pages: 000000000009d000 - 0000000000100000
[    3.808065] PM: Basic memory bitmaps created
[    3.833442] PM: Basic memory bitmaps freed

P.S.: Do you think I'm being too impatient and that the machine just may be taking too long to hibernate?

Last edited by Dumbledore (2011-07-26 06:53:34)


GNU/Linux: Keep your options "open".

Offline

#2 2011-07-21 17:24:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,430

Re: [SOLVED] Hibernation / Suspend stopped working!

Dumbledore wrote:

P.P.S.: Sorry for attaching the files and logs inline. I don't know how to do that scrollbar thing. Can anybody tell me?

You need to edit you post and use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

(if you hit 'quote' on my post you will see how I've done it)

Offline

#3 2011-07-21 17:26:01

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Hibernation / Suspend stopped working!

Thanks Karol.


GNU/Linux: Keep your options "open".

Offline

#4 2011-07-22 21:42:11

benjarobin
Member
Registered: 2009-09-04
Posts: 9

Re: [SOLVED] Hibernation / Suspend stopped working!

Try to run :

modprobe -r vboxdrv
modprobe -r vboxnetflt

Then run suspend, it's working for me and I have seen a recent and similar Ubuntu post : http://ubuntuforums.org/showthread.php?t=1810091

http://www.virtualbox.org/ticket/9260
This ticket may be related : http://www.virtualbox.org/ticket/9253 I trig once this bug

Last edited by benjarobin (2011-07-22 21:56:36)

Offline

#5 2011-07-22 21:46:43

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,073

Re: [SOLVED] Hibernation / Suspend stopped working!

benjarobin wrote:

Try to run :

modprobe -r vboxdrv
modprobe -r vboxnetflt

Then run suspend, it's working for me and I have seen a recent and similar Ubuntu post : http://ubuntuforums.org/showthread.php?t=1810091

wait, when did the OP say that he was running Arch in virtualbox?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2011-07-22 21:54:14

benjarobin
Member
Registered: 2009-09-04
Posts: 9

Re: [SOLVED] Hibernation / Suspend stopped working!

I never say that, but he is running VirtualBox under ArchLinux, the module : vboxdrv is loaded :-)

Offline

#7 2011-07-23 00:14:58

StenM
Member
Registered: 2011-07-03
Posts: 33

Re: [SOLVED] Hibernation / Suspend stopped working!

If you have installed VirtulaBox 4.1.0, add this:

SUSPEND_MODULES="vboxdrv"

to:

nano  /etc/pm/config.d/<any name>

if you have also problem with kernel panic on shutdown look here:
https://bbs.archlinux.org/viewtopic.php?id=122956

Last edited by StenM (2011-07-23 00:18:28)

Offline

#8 2011-07-25 19:09:44

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Hibernation / Suspend stopped working!

Oh guys, thanks a lot! smile

I was unable to connect to the net for a couple of days. And precisely I later realized that I had the problem of kernel panics on shutdown. Let me try this and report back if this works. Sorry for being so late in replying. If this works, I shall mark the post as solved. Fingers crossed!


GNU/Linux: Keep your options "open".

Offline

#9 2011-07-26 06:51:43

Dumbledore
Member
From: Mumbai, India
Registered: 2011-04-27
Posts: 56

Re: [SOLVED] Hibernation / Suspend stopped working!

Yep. It worked. That was pretty sharp of benjarobin to pick up the vboxdrv module in there. All of you make Arch so special.
Thanks.


GNU/Linux: Keep your options "open".

Offline

Board footer

Powered by FluxBB