Skip to contentSkip to conversation

s2both

DISCUSSION Rodolfo García Peñas 1 participant 1 message Dec 29, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I am working in the suspend-utils tools, but s2both is not working fine. s2both is a tool that saves a resume image (to hibernate) but only suspend the machine. Then, if the power fails while the system is suspended, then the resume image is used. But it doesn't work.

Is possible to include the s2both option inside the kernel (echo both > /sys/power/state)? I was reading the kernel code, and I am not sure with the current functions is possible to suspend to ram and restore from disk (S3 -> S4). What should be the new code for s2both?

If s2both should not included in kernel (but as user space tool) is possible suspend to ram but boot the system and resume from disk with the current kernel code? In this case, what kernel calls should I do?

Thanks,
Rodolfo.

Signature · 2 lines
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/