11.3 can not suspend to disk

After i click hibernate system begin to, but then it returns from suspend progress bar back to screensaver.

from dmesg:

[56908.741010] PM: Marking nosave pages: 000000000009f000 - 0000000000100000
[56908.741016] PM: Basic memory bitmaps created
[56909.338255] [drm] Requested: e: 20000 m: 0 p: 16
[56909.338259] [drm] Setting: e: 20000 m: 0 p: 16
[56909.353945] [drm] not in vbl for pm change 00020002 00000000 at entry
[56910.177820] Syncing filesystems ... done.
[56910.272523] Freezing user space processes ... (elapsed 0.01 seconds) done.
[56910.288458] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[56910.309906] PM: Preallocating image memory... 
[56912.419559] snapshot_ioctl: ioctl '4004330c' is deprecated and will be removed soon, update your suspend-to-disk utilities
[56912.419563] Restarting tasks ... done.
[56912.546362] PM: Basic memory bitmaps freed

from /var/log/pm-suspend.log:

             total       used       free     shared    buffers     cached
Mem:       1923212    1452900     470312          0     119172     365592
-/+ buffers/cache:     968136     955076
Swap:      4192928     434260    3758668

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/sda9
  setting image size to 4192928
  adding these parameters from /etc/suspend.conf:
success.
/usr/lib/pm-utils/sleep.d/45pcmcia hibernate hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth hibernate hibernate:not applicable.
/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/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:not applicable.
/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 #2, because it has the noresume option
  running kernel is grub menu entry 0 (vmlinuz-2.6.34.7-0.7-pae)
  preparing boot-loader: selecting entry 0, kernel /boot/2.6.34.7-0.7-pae
  grub-once:   saving original /boot/grub/default
  running '/usr/sbin/grubonce 0'
Using entry #0: Desktop - openSUSE 11.3 - 2.6.34.7-0.7
    time needed for sync: 1.4 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 Jan 21 00:43:39 EET 2011: performing hibernate
INFO: using built-in quirks database from HAL.
INFO: S2RAM_OPTS from HAL quirks: ' '.
Fri Jan 21 00:43:45 EET 2011: Awake.
Fri Jan 21 00:43:45 EET 2011: Running hooks for thaw
/usr/lib/pm-utils/sleep.d/99video thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/99info thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/99Zgrub thaw hibernate:INFO: running grub-once-restore
  restoring original /boot/grub/default
success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/95packagekit thaw hibernate:method return sender=:1.390 -> dest=:1.389 reply_serial=2
success.
/usr/lib/pm-utils/sleep.d/95led thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/90clock thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/80videobios thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/80acpi-fan thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/75modules thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate:method return sender=:1.15 -> dest=:1.392 reply_serial=2
success.
/usr/lib/pm-utils/sleep.d/50rcnetwork thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/45pcmcia thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/30s2disk-check thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/06autofs thaw hibernate:Shutting down automount ..done
Starting automount ..done
success.
/usr/lib/pm-utils/sleep.d/02rtcwake thaw hibernate:not applicable.
/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:success.
/usr/lib/pm-utils/sleep.d/00logging thaw hibernate:success.
Fri Jan 21 00:43:55 EET 2011: Finished.

In case it’s a driver problem, to hibernate without X (and DE) present, you can try pm-hibernate from a text console (e.g. Ctrl+Alt+F1). Then:

Sign in as root.
Issue command to go to Runlevel 3: init 3
Press enter to get commandline back
Issue command pm-hibernate

If it works, the problem is probably with the xorg driver. Depending on how you resume from hibernate, if in console, you will need to sign back in as root, and issue the command init 5 to reload X and sign into the DE as normal user. Don’t forget to go back to the console (Ctrl+Alt+F1), press enter for commandline and logout from root (exit). Ctrl+Alt+F7 should get you back to the DE.

What about this:

[56912.419559] snapshot_ioctl: ioctl ‘4004330c’ is deprecated and will be removed soon, update your suspend-to-disk utilities

Did you look for an update?

Hi,
I got the same problem on my netbook Acer Aspire One D255 but this is KDE related because it works on KDE 4.4.4 but after upgrade to 4.5.5 (or 5.4 or 5.3) it does not work anylonger!

No more suspend/hibernation after KDE update

Hibernation works from single-user text console. Moreover its working from DE if I login into fresh user profile. When I logged to my profile and have some programs running it might work, but I need to give some consecutive retries before it actually hibernates. So it seems more like memory related problem. Don’t know where to look further, as dmesg and pm-suspend.log clear of any error messages.

pm-utils-1.3.0-10.1.1.i586

HI,
I have the same problem if I use KDE greater than 4.4.4. So I guess this is KDE related

Doesn’t that rather suggest that the problem lies with the use of KDE 4.5.5 or the previous non-standard KDE updates? So re-establishing your hidden KDE settings files in /home may be the way to go, first copying the old ones to a safe place before deleting.

HI,
I tried with a fresh ./kde4 and get the same problem. I did not try with a new user.

Did you notice on which version of KDE did the problem start? Assume you did restart KDE after resetting ./kde4 (logoff and back on again, or even a reboot?) :slight_smile:

yes 4.5.4 and 4.5.5. I did not try others. With genuine 4.4.4, no problem

You may have to live with it until 11.4 arrives, go back to KDE 4.4.4., or rebuild your system with newer kernels, xorg, drivers and bleeding-edge KDE. I would not recommend the latter alternative.

The problem on my notebook with KDE 4.4.4 or 4.5.4, is also in the power management area (although Hibernate works), where KDE’s management fails to manage/report a transition from mains power to/from battery power. However the underlying kernel/acpi modules work and correctly report status, and Gnome is ok. 11.3 KDE (4.4.4) uses HAL for h/w management, but Gnome doesn’t. HAL was being deprecated even before 11.3 was released (and IIRC gone from 11.4), and udev will be used instead. At some point KDE’s power management backend gets changed to support that transition from HAL. That could be affecting KDE 4.5.x bugs, given your regression, but I don’t know for sure or which version.

Correction to that statement re KDE power management: Transition from AC power to/from battery works for KDE 4.5.4, but that’s also with kernel-desktop 2.6.36.3-4 and higher. :wink: