piccaso Posted June 14, 2007 Share Posted June 14, 2007 I tried to find a way to make computer Hibernate and reboot instead off powering off but i didnt get far. Passing both flags to Shutdown() doesn't do anything and i didn't find any info on msdn. The relevant api's where: InitiateSystemShutdown[Ex] SetSuspendState SetSystemPowerState ExitWindows[Ex] did i miss anything? Of course i've been searching the net on that topic but only found requests on adding this to some linux distribution... If someone of you knows how to do this please let me know. thanks. CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
Wuzfuzzy Posted June 14, 2007 Share Posted June 14, 2007 Why would you want to hibernate and reboot? Or do you mean send the machine into hibernate and when the alotted time comes up for the machine to reboot instead of powering off? Link to comment Share on other sites More sharing options...
piccaso Posted June 14, 2007 Author Share Posted June 14, 2007 to switch to another os faster... CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
gsglive Posted June 14, 2007 Share Posted June 14, 2007 (edited) What you are thinking about is: $flag = 64;64 is Hibernate Shutdown ($flag) Search for more info in the index Autoit3 Help file. - gsglive Edited June 14, 2007 by gsglive - gsglive Link to comment Share on other sites More sharing options...
gsglive Posted June 14, 2007 Share Posted June 14, 2007 Then: $min = 30; Change the #min as needed $n = ($min * 1000) $timecheck = 0 $time=TimerInit() While $timecheck <> $n $timecheck = TierDiff($time) WEnd Shutdown (0); ) is turn off - gsglive - gsglive Link to comment Share on other sites More sharing options...
piccaso Posted June 15, 2007 Author Share Posted June 15, 2007 well no thats not what i'm talking about i want windows to hibernate and reboot. normaly if you do Shutdown(64) is hibernate's and powers off but i want it to reboot so i can select another partition in my boot manager... CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
tAKTelapis Posted June 15, 2007 Share Posted June 15, 2007 wait, you want windows to hibernate, and then reboot into linux, and when you come back to windows, you want your system to load from its hibernated state? Link to comment Share on other sites More sharing options...
piccaso Posted June 15, 2007 Author Share Posted June 15, 2007 Yes CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
Wuzfuzzy Posted June 15, 2007 Share Posted June 15, 2007 (edited) Vmware would be simpler and free. allows both to work at the same time. But I will look around since hibernation is both a OS and bios thing. I would say you can;t have your cake and eat it too (meaning both Windows hibernate then resume to linux hibernate resume windows from same spot) Edited June 15, 2007 by Wuzfuzzy Link to comment Share on other sites More sharing options...
Wuzfuzzy Posted June 15, 2007 Share Posted June 15, 2007 (edited) It is possible http://apcmag.com/3895/how_vista_screws_dual_booting_nirvana it is possible GRUB is your answer and XP along with ubuntu or something similar. Edited June 15, 2007 by Wuzfuzzy Link to comment Share on other sites More sharing options...
ResNullius Posted June 16, 2007 Share Posted June 16, 2007 (edited) It is possible http://apcmag.com/3895/how_vista_screws_dual_booting_nirvana it is possible GRUB is your answer and XP along with ubuntu or something similar.Sounds like picasso already knows that can be done, but according to his first post:I tried to find a way to make computer Hibernate and reboot instead off powering off...I think he wants one continuos process, ie: issue the hibernate command, but instead of the computer shutting down once it's hibernated which is the normal procedure, he wants to have the computer automatically reboot itself so he can then choose his alternate OS at boot time.Since the entire contents of memory are written to the hibernation file, I think you'll need to find some way of duplicating that functionality/file structure outside of the normal hibernation routine. If you can do that, then you can combine that procedure with a standard reboot and achieve the same thing. I'll see if I can do some research for tools that might help... Edited June 16, 2007 by ResNullius Link to comment Share on other sites More sharing options...
piccaso Posted June 16, 2007 Author Share Posted June 16, 2007 Vmware and similar just slow down things to much and i cant access all of my hardware directly...Vmware in particular brings my computer down to its knees even when not active (the services which run allways)i'd rather go with virtual box, bochs, qemu... but all this virtualization tools perform badly on windows (compared to linux where some of them have pretty good acceleration layers)so this isnt an option for me as i want to have windows xp as my main os.as my second os i have slax which doesn't save changes to disk unless i tell it to so i cansafely hit the reset button to return to windows.and even if i shut it down proper it takes less than 5 seconds...windows aint that way, it takes forever to boot and forever to shut down unless you use the hibernation feature which ismuch faster... (at least on my computer it makes a big difference)as ResNullius said i know that ist possible, but have to rely on another boot manager (i choose that one)and my problem is just the annoyance of pushing the power button every time i hibernated windows.I thought maybe it's possible to tell windows not to power down.But unfortunately i come to the conclusion - and please correct me if i'm wrong - that windows just doesn't support this.so i would have to reverse the part that interacts with the wmi interface or whatever is used to power down and modify it.which i'm unable to do because i have no idea where to start looking, and its probably a eula violation...But i would mess with this anyway if i would know where to start thanks ResNullius for going on a search, maybe you'll have more luck than i have CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now