Bug 551315

Summary: Freeze after wake up from Suspend to Ram
Product: [openSUSE] openSUSE 11.2 Reporter: Moritz Moroder <moritz.moroder>
Component: Mobile DevicesAssignee: Rafael Wysocki <rjw>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: anubis1, larsbl, tschmidt, zawertun
Version: RC 2   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: pm-suspend.log
messages

Description Moritz Moroder 2009-10-30 11:27:16 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-3.2 Firefox/3.5.3

In before the RC1 and RC2 Suspend worked perfectly on Fujitsu Siemens T5010, now it doesn't.
The screen is black and the system is completely frozen ( Sysreq keys doesn't work).

Reproducible: Always

Steps to Reproduce:
1. Suspend to Ram
2. Turn on the laptop
Comment 1 Holger Macht 2009-11-03 11:49:35 UTC
Please attach /var/log/pm-suspend.log and /var/log/messages.

I suspect a kernel problem here, cause we didn't do any changes in userspace.
Comment 2 Larsbl Bl 2009-11-03 12:57:13 UTC
On my System, an Acer Aspire 1500, i have the same problem. A new Installation 11.2 with any updates.

After Suspend to ram, the System is frozen. I must reboot the System.
Comment 3 Moritz Moroder 2009-11-03 19:53:55 UTC
Created attachment 325374 [details]
pm-suspend.log
Comment 4 Moritz Moroder 2009-11-03 19:56:26 UTC
Created attachment 325376 [details]
messages
Comment 5 Moritz Moroder 2009-11-03 19:57:57 UTC
i tried to susped my pc from commandline using 's2ram --force' and it worked perfectly
Comment 6 Rafael Wysocki 2009-11-03 22:21:49 UTC
Most probably there's a HAL quirk for your system that stopped working with newer kernels.

Holger, is there any easy way to verify if the machine uses a HAL quirk and which one?
Comment 7 Moritz Moroder 2009-11-04 10:09:39 UTC
I just tried to suspend through hal using qdbusviewer. The same problem occurred.
Comment 8 Rafael Wysocki 2009-11-04 23:16:56 UTC
As I said, this probably means there is a HAL quirk for your system that's not necessary and doesn't work with newer kernels.

The solution in that case would be to identify the quirk and remove it.
Comment 9 Holger Macht 2009-11-05 10:32:44 UTC
Moritz, please post the output of
 $ lshal | grep quirk

This should show which and if a quirk is in place.
Comment 10 Moritz Moroder 2009-11-05 13:52:38 UTC
I don't get a output when I run "lshal | grep quirk"
Comment 11 Holger Macht 2009-11-05 13:55:09 UTC
What graphic drivers are you using?
Comment 12 Moritz Moroder 2009-11-05 14:08:47 UTC
The original i915 intel graphics driver which is shiped with RC2
Comment 13 Thomas Kamps 2009-11-09 21:18:45 UTC
I have the same problem:
lshal | grep quirk gives

power_management.quirk.vbe_post = true  (bool)
power_management.quirk.vbestate_restore = true  (bool)

How can i disable the quirks to test it, without them?
Comment 14 Thomas Kamps 2009-11-10 09:22:55 UTC
Since i have set S2RAM_OPTS the quirks are ignored for me.

s2ram -f -a 2 --vbe_save directly from console works well. So i have set "-f -a 2 --vbe_save" as S2RAM_OPTS, but via hal my syszem freezes durig wakepup.

My pm-suspend.log:
2009-11-10 10:03:45.539929906 +0100: running 'suspend'/'suspend'/'' hooks.
===== 2009-11-10 10:03:45.589574051 running hook: /usr/lib/pm-utils/sleep.d/00clear =====                                                                       
===== 2009-11-10 10:03:45.622483998 running hook: /usr/lib/pm-utils/sleep.d/01logging =====                                                                     
suspend initiated: Tue Nov 10 10:03:45 CET 2009                                 

Linux mylaptop 2.6.31.5-0.1-default #1 SMP 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux                                                                   
kernel command line: 'root=/dev/disk/by-id/ata-WDC_WD800BEVE-00UYT0_WD-WXC808J90447-part4 resume=/dev/disk/by-id/ata-WDC_WD800BEVE-00UYT0_WD-WXC808J90447-part3 splash=silent quiet vga=0x317'                                                  
Module                  Size  Used by                                           
nfs                   345360  0                                                 
lockd                  81484  1 nfs                                             
fscache                46552  1 nfs                                             
nfs_acl                 3264  1 nfs                                             
auth_rpcgss            43360  1 nfs                                             
sunrpc                225536  5 nfs,lockd,nfs_acl,auth_rpcgss                   
aes_i586                8576  1                                                 
aes_generic            27968  1 aes_i586                                        
af_packet              23648  4                                                 
snd_pcm_oss            51648  0                                                 
snd_mixer_oss          18464  1 snd_pcm_oss                                     
snd_seq                64752  0                                                 
snd_seq_device          8556  1 snd_seq                                         
edd                    10376  0                                                 
i915                  247592  1                                                 
drm                   184096  2 i915                                            
i2c_algo_bit            6884  1 i915                                            
ipv6                  306036  24                                                
microcode              17516  0                                                 
fuse                   75868  1                                                 
loop                   17324  0                                                 
dm_mod                 84740  0                                                 
arc4                    1952  2                                                 
ecb                     3264  2                                                 
cryptomgr              95216  0                                                 
aead                    8640  1 cryptomgr                                       
pcompress               2752  1 cryptomgr                                       
crypto_blkcipher       14884  2 ecb,cryptomgr                                   
crypto_hash            14464  1 cryptomgr                                       
crypto_algapi          21220  9 aes_i586,aes_generic,arc4,ecb,cryptomgr,aead,pcompress,crypto_blkcipher,crypto_hash                                             
ath5k                 138632  0                                                 
mac80211              214968  1 ath5k                                           
ath                     8608  1 ath5k                                           
cfg80211              103584  3 ath5k,mac80211,ath                              
pcmcia                 42152  0                                                 
snd_intel8x0m          16684  0                                                 
snd_intel8x0           35068  1                                                 
yenta_socket           41196  3                                                 
rsrc_nonstatic         13664  1 yenta_socket                                    
epl                   171428  0                                                 
8139too                34852  0                                                 
snd_ac97_codec        119364  2 snd_intel8x0m,snd_intel8x0                      
ac97_bus                1920  1 snd_ac97_codec                                  
pcmcia_core            40660  3 pcmcia,yenta_socket,rsrc_nonstatic              
8139cp                 25248  0                                                 
snd_pcm                97444  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec                                                                           
i2c_i801               12788  0                                                 
snd_timer              27176  2 snd_seq,snd_pcm                                 
shpchp                 36372  0                                                 
snd                    75076  11 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer                   
iTCO_wdt               12452  0                                                 
sr_mod                 17316  0                                                 
rfkill                 22868  1 cfg80211                                        
led_class               4836  1 ath5k                                           
wmi                     7720  0                                                 
joydev                 11712  0                                                 
sg                     32660  0                                                 
cdrom                  40448  1 sr_mod                                          
pcspkr                  2784  0                                                 
serio_raw               6180  0                                                 
iTCO_vendor_support     3876  1 iTCO_wdt                                        
floppy                 61540  0                                                 
soundcore               9120  1 snd                                             
pci_hotplug            32928  1 shpchp                                          
snd_page_alloc         10248  3 snd_intel8x0m,snd_intel8x0,snd_pcm              
i2c_core               32308  4 i915,drm,i2c_algo_bit,i2c_i801                  
intel_agp              30812  1                                                 
battery                12772  0                                                 
ac                      4900  0                                                 
video                  24600  1 i915                                            
output                  3328  1 video                                           
button                  6544  0                                                 
ext4                  360324  1                                                 
jbd2                   96096  1 ext4                                            
crc16                   1952  1 ext4                                            
uhci_hcd               29552  0                                                 
rtc_cmos               15280  0                                                 
rtc_core               22908  1 rtc_cmos                                        
rtc_lib                 3168  1 rtc_core                                        
ehci_hcd               56432  0                                                 
fan                     5028  0                                                 
processor              50352  1                                                 
ide_pci_generic         4036  0                                                 
piix                    6792  0                                                 
ide_core              124108  2 ide_pci_generic,piix                            
ata_generic             4868  0                                                 
ata_piix               25288  3                                                 
ahci                   39280  0                                                 
libata                200748  3 ata_generic,ata_piix,ahci                       
thermal                21020  0                                                 
thermal_sys            18120  4 video,fan,processor,thermal                     
hwmon                   3676  1 thermal_sys                                     

             total       used       free     shared    buffers     cached
Mem:        494020     481168      12852          0      21372     315384
-/+ buffers/cache:     144412     349608                                 
Swap:      1052248          0    1052248                                 

===== 2009-11-10 10:03:45.674595772 running hook: /usr/lib/pm-utils/sleep.d/02rtcwake =====                                                                     
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...  
===== 2009-11-10 10:03:45.682485299 running hook: /usr/lib/pm-utils/sleep.d/05led =====                                                                         
===== 2009-11-10 10:03:45.688213665 running hook: /usr/lib/pm-utils/sleep.d/06autofs =====                                                                      
===== 2009-11-10 10:03:45.782154940 running hook: /usr/lib/pm-utils/sleep.d/10NetworkManager =====                                                              
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.                                                                    
===== 2009-11-10 10:03:46.098982242 running hook: /usr/lib/pm-utils/sleep.d/30s2disk-check =====                                                                
===== 2009-11-10 10:03:46.111077597 running hook: /usr/lib/pm-utils/sleep.d/45pcmcia =====                                                                      
ejecting PCMCIA cards...
===== 2009-11-10 10:03:46.630031945 running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== 2009-11-10 10:03:46.688500935 running hook: /usr/lib/pm-utils/sleep.d/80acpi-fan =====
===== 2009-11-10 10:03:46.781443483 running hook: /usr/lib/pm-utils/sleep.d/80videobios =====
===== 2009-11-10 10:03:46.841730297 running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== 2009-11-10 10:03:46.936663029 running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== 2009-11-10 10:03:47.005811273 running hook: /usr/lib/pm-utils/sleep.d/95packagekit =====
===== 2009-11-10 10:03:47.067458025 running hook: /usr/lib/pm-utils/sleep.d/99Zgrub =====
===== 2009-11-10 10:03:47.103449360 running hook: /usr/lib/pm-utils/sleep.d/99info =====
2009-11-10 10:03:47.147100583: done running suspend/suspend hooks.
INFO: going to suspend. In case of problems with the selected suspend options,
INFO: please read /usr/share/doc/packages/pm-utils/README.smart-suspend-to-RAM
INFO: using user-supplied options: S2RAM_OPTS='-f -a 2 --vbe_save' for suspending.
+ /usr/sbin/s2ram -f -a 2 --vbe_save
Allocated buffer at 0x11000 (base is 0x0)
ES: 0x1100 EBX: 0x0000
Comment 15 Thomas Kamps 2009-11-10 09:28:13 UTC
Sorry for my tripple-post.
I just tried s2ram via hal with my wlan pcmcia card
"07:00.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)"
detached. It worked!

OS
2.6.31.5-0.1-default
KDE 4.3.3 (from KDE:/43 repo)

If you want more information: Just ask.
Comment 16 Holger Macht 2009-11-12 13:45:41 UTC
So it seems your wlan driver (ath5k is broken. Would you mind adding it to /usr/lib/pm-utils/defaults:SUSPEND_MODULES="" and see if it helps with the wlan adapter attached.
Comment 17 Thomas Kamps 2009-11-13 08:14:41 UTC
i tried. This does not help. (Unpluggin my pcmcia wlan-card does not unload any module)
Comment 18 Holger Macht 2009-11-26 10:29:22 UTC
Please do
 $ mv /usr/lib/pm-utils/sleep.d/45pcmcia /tmp
and try again. Thanks.
Comment 19 Thomas Kamps 2009-11-26 11:12:41 UTC
That works for me. :)
Comment 20 Moritz Moroder 2009-11-26 16:17:31 UTC
also for me =)
Comment 21 Rafael Wysocki 2011-02-25 22:11:08 UTC
Resolving as per the last comments.