On Thu, 8 Dec 2011 19:07:00 +0000 "Daniel P. Berrange" <berra...@redhat.com> wrote:
> On Thu, Dec 08, 2011 at 04:52:58PM -0200, Luiz Capitulino wrote: > > This is basically suspend to disk on a Linux guest. > > > Now, while testing this or even "echo disk > /sys/power/state" I get several > > funny results. Some times qemu just dies after printing that message: > > I think you should really be invoking 'pm-hibernate', because IIUC there > are others tasks that need to be done, besides just telling the kernel > to hibernate via sysfs. The good thing about it is that it will work among all distros... Maybe we should try to run '/usr/sbin/pm-hibernate' first, and only write to the sysfs file if that fails.