Jan Ritzerfeld wrote:
Which openSUSE version do you use?
Thanks. I use openSUSE 12.2 with the latest kernel (3.6.9-1-desktop) from Kernel:stable:standard repository.
The normal openSUSE methods (tested: KDE start menu and "powersave -U") do not work as expected. The computer suspends and switches off, but after switch-on I see, that the kernel does not find a valid hibernation image:
Did you check /var/log/pm-suspend.log for any errors? Maybe some module prevents fully writing the image to disk. Candidates are fglrx, nvidia, nouveau, external USB devices, etc...
Yes, at first there was a problem with my TV card. I fixed this driver problem earlier with a custom file. After that I did not see any errors or warnings in /var/log/pm-suspend.log, but hibernation with default method (SLEEP_MODULE="uswsusp") does not work.
/etc/pm/sleep.d/98tv-card: #!/bin/bash
. $PM_UTILS_LIBDIR/functions
case "$1" in hibernate|suspend) stopservice mythbackend modprobe -r dvb_usb_dib0700 ;; thaw|resume) modprobe dvb_usb_dib0700 restartservice mythbackend ;; *) ;; esac
exit 0
What is your default hibernation mode? That is, what is the output of "cat /sys/power/disk" before echoing "platform" to it? It should be platform (see /etc/suspend.conf), however, lets check this first.
"platform" is my default hibernation mode.
$ cat /sys/power/disk [platform] shutdown reboot suspend
My question: Is it possible to configure openSUSE so, that the working method ("echo disk > /sys/power/state", see above) is used in KDE and maybe in "powersave -U" instead of the other method (s2disk)?
AFAIK the hibernation mode is set in /etc/suspend.conf .
I did not find a matching variable for hibernation method in /etc/suspend.conf. I set "splash n" in /etc/suspend.conf because of https://bugzilla.novell.com/show_bug.cgi?id=782817, but I did not test, if this change is necessary. I changed the default hibernation method with a custom file
/etc/pm/config.d/sleep-module.config: SLEEP_MODULE="kernel"
I found a hint for this in /usr/lib/pm-utils/defaults.
With SLEEP_MODULE="kernel" I can successfully hibernate my PC. SLEEP_MODULE="uswsusp" still does not work.
Greetings, Björn