Stefan Seyfried wrote: > Michael, > > might i ask you to try the attached version? It does the following: > > - it reads the resume device that was set up from /sys/power/resume, the > format is "major:minor" in decimal into $RDEV. > - then it reads the swap partitions from /proc/swaps, one line at a time > - it checks the major/minor of those partitions if they match $RDEV > - if there was no match => bail out > - otherwise => prepare suspend. > > The only thing i can imagine why this would fail is that /sys/power/resume > is not set up when the partition is compiled in (or of course a new bug > i might have put in ;-) > > If it fails for you, please tell me the contents of your /sys/power/resume > directly after boot and if they match the compiled-in resume partition. >
I tested the script with a self compiled 2.6.16-rc3, 2.16.15.4 and a stock Debian kernel 2.6.15 with an initrd. After applying this small fix --- prepare_suspend_to_disk.new 2006-02-18 10:36:40.000000000 +0100 +++ prepare_suspend_to_disk 2006-02-18 11:24:58.000000000 +0100 @@ -22,9 +22,9 @@ ########################################################################### # # first get helper functions (e.g. DEBUG, load_scheme, ...) - "${0%/*}/helper_functions" - "${PUB_SCRIPT_DIR}/sleep_helper_functions" - "${PUB_SCRIPT_DIR}/sleep_helper_messages" +. "${0%/*}/helper_functions" +. "${PUB_SCRIPT_DIR}/sleep_helper_functions" +. "${PUB_SCRIPT_DIR}/sleep_helper_messages" set_variables "suspend2disk" prepare_logs "suspend2disk" it worked for me as expected I had one little issued with the initrd kernel (self compiled one are not affected), where I had to reload uhci_hcd after STD, otherwise I got the following error messages: Feb 18 11:11:38 pluto kernel: usb 1-2: new low speed USB device using uhci_hcd and address 8 Feb 18 11:11:38 pluto kernel: usb 1-2: device not accepting address 8, error -71 Feb 18 11:11:38 pluto kernel: usb 1-2: new low speed USB device using uhci_hcd and address 9 Feb 18 11:11:39 pluto kernel: usb 1-2: device not accepting address 9, error -71 Feb 18 11:11:39 pluto kernel: usb 3-2: new full speed USB device using uhci_hcd and address 2 Feb 18 11:11:39 pluto kernel: usb 3-2: device descriptor read/64, error -71 Feb 18 11:11:39 pluto kernel: usb 3-2: device descriptor read/64, error -71 Feb 18 11:11:39 pluto kernel: usb 3-2: new full speed USB device using uhci_hcd and address 3 Feb 18 11:11:40 pluto kernel: usb 3-2: device descriptor read/64, error -71 According to /etc/powersave/sleep uhci_hcd should be reloaded by default. So I don't know what's going wrong here. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ powersave-devel mailing list powersave-devel@forge.novell.com http://forge.novell.com/mailman/listinfo/powersave-devel