Cannot wake laptop after suspend

I have a few quirks with a new openSUSE 12.2 setup on a new laptop but mainly that I cannot get the laptop to wake after suspend.

I get the same behavior regardless of the desktop (KDE, ICE, or Gnome) but I’m using Gnome as my default.

  1. Closing the laptop lid locks the screen but does not suspend the laptop (even though I have told Gnome through Advanced Settings to suspend on lid close)
  2. Suspending the laptop (in terminal or from the menu; all desktop environments) produces a terminal screen (tty 1) from which I cannot wake up the laptop.
  3. Terminal screen brightens on keystroke and dims if allowed to rest but will not accept any keyboard entries.
  4. Terminal screen will not accept ctl-alt-F1, ctl-alt-F3, etc.

I’m running openSUSE 12.2 on a Dell XPS 15 (L521X) with optimus configuration (Ivy bridge and nVidia GT640M) and what appears to be working Bumblebee.

Following some hints on the Bumblebee GitHub I tried disabling bumbleee in the bumblebee.conf by setting

 PMMethod=none

and getting the same behavior.

I’m attaching the suspend log /var/log/pm-suspend.log but must admit that I wouldn’t know what to look for in there.

Any advice where to look?


Initial commandline parameters: 
Sun Nov 25 11:28:21 EST 2012: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
suspend initiated: Sun Nov 25 11:28:21 EST 2012


Linux cwresearch.site 3.4.11-2.16-desktop #1 SMP PREEMPT Wed Sep 26 17:05:00 UTC 2012 (259fc87) x86_64 x86_64 x86_64 GNU/Linux
kernel command line: 'BOOT_IMAGE=/vmlinuz-3.4.11-2.16-desktop root=UUID=5b81734d-d422-4682-8aaa-2814b9893ec9 video=1920x1080 resume=/dev/disk/by-id/ata-SAMSUNG_SSD_PM830_mSATA_128GB_S0XNNEAC700664-part2 quiet rdblacklist=nouveau nomodeset showopts'
Module                  Size  Used by
fuse                   86852  3 
af_packet              39358  0 
xt_LOG                 17471  10 
xt_tcpudp              12884  2 
xt_limit               12711  10 
xt_pkttype             12504  3 
nf_conntrack_ipv6      14497  3 
nf_defrag_ipv6         18107  1 nf_conntrack_ipv6
ip6t_REJECT            12939  3 
ipt_REJECT             12541  3 
ip6table_raw           12683  1 
xt_NOTRACK             12504  4 
iptable_raw            12678  1 
iptable_filter         12810  1 
ip6table_mangle        12700  0 
nf_conntrack_netbios_ns    12665  0 
nf_conntrack_broadcast    12589  1 nf_conntrack_netbios_ns
nf_conntrack_ipv4      15005  3 
nf_defrag_ipv4         12729  1 nf_conntrack_ipv4
ip_tables              27239  2 iptable_raw,iptable_filter
xt_conntrack           12760  6 
nf_conntrack           97545  6 nf_conntrack_ipv6,xt_NOTRACK,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_conntrack_ipv4,xt_conntrack
ip6table_filter        12815  1 
ip6_tables             27207  3 ip6table_raw,ip6table_mangle,ip6table_filter
x_tables               33967  15 xt_LOG,xt_tcpudp,xt_limit,xt_pkttype,ip6t_REJECT,ipt_REJECT,ip6table_raw,xt_NOTRACK,iptable_raw,iptable_filter,ip6table_mangle,ip_tables,xt_conntrack,ip6table_filter,ip6_tables
cpufreq_conservative    13783  0 
cpufreq_userspace      13162  0 
cpufreq_powersave      12618  0 
binfmt_misc            17463  1 
snd_hda_codec_hdmi     36102  1 
snd_hda_codec_realtek    81862  1 
snd_hda_intel          33312  2 
snd_hda_codec         136135  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
snd_pcm               109282  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq                69746  0 
arc4                   12529  2 
snd_timer              29370  2 snd_pcm,snd_seq
snd_seq_device         14497  1 snd_seq
snd                    87206  13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
iwlwifi               354023  0 
mac80211              555559  1 iwlwifi
dell_wmi               12681  0 
iTCO_wdt               17948  0 
uvcvideo               76392  0 
sr_mod                 22295  0 
videobuf2_core         32851  1 uvcvideo
dell_laptop            18063  0 
videodev              111306  1 uvcvideo
soundcore              15047  1 snd
videobuf2_vmalloc      13020  1 uvcvideo
cfg80211              208339  2 iwlwifi,mac80211
sdhci_pci              22792  0 
sdhci                  38242  1 sdhci_pci
sparse_keymap          13890  1 dell_wmi
videobuf2_memops       13608  1 videobuf2_vmalloc
dcdbas                 14881  1 dell_laptop
acpi_cpufreq           18857  1 
mperf                  12667  1 acpi_cpufreq
coretemp               13444  0 
crc32c_intel           12901  0 
ghash_clmulni_intel    13180  0 
aesni_intel            51522  0 
cryptd                 16306  2 ghash_clmulni_intel,aesni_intel
aes_x86_64             17208  1 aesni_intel
sg                     36394  0 
cdrom                  46687  1 sr_mod
joydev                 17457  0 
pcspkr                 12718  0 
i2c_i801               17779  0 
rts_pstor             446046  0 
mmc_core              117686  2 sdhci_pci,sdhci
iTCO_vendor_support    13718  1 iTCO_wdt
rfkill                 26009  3 dell_laptop,cfg80211
r8169                  61164  0 
snd_page_alloc         18484  2 snd_hda_intel,snd_pcm
mei                    80083  0 
wmi                    19070  1 dell_wmi
battery                18691  0 
ac                     13097  0 
pciehp                 37466  0 
pci_hotplug            35159  1 pciehp
microcode              35772  0 
autofs4                42753  2 
hid_logitech_dj        18423  0 
i915                  505525  0 
drm_kms_helper         51052  1 i915
drm                   272508  2 i915,drm_kms_helper
i2c_algo_bit           13413  1 i915
xhci_hcd              141588  0 
video                  19345  1 i915
button                 13906  1 i915
processor              44907  9 acpi_cpufreq
thermal_sys            24703  2 video,processor
scsi_dh_rdac           17408  0 
scsi_dh_alua           17121  0 
scsi_dh_hp_sw          12894  0 
scsi_dh_emc            17258  0 
scsi_dh                14554  4 scsi_dh_rdac,scsi_dh_alua,scsi_dh_hp_sw,scsi_dh_emc
nvidia              11288143  0 


             total       used       free     shared    buffers     cached
Mem:      16345664    1212164   15133500          0      85536     514644
-/+ buffers/cache:     611984   15733680
Swap:     30394364          0   30394364




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


/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01laptop-mode suspend suspend:


/usr/lib/pm-utils/sleep.d/01laptop-mode suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/02rtcwake suspend suspend:
rtcwake alarm not enabled in /etc/pm/config.d/rtcwake.config, doing nothing...


/usr/lib/pm-utils/sleep.d/02rtcwake suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/06autofs suspend suspend:
autofs.service - Automounts filesystems on demand
      Loaded: loaded (/lib/systemd/system/autofs.service; disabled)
      Active: inactive (dead)
      CGroup: name=systemd:/system/autofs.service




/usr/lib/pm-utils/sleep.d/06autofs suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/30s2disk-check suspend suspend:


/usr/lib/pm-utils/sleep.d/30s2disk-check suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/45pcmcia suspend suspend:
ejecting PCMCIA cards...


/usr/lib/pm-utils/sleep.d/45pcmcia suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:


/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/50rcnetwork suspend suspend:


/usr/lib/pm-utils/sleep.d/50rcnetwork suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Failed.


/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:


/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75ndiswrapper suspend suspend:
/usr/lib/pm-utils/sleep.d/75ndiswrapper: line 7: return: can only `return' from a function or sourced script


/usr/lib/pm-utils/sleep.d/75ndiswrapper suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/80acpi-fan suspend suspend:


/usr/lib/pm-utils/sleep.d/80acpi-fan suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/80videobios suspend suspend:


/usr/lib/pm-utils/sleep.d/80videobios suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:


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


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


/usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95packagekit suspend suspend:


/usr/lib/pm-utils/sleep.d/95packagekit suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
nVidia binary video drive detected, not using quirks.


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


/usr/lib/pm-utils/sleep.d/99Zgrub suspend suspend: success.
Running hook /etc/pm/sleep.d/99at suspend suspend:
atd.service - Execution Queue Daemon
      Loaded: loaded (/lib/systemd/system/atd.service; disabled)
      Active: inactive (dead)
      CGroup: name=systemd:/system/atd.service




/etc/pm/sleep.d/99at suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99info suspend suspend:


/usr/lib/pm-utils/sleep.d/99info suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:


/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Sun Nov 25 11:28:21 EST 2012: performing suspend
INFO: using built-in quirks database from HAL.
INFO: S2RAM_OPTS from HAL quirks: ' '.

Success! (…I think…)
Among the xillion-and-two things I’d done trying to get the nVidia card working properly I had added a boot option

 nomodeset 

. Removing it allows the laptop to sleep and hibernate the way it should and wake up when told. Bumblebee seems to not mind and living with the new laptop is better.
https://forums.opensuse.org/clientscript/ckeditor/plugins/smiley/images/images/smiliesnew/lol.png

I just fixed it for my Acer Aspire V5 171 by adding parameters to the s2ram call. My display was not coming on and staying blank after a suspend to ram. I set the power button to shutdown so I could debug this and used ctrl-alt-backspace, backspace to quit my session it it hung.

Try s2ram -f -a -1 -m

If that works (don’t ask me what those parameters mean, it was too late already yesterday)…

You can add (as root) a new file called “config” in /etc/pm/config.d containing just one line:
S2RAM_OPTS="-f -a -1 -m"

NB: I also removed the conflicting settings file that was already in there… YMMV

After this suspend to ram and resume works well on my machine.

These links helped me a lot, so thanks to all who worked on them!
https://en.opensuse.org/SDB:Pm-utils
https://en.opensuse.org/SDB:Suspend_to_RAM