Re: Mismatched suspend2 interfaces == Suspend was aborted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew.

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

On Sat, 2005-06-25 at 14:20, Andrew Haninger wrote:
> 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?

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).

> 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.

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux