topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 1:24 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE: Faster boots combining hibernate and restart (Boot Snooze)  (Read 162230 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #50 on: February 04, 2010, 06:06 PM »
Boot Snooze featured on DownloadSquad today!

http://www.downloads...ation-and-rebooting/

Screenshot - 2_4_2010 , 6_03_26 PM_thumb.png

At the end the reviewer says: "It would be nice if Boot Snooze would let you adjust the amount of time shown on the countdown clock. 10 minutes might be overkill. "

I agree completely -- let us customize the delay with a commandline option maybe?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #51 on: February 04, 2010, 06:07 PM »
Congrats should be given also to Mamoun, who posted this idea -- since it was a very clever idea.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #52 on: February 04, 2010, 06:18 PM »
I will be adding configurable delays for both before and after the reboot.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #53 on: February 04, 2010, 07:21 PM »
I will be adding configurable delays for both before and after the reboot.
Nice!

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #54 on: February 04, 2010, 08:31 PM »
Configurable delays sound good.

Any thoughts as to why my system doesn't hibernate / standby from Boot Snooze, when it will do both when manually triggered from the Turn Off Computer menu?

Anything I can do to help you test?


skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #55 on: February 04, 2010, 09:19 PM »
v1.0.2 - 2010-02-04
    + Added configurable delay before hibernating/standby.
    + Added configurable delay before rebooting.  (Thanks, MerleOne)


2010-02-04_211657.pngDONE: Faster boots combining hibernate and restart (Boot Snooze)

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #56 on: February 04, 2010, 09:36 PM »
Any thoughts as to why my system doesn't hibernate / standby from Boot Snooze, when it will do both when manually triggered from the Turn Off Computer menu?  Anything I can do to help you test?

I really have no idea, Ampa.  :(  It works fine on my computer, my wife's and mouser's secondary PC.  I believe it works for Tomos, too.   

war59312

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 9
    • View Profile
    • Will's Blog
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #57 on: February 04, 2010, 11:31 PM »
Nice little app. Thanks! :D

Few suggestions though..

1.) Fix the about window text, wordwrap it or make window bigger so all text is readable, without having to enlarge.

2.) "Check For Updates" requires DcUpdater so how about if user downloads it and copies it to the same folder as your app then use it there. That is simply check if DcUppdater exits in the current bath.

Atm if I extract DcUpdater to same folder it works, but if in sub folder it does not. Problem with extracting to same folder is that DcUppdater then shows BootSnooze and itself twice.

3.) "Delay before reboot" has zero as default. Perhaps 1 is more save as default value?

4.) "RunOnce" entry is not removed if user cancels the operation. It should be.

5.) Verify that hibernation has not been disabled.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"Heuristics"=hex:06,00,00,00,00,01,00,00,00,00,00,00,f0,00,00,00,3f,42,0f,00

If that is the value of the registry key then hibernation has been disabled. Thus the option to hibernate should be switched to "Enable Hibernation". Then if the user clicks that then change it back to Hibernate button.

To enable hibernation change the key to:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,3f,42,0f,00

Differences highlighted.

Though if user is running vista or windows 7 then simply issue "powercfg.exe /hibernate on" and "powercfg -h on".

6.) Speaking of hibernation, check to see if user is running vista or windows 7 and if so then run "powercfg /a" internally and decide which methods to use are best.
God Bless America
« Last Edit: February 04, 2010, 11:55 PM by war59312 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #58 on: February 04, 2010, 11:34 PM »
#2 is my responsibility -- i like the idea of supporting dcupdater in a subdirectory, so i'll add a check for that in dcuhelper.
but i dont really understand the thing about listing twice or why that would happen.. can you post more about it here: https://www.donation...dex.php?topic=9607.0

war59312

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 9
    • View Profile
    • Will's Blog
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #59 on: February 04, 2010, 11:45 PM »
Post updated..
God Bless America

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #60 on: February 04, 2010, 11:56 PM »
v1.0.3 - 2010-02-04
    ! If user cancels, the RunOnce registry entry is deleted now.  (Thanks, war59312)

MerleOne

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 957
  • 4D thinking
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #61 on: February 05, 2010, 01:48 AM »
v1.0.2 - 2010-02-04
    + Added configurable delay before hibernating/standby.
    + Added configurable delay before rebooting.  (Thanks, MerleOne)

 (see attachment in previous post)
Thanks for making it real !
.merle1.

megablue

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #62 on: February 05, 2010, 02:42 AM »
I had thought of similar idea before.

My idea was
Creating a "hibernation point" which allows your PC to start from previous state every single time.
Rather than, restarts then enters hibernation mode (anyway, the pros is easier to archive) .

Maybe you can explore into it...
There are a few technical issues to address:
1. how to force windows to start from hibernation point every single time.
2. how to address the changes of values in registry and loaded files.
« Last Edit: February 05, 2010, 02:47 AM by megablue »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #63 on: February 05, 2010, 08:31 AM »
My idea was
Creating a "hibernation point" which allows your PC to start from previous state every single time.
Rather than, restarts then enters hibernation mode (anyway, the pros is easier to archive) .

Maybe you can explore into it...

Nice idea, but well beyond my skills.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #64 on: February 05, 2010, 08:50 AM »
megablue: interesting idea, but not really doable IMHO. Too many things that can go out of sync between memory and disk, the registry being just one part. It could possibly be done, but it'd be insanely complex, and not something I'd trust a 3rd party to do.

Now, if you were willing to discard all filesystem changes after boot, it might be feasible - but then it wouldn't be very useful either :)
- carpe noctem

megablue

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #65 on: February 05, 2010, 10:58 AM »
megablue: interesting idea, but not really doable IMHO. Too many things that can go out of sync between memory and disk, the registry being just one part. It could possibly be done, but it'd be insanely complex, and not something I'd trust a 3rd party to do.

Now, if you were willing to discard all filesystem changes after boot, it might be feasible - but then it wouldn't be very useful either :)

I knew it is hard archive. However we seen software like DeepFreeze, Sandboxie... I think some of the concepts can be applied on the idea. Still I'm not insane enough to not realize it is a crazy idea and way too ambitious ...  :D
« Last Edit: February 05, 2010, 11:01 AM by megablue »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #66 on: February 05, 2010, 11:23 AM »
Well, DeepFreeze discards all modifications, right? And SandBoxIE only virtualizes individual apps, it doesn't encapsulate the entire system. Not saying entirely that it can't be done, but it'd be really hard, and to be realistic it'd probably require Microsoft to implement the feature. And for how much gain, really? :)

You can sorta achieve what you want by using a VM that supports snapshots - but that means running your entire OS virtualized, and snapshots aren't just "hibernation" style state snapshots, it includes disk contents as well...
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #68 on: February 05, 2010, 05:23 PM »
I say, well done  :up: :up:

parkint

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 119
  • It's bad luck to be superstitious
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #69 on: February 05, 2010, 08:40 PM »
OUTSTANDING work!

edbro

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 426
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #70 on: February 05, 2010, 10:18 PM »
It would be nice if you have a one click reboot/hibernate that used a preset setting stored in config.ini.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #71 on: February 05, 2010, 11:17 PM »
you should definitely make it possible to invoke via commandline to tell it to reboot and hibernate or standby without requiring push of button.

yksyks

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 476
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #72 on: February 06, 2010, 01:34 AM »
megablue: You might be interested in HORM (Hibernate Once Resume Many) feature. Details can be found here or in this forum, too.

zacharyliu

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 8
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #73 on: February 06, 2010, 11:02 AM »
Does the script work if you have set a password? If not, maybe you should prompt the user for their password and then temporarily activate the autologin, removing it after reboot. Then again you probably thought of this already, because I've yet to test this out...  :P

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart (Boot Snooze)
« Reply #74 on: February 06, 2010, 11:36 AM »
Does the script work if you have set a password? If not, maybe you should prompt the user for their password and then temporarily activate the autologin, removing it after reboot. Then again you probably thought of this already, because I've yet to test this out...  :P

Thanks for the feedback but, no, it does not.  Also, for security reasons, I won't code around this.