Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using pm-hibernate, and would like to reboot the machine after it's done hibernating, rather than having the machine turn off.

Is there a way to do this with pm-hibernate, or any other Linux hibernate thing?

share|improve this question
    
I would think the answer is, probably, yes, but I don't know how. You'll probably you'll probably have to investigate all the steps that make hibernate in the first place and write a script to do it. Because I think this is all basically scripted in the first place. –  xenoterracide Apr 11 '10 at 1:03
    
But I just want to know why you want to reboot the system after hibernate. AFAIK, boot up the box after hibernate will bring you to the stats you turned it off. You want to loop it over? Sorry for my poor English. I hope I expressed my idea fully. –  Grissiom Apr 12 '10 at 11:52
1  
Dual boot, if you hibernate windows you can reboot quickly into an already hibernated linux. Or the other way around. :) –  Algific Apr 12 '10 at 12:32

1 Answer 1

up vote 5 down vote accepted

From man pm-hibernate in the "CONFIGURATION VARIABLES" section:

HIBERNATE_MODE
Default method to power down the system when hibernating. If not set, the system will use the kernel default as a default value. Check /sys/power/disk for valid values. The default value will be surrounded by [square brackets].

On my system that file contains:

test testproc [shutdown] reboot
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.