Suspend to ram hangs machine Asus p52 laptop 11.3 64bit

Hi everyone,
I’ve got this issue with my laptop (Asus P52F with opensuse 11.3 64bit):
when I try to run suspend to ram, on the monitor appears the same screen I can see when I boot the machine (the one that ends with

Welcome to openSUSE 11.3 "Teal" - Kernel 2.6.34.7-0.7-desktop (tty1)

linux-0s2k login:  

)

and nothing else happens.

The machine doesn’t respond to any command and I have to shut down manually.
I’ve got this issue with any kind of power supply (battery and from socket).

I’m sorry if the post is not clear as it might be, I try to do my best with language and my lack experience.

Please help me because I need this function very much.

Thanks a lot in advance.

Can be useful to post the file “pm-suspend.log”?

Here is the pm-suspend.log:

Initial commandline parameters: 
Sun Jan 23 09:44:13 CET 2011: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:suspend initiated: Sun Jan 23 09:44:13 CET 2011

Linux linux-0s2k.site 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux
kernel command line: 'root=/dev/disk/by-id/ata-ST9320423AS_5VH2XJPY-part2 resume=/dev/disk/by-id/ata-ST9320423AS_5VH2XJPY-part1 splash=silent quiet vga=0x317'
Module                  Size  Used by
ip6t_LOG                5898  6 
xt_tcpudp               2859  2 
xt_pkttype              1288  3 
ipt_LOG                 6067  6 
xt_limit                2559  12 
cryptd                  9531  0 
aes_x86_64              8104  1 
aes_generic            27607  1 aes_x86_64
fuse                   75897  3 
vboxnetadp              5587  0 
vboxnetflt             16577  0 
vboxdrv              1806531  2 vboxnetadp,vboxnetflt
snd_pcm_oss            53701  0 
snd_mixer_oss          19415  1 snd_pcm_oss
snd_seq                68137  0 
snd_seq_device          7834  1 snd_seq
af_packet              23229  4 
edd                    10208  0 
cpufreq_conservative    12628  0 
cpufreq_userspace       3264  0 
cpufreq_powersave       1258  0 
acpi_cpufreq            8399  1 
mperf                   1523  1 acpi_cpufreq
ip6t_REJECT             4828  3 
nf_conntrack_ipv6      21550  4 
ip6table_raw            1627  1 
xt_NOTRACK              1192  4 
ipt_REJECT              2672  3 
xt_state                1618  8 
iptable_raw             1686  1 
iptable_filter          1946  1 
ip6table_mangle         2036  0 
nf_conntrack_netbios_ns     1854  0 
nf_conntrack_ipv4      10411  4 
nf_conntrack           89671  5 nf_conntrack_ipv6,xt_NOTRACK,xt_state,nf_conntrack_netbios_ns,nf_conntrack_ipv4
nf_defrag_ipv4          1673  1 nf_conntrack_ipv4
ip_tables              21698  2 iptable_raw,iptable_filter
ip6table_filter         1887  1 
ip6_tables             23320  4 ip6t_LOG,ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               26644  16 ip6t_LOG,xt_tcpudp,xt_pkttype,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
loop                   18524  0 
dm_mod                 86873  0 
arc4                    1601  2 
ecb                     2495  2 
snd_hda_codec_intelhdmi    12022  1 
ath9k                  87466  0 
snd_hda_intel          28621  2 
ath9k_common            3581  1 ath9k
snd_hda_codec         113249  2 snd_hda_codec_intelhdmi,snd_hda_intel
snd_hwdep               8100  1 snd_hda_codec
mac80211              290644  2 ath9k,ath9k_common
uvcvideo               68119  0 
snd_pcm               105589  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              26828  2 snd_seq,snd_pcm
sr_mod                 16684  0 
videodev               43828  1 uvcvideo
jmb38x_ms              14191  0 
ath9k_hw              250124  2 ath9k,ath9k_common
ath                    11135  2 ath9k,ath9k_hw
memstick               12098  1 jmb38x_ms
v4l1_compat            17249  2 uvcvideo,videodev
sdhci_pci               8700  0 
v4l2_compat_ioctl32    11349  1 videodev
sdhci                  22806  1 sdhci_pci
serio_raw               5318  0 
jme                    37106  0 
mmc_core               83746  1 sdhci
cfg80211              182851  4 ath9k,ath9k_common,mac80211,ath
snd                    84547  14 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_codec_intelhdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               9003  1 snd
cdrom                  43440  1 sr_mod
snd_page_alloc          9569  2 snd_hda_intel,snd_pcm
sg                     33348  0 
iTCO_wdt               12170  0 
iTCO_vendor_support     3150  1 iTCO_wdt
i2c_i801               11881  0 
pcspkr                  2222  0 
battery                12302  0 
ac                      4055  0 
asus_laptop            17779  0 
sparse_keymap           4133  1 asus_laptop
rfkill                 21863  2 cfg80211,asus_laptop
ext4                  401916  2 
jbd2                  100410  1 ext4
crc16                   1715  1 ext4
i915                  357160  3 
drm_kms_helper         33008  1 i915
drm                   224290  4 i915,drm_kms_helper
i2c_algo_bit            6728  1 i915
sd_mod                 41436  4 
video                  25256  1 i915
intel_agp              34008  2 i915
button                  6989  1 i915
fan                     4559  0 
processor              45747  5 acpi_cpufreq
ahci                   42680  3 
libata                211449  1 ahci
scsi_mod              191748  4 sr_mod,sg,sd_mod,libata
thermal                20625  0 
thermal_sys            18230  4 video,fan,processor,thermal

             total       used       free     shared    buffers     cached
Mem:       3841748    1605668    2236080          0      56568    1053592
-/+ buffers/cache:     495508    3346240
Swap:      2103292          0    2103292

success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/usr/lib/pm-utils/sleep.d/02rtcwake suspend suspend:rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...
not applicable.
/usr/lib/pm-utils/sleep.d/06autofs suspend suspend:Shutting down automount ..done
success.
/usr/lib/pm-utils/sleep.d/30s2disk-check suspend suspend:success.
/usr/lib/pm-utils/sleep.d/45pcmcia suspend suspend:ejecting PCMCIA cards...
success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/50rcnetwork suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend:success.
/usr/lib/pm-utils/sleep.d/80acpi-fan suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/80videobios suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/95packagekit suspend suspend:success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:success.
/usr/lib/pm-utils/sleep.d/99Zgrub suspend suspend:success.
/usr/lib/pm-utils/sleep.d/99info suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:disabled.
Sun Jan 23 09:44:14 CET 2011: performing suspend
INFO: using built-in quirks database from HAL.
INFO: S2RAM_OPTS from HAL quirks: ' '.

There is no one who can help me? :frowning:

Hello, I am surely not be able to help you :-p but… maybe you can play with some options in /etc/suspend.conf

Inside that file you have some explanations… maybe if you increase or decrease the “max loglevel” you can have more info in your pm-suspend.log (dont really know if that option does what I think it does :-S

Then, I had problems in the past hibernating and suspending and the main problem was that I have 6gb of ram and just 2gb of swap file (the swap should be bigger than you ram)

Do you have the same problem when you try to hibernate?

PD: if your native language is spanish, you should try FOROSuSE

I also have this problem in 11.3, but I didn’t in 11.2. In both installs my swap was 2GB and my RAM was 8GB. Black screen, no response, requires a hard reboot in both suspend to disk and ram.

Maybe in 11.2 there is something different with the swap partition, but in 11.3 cant remember where, but I think that in the install cd readme or when you install, there says that your swap should be as big as your ram…

On 01/28/2011 02:36 PM, sebadamus wrote:
>
> Maybe in 11.2 there is something different with the swap partition, but
> in 11.3 cant remember where, but I think that in the install cd readme
> or when you install, there says that your swap should be as big as your
> ram…

When suspending to RAM, the image is compressed. Given normal compression, that
means that swap should be roughly at least half the size of RAM. As the amount
of RAM decreases to 1 GB, or so, the size of swap should be increasing. My rule
of thumb is to use 2 GB of swap for RAM up to 3 GB, increasing to 3 GB for RAM
from 4-5 GB.

First of all thanks for your help,

maybe you can play with some options in /etc/suspend.conf

I tried but the problem persists.

in the install cd readme or when you install, there says that your swap should be as big as your ram…

Is it possible to change the size of swap partition? If yes, how can I do that?

Best regards

On 01/31/2011 04:36 PM, marasciallo wrote:

> Is it possible to change the size of swap partition? If yes, how can I
> do that?

backup your data to an off machine media, and then use a partitioner
to make an adjacent partition smaller, and then the swap partition
larger…


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Sorry guys, I need some advice:
I unmounted the swap file system in order to try to resize it with:

linux-0s2k:~ # umount /dev/sda1
umount: /dev/sda1: not mounted

Unfortunately, the max size for that partition is 2.01 GB (the actual size) so I wanted to re-mount /dev/sda1 but now I got this message:

linux-0s2k:~ # mount /dev/sda1
mount: mount point swap does not exist

I don’t know if it is ok, how can I repair to the mistake?:frowning:

Thanks again for your precious help!

On 02/01/2011 10:06 AM, marasciallo wrote:
> Code:
> --------------------
> linux-0s2k:~ # mount /dev/sda1
> mount: mount point swap does not exist
>
> --------------------

unless you changed your fstab, i think the swap should magically just
be there if you reboot…

my experience is it is best to run a partitioner only on
drives/partitions which are NOT in use…therefore, boot from a live
CD with gparted or similar partitioner onboard…

if you didn’t know that you probably need to read up on partitioning
(and backup) before you loose all your data…


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Hi guys,
excuse me for lateness but I’ve got some problems with backup.
Now I got the swap partition a bit larger than the ram but the problem persists.

Any ideas?

Best regards.

On 02/04/2011 09:06 PM, marasciallo wrote:
> Now I got the swap partition a bit larger than the ram but the problem
> persists.

i just answered your question: “Is it possible to change the size of
swap partition? If yes, how can I do that?”

i didn’t say it would help solve the symptoms of your problem.

but, now you know the size of the SWAP doesn’t impact the symptoms–so
it must be something else…acpi/powering savings/BIOS or something
like that i guess but there are LOTS of things than can cause
the symptom you describe…use google to search something like this:

site:opensuse.org +“11.3” +ASUS shutdown OR hibernate OR suspend AND
failure OR won’t OR “will not” OR broke OR freeze


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

> Now I got the swap partition a bit larger than the ram but the problem
> persists.

i just answered your question: “Is it possible to change the size of
swap partition? If yes, how can I do that?”

i didn’t say it would help solve the symptoms of your problem.

this advice was given me by sebadamus and I wanted to try…

use google to search something like this:

sitepensuse.org +“11.3” +ASUS shutdown OR hibernate OR suspend AND
failure OR won’t OR “will not” OR broke OR freeze

I will try now, meanwhile thanks to all for your interest on my case!

Best regards
Marasciallo

Has anyone solved this problem? I have the same problem on Asus k52. Sleep fails on Opensuse 11.3, 11.4 M6, Fedora… Kubuntu sleeps using guide on ubuntu forums. When I set it to sleep it hangs on virtual console, fan spins at its max and the disk indicator is shining. Any guess appreciated, thanks.

Best regards

On 02/08/2011 10:36 AM, misiakdurko wrote:
>
> Any guess appreciated, thanks.

since it does not work properly with Opensuse 11.3, 11.4 M6, Fedora or
Kubuntu it is probably a hardware/software/BIOS interface
issue…unless and until you get the BIOS to understand the software’s
shutdown/hibernate/suspend commands it can not take the correct
steps…i suspect a different ACPI string might solve your
problem…but, i wouldn’t know off hand which to use, so use google to
search something like this:

site:opensuse.org +“11.3” +ASUS shutdown OR hibernate OR suspend AND
failure OR won’t OR “will not” OR broke OR freeze


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

so use google to
search something like this:

sitepensuse.org +“11.3” +ASUS shutdown OR hibernate OR suspend AND
failure OR won’t OR “will not” OR broke OR freeze

I have not found anything that could help me, maybe because I don’t have enough skills…

Thanks again for your help, I hope to find a solution for this issue in a near future.

Best regards.

marasciallo

I used to have this problem (that when I hibernate the notebook fans starts to spin faster!) I realized that this happend almost everytime I had a VirtualBox machine opened (I mean, that I did not close it or snapshot it)

Then I tried some more… and realized that this happens when my virtualbox machine has more than 2gb of ram setup… strange… so now a good practice is to snapshot the VirtualBox first…

Could you solve it? why dont you send us the
/etc/suspend.conf
/etc/fstab.conf

and the output of:
sudo swapon -s

(with swapon you can enable swap files and swapoff to disable it, you can learn some from them is you try the man pages with “man swapon”)

why dont you send us the
/etc/suspend.conf
/etc/fstab.conf

and the output of:
sudo swapon -s

Here to you:

/etc/suspend.conf:

#############################################################################
##
## note:
## using pm-utils or powersaved, this file (/etc/suspend.conf) only serves as
## a template, image_size and resume_device are filled in dynamically
## and the generated /var/lib/s2disk.conf is used to suspend.
## _If_ you enter stuff here, it will be copied to that file unchanged,
## but this might skip some features and sanity checks.
##
#############################################################################
##
## your snapshot device. You should not need to change this.
# snapshot device = /dev/snapshot
#
## enter your swap device here. Read the warning on pm-utils above, please!
#resume device = <path_to_resume_device_file>
#
## image size will also be filled in by pm-utils
#image size = 350000000
#
#suspend loglevel = 2
#max loglevel =
#
## compute checksum will slow down suspend and resume.
## Debugging option, default n
#compute checksum = y
#
## compression will often speed up suspend and resume (default y)
#compress = n
#
## encryption support is rather basic right now - e.g. USB keyboards will not
## work to enter the key in the standard initrd, also beware of
## non-US keyboard layouts. Only use this if you know what you are doing.
#encrypt = y
#
## RSA key file that is used for encryption
#RSA key file = /etc/suspend.key
#
## start writing out the image early, before buffers are full.
## will most of the time speed up overall writing time (default y)
#early writeout = n
#
## use splash picture? (default y)
splash = n
#
## shutdown method:
## platform - go through ACPI BIOS to power off the machine (default on
##            machines that support it)
## shutdown - just power off like after a shutdown
## reboot   - reboot instead of powering off. For debugging only.
shutdown method = shutdown
#
## resume offset: for use with swapfiles, use "swap-offset" to find out.
#resume offset = 12345
#
## pause after resume for n seconds, so that the timing information can
## actually be read (default 0 => don't pause)
#resume pause = 2
#
## use threads for suspend? (default n)
## this hugely speeds up encryption and also compression on mulitcore machines
threads = n

now /etc/fstab (I have not found /etc/fstab.conf):

/dev/disk/by-id/ata-ST9320423AS_5VH2XJPY-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST9320423AS_5VH2XJPY-part2 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST9320423AS_5VH2XJPY-part3 /home                ext4       acl,user_xattr        1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

now the output of “swapon -s”:

linux-6bks:~ # swapon -s
Filename				Type		Size	Used	Priority
/dev/sda1                               partition	4192252	0	-1

Best regards.