Skip to contentSkip to conversation

Mismatched suspend2 interfaces == Suspend was aborted

DISCUSSION Andrew Haninger 2 participants 3 messages Jun 25, 2005

lore
Share & tools
lore
#0 lore raw

I'm having an odd problem with software-suspend recently. Running the latest kernel/suspend2/hibernate, I'm getting an error which is confusing me:

WARNING: The suspend2 scriptlet was written for a different suspend2 interface
version from the one in your running kernel. This scriptlet was written for version between 15 and 15 where as the version running in your kernel is 16. Things may not work as expected, but proceeding anyway ...

- hibernate: Suspend reported the following errors:
Suspend was aborted (see dmesg).

"written for a version between 15 and 15" is the part that is confusing me. First, version 15 of what? Second, between a version and itself?

So, I look at dmesg. Here's the stuff it says to give when reporting bugs (plus some extra stuff):

Software Suspend 2.1.9.5: Initiating a software suspend cycle. Software Suspend 2.1.9.5: Swapwriter: Signature found. Software Suspend 2.1.9.5: Suspending enabled.
Suspend2: Failed to initialise the compression transform. Please include the following information in bug reports:
- SUSPEND core : 2.1.9.5
- Kernel Version : 2.6.12.1
- Compiler vers. : 3.2
- Attempt number : 8

- Pageset sizes  : 3281 (3281 low) and 12192 (12192 low).
- Parameters     : 1 64 0 1 0 5
- Calculations   : Image size: 15676. Ram to suspend: 524.
- Limits         : 49147 pages RAM. Initial boot: 46744.

- Overall expected compression percentage: 0.
- Compressor enabled.
- Swapwriter active.
Swap available for image: 48185 pages.
- Filewriter inactive.
- Preemptive kernel.
- Max extents used: 8
- No I/O speed stats available.

I've tried removing /etc/hibernate and /usr/local/sbin/hibernate and reinstalling hibernate script 1.08, but I still get this error.

I think this might have something to do with the new movement to the cryptoapi and there's just something I'm not getting.

Anyway, here's my bug report. Thanks.

-Andy

#1 lore raw

Hi Andrew.

The Suspend2 mailing lists can be found via suspend2.net.

Quoted 10 lines · Andrew Haninger

I'm having an odd problem with software-suspend recently. Running the latest kernel/suspend2/hibernate, I'm getting an error which is confusing me:

WARNING: The suspend2 scriptlet was written for a different suspend2 interface
version from the one in your running kernel. This scriptlet was written for version between 15 and 15 where as the version running in your kernel is 16. Things may not work as expected, but proceeding anyway ...

Quoted 6 lines

- hibernate: Suspend reported the following errors:
Suspend was aborted (see dmesg).

"written for a version between 15 and 15" is the part that is confusing me. First, version 15 of what? Second, between a version and itself?

The hibernate script is talking about the version of Suspend2's proc interface (cat /proc/software_suspend/interface_version). With the change to cryptoapi, I updated the number to 16 (as you correctly guess below).

Quoted 26 lines

So, I look at dmesg. Here's the stuff it says to give when reporting bugs (plus some extra stuff):

Software Suspend 2.1.9.5: Initiating a software suspend cycle. Software Suspend 2.1.9.5: Swapwriter: Signature found. Software Suspend 2.1.9.5: Suspending enabled.
Suspend2: Failed to initialise the compression transform. Please include the following information in bug reports:
- SUSPEND core : 2.1.9.5
- Kernel Version : 2.6.12.1
- Compiler vers. : 3.2
- Attempt number : 8

- Pageset sizes  : 3281 (3281 low) and 12192 (12192 low).
- Parameters     : 1 64 0 1 0 5
- Calculations   : Image size: 15676. Ram to suspend: 524.
- Limits         : 49147 pages RAM. Initial boot: 46744.

- Overall expected compression percentage: 0.
- Compressor enabled.
- Swapwriter active.
Swap available for image: 48185 pages.
- Filewriter inactive.
- Preemptive kernel.
- Max extents used: 8
- No I/O speed stats available.

Quoted 5 lines

I've tried removing /etc/hibernate and /usr/local/sbin/hibernate and reinstalling hibernate script 1.08, but I still get this error.

I think this might have something to do with the new movement to the cryptoapi and there's just something I'm not getting.

That's right.

Assuming you compiled LZF cryptoapi support in and want to use it, the right thing to do is edit your hibernate.conf (probably in /etc/hibernate) and add the lines:

ProcSetting compressor lzf
ProcSetting disable_encryption 1

If you haven't compiled lzf in, you'll need to include the module in an initrd/initramfs and load it before doing echo > /proc/software_suspend/do_resume in the script, so compiling in is the simpler option.

Hope this helps.

Nigel

#2 lore raw
Quoted 6 lines · Nigel Cunningham

Assuming you compiled LZF cryptoapi support in and want to use it, the right thing to do is edit your hibernate.conf (probably in /etc/hibernate) and add the lines:

ProcSetting compressor lzf
ProcSetting disable_encryption 1

I saw the note about this on suspend2.net but, for whatever reason, read it as "add this to your hibernate script." So I incorrectly added the above lines to /usr/local/sbin/hibernate. Durrr.

Quoted 4 lines

If you haven't compiled lzf in, you'll need to include the module in an initrd/initramfs and load it before doing echo > /proc/software_suspend/do_resume in the script, so compiling in is the simpler option.

I think I had compiled lzh as a module so this was also causing problems. Since I compiled lzh (and some of the others that looked like fun) into the kernel and added the above lines to /etc/hibernate/hibernate.conf, hibernation seems to be working better. I'll have to play with it some more so it breaks.

Quoted 1 line

Hope this helps.

Unfortunately, it did.

Thanks.

-Andy