LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error in kernel.log - initcall software_resume returned -2 (http://www.linuxquestions.org/questions/linux-newbie-8/error-in-kernel-log-initcall-software_resume-returned-2-a-948203/)

masuch 06-02-2012 05:57 PM

error in kernel.log - initcall software_resume returned -2
 
Hi,

I have found following in kernel.log

kernel: [ 2.595644] PM: Hibernation image not present or could not be loaded.
kernel: [ 2.595647] initcall software_resume+0x0/0x30 returned -2 after 2 usecs
kernel: [ 2.595648] initcall software_resume+0x0/0x30 returned with error code -2

Could please anybody explain me what does it mean ?
where can I found some documentation about it ?

thank you,
kind regards,
M.

unSpawn 06-02-2012 08:48 PM

Quote:

Originally Posted by masuch (Post 4694086)
PM: Hibernation image not present or could not be loaded.

Literally what it says: there is no partition configured where a resume signature could be found or it couldn't be loaded. It's an info level message (not a warning).


Quote:

Originally Posted by masuch (Post 4694086)
initcall software_resume+0x0/0x30 returned -2 after 2 usecs
initcall software_resume+0x0/0x30 returned with error code -2

You'll find it with comments in kernel/power/disk.c and kernel/power/hibernate.c (show here is 2.6.33):
Code:

647 /**
648  *      software_resume - Resume from a saved image.
649  *
650  *      Called as a late_initcall (so all devices are discovered and
651  *      initialized), we call swsusp to see if we have a saved image or not.
652  *      If so, we quiesce devices, the restore the saved image. We will
653  *      return above (in hibernate() ) if everything goes well.
654  *      Otherwise, we fail gracefully and return to the normally
655  *      scheduled program.
656  *
657  */

Basically a follow-up to the PM: Hibernation message. It's not an error unless you have resume configured and it's not working properly.

masuch 06-03-2012 03:49 AM

thank you for explanation
(I do not use hibernation)
this part of errors in kernel.log errors - works properly.


All times are GMT -5. The time now is 08:16 AM.