topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday December 11, 2024, 6:46 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 172134 times)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #25 on: January 31, 2010, 04:11 AM »
Tomos, does the same thing happen with both the .ahk and the .exe?

that was with the AHK
will try out the exe now, but I'm heading out shortly - so if you dont hear from me shortly that will hopefully mean it was successful :)

Working so far with the exe - timer is at 7 minutes and counting  :Thmbsup:
Tom

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #26 on: January 31, 2010, 12:59 PM »
Cool.  Let's come up with a name for this and I'll package it up as a regular Skwire Empire application.

wep

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 31
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #27 on: January 31, 2010, 01:11 PM »
I like this Great idea!
Now I have restart2hibernate.cmd file on my desktop with following command lines:
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v HIBERNATE /t REG_SZ /d "rundll32.exe powrprof.dll,SetSuspendState"
shutdown -r -t 00

I'm seeking for how to make possible to call hibernation on logon screen, using any possible programming method.
« Last Edit: January 31, 2010, 01:30 PM by wep »

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 #28 on: January 31, 2010, 02:31 PM »
Cool.  Let's come up with a name for this and I'll package it up as a regular Skwire Empire application.
Off To Sleep?

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #29 on: January 31, 2010, 02:43 PM »
I like this Great idea!
Now I have restart2hibernate.cmd file on my desktop with following command lines:
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v HIBERNATE /t REG_SZ /d "rundll32.exe powrprof.dll,SetSuspendState"
shutdown -r -t 00

I'm seeking for how to make possible to call hibernation on logon screen, using any possible programming method.

Are you using Windows XP (won't work on Vista/7)?

If so, make a Winlogon Notification Package

http://www.codeproje...0&select=1732221
http://msdn.microsof...4783%28VS.85%29.aspx

Cheers.

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 #30 on: January 31, 2010, 03:43 PM »
Here's an AHK prototype:
I wouldn't launch the "10 mins wait then hibernate" command via Autostart but the "runonce" registry setting (http://support.microsoft.com/kb/137367)
The "10 mins wait" command should also check if the system is idle and/or do a "10 seconds to hibernate" countdown.
I'd prefer not to muck about in a user's registry if at all possible.  However, if the startup folder method proves to be a problem, I'll go that route.
RunOnce is cleaner than mucking around with the filesystem - it's made exactly for situations like this.
- carpe noctem

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 #31 on: January 31, 2010, 04:59 PM »
Cool.  Let's come up with a name for this and I'll package it up as a regular Skwire Empire application.
Off To Sleep?
-cranioscopical (January 31, 2010, 02:31 PM)
"Faster boots " -> Running Snooze?

wep

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 31
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #32 on: February 01, 2010, 02:59 AM »
Are you using Windows XP (won't work on Vista/7)?

I'm using both Win7(office) and XP(home).
I checked out, it works in Win7 too.

If so, make a Winlogon Notification Package
Thank you for the links. I meant to use script/command programming (ahk, vbs, js, dos commands etc), not using dll (I have not experience in dll programming).
« Last Edit: February 01, 2010, 12:31 PM by wep »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #33 on: February 01, 2010, 03:21 AM »
Boot Snooze?  We could shorten it to, wait for it, Booze.   :P :P

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #34 on: February 01, 2010, 04:14 PM »
Website | Download
v1.0.1 - 2010-02-01
    * Boot Snooze now uses the RunOnce registry key.  (Thanks, wr975 & f0dder)


2010-02-01_155225.pngDONE: Faster boots combining hibernate and restart (Boot Snooze)  2010-02-01_162117.pngDONE: Faster boots combining hibernate and restart (Boot Snooze)
« Last Edit: February 01, 2010, 04:33 PM by skwire »

doctorfrog

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 140
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #35 on: February 02, 2010, 01:23 AM »
What a marvelous idea.

redstarnyc

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 33
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #36 on: February 02, 2010, 07:28 AM »
This has to be one of the best ideas in a long time.  If I was smarter I might have thought of it myself.
RedstarNYC

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 #37 on: February 02, 2010, 08:02 PM »
Great idea - will try it out now...

OK back - had an issue with the buttons not showing the full text. I am sure this has to do with my visual style. Indeed if i turn off the theme or reset to Luna the buttons look correct.

A mild annoyance, but can it be fixed?

Boot Snooze with Visual Style.png

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #38 on: February 02, 2010, 09:07 PM »
Ampa, please try the interim build I just uploaded: v1.0.1.2

If that doesn't work, I'll just widen the buttons a bit.  Thanks.

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 #39 on: February 03, 2010, 06:20 AM »
would it be possible to add a timer so that the reboot (then the hibernation) only starts after a given time ?
.merle1.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #40 on: February 03, 2010, 06:51 AM »
Sure, it's possible.  Could you give me a scenario where this would be necessary, though?  What I mean is...this app is meant to be used when you're done with everything and ready to reboot.

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 #41 on: February 03, 2010, 07:34 AM »
Still missing the words Hibernate and Standby with the newest build.

Also: my system shuts down, reboots, the Hibernate warning appears, but no Hibernation occurs.
I have been impatient and clicked the Hibernate now button, so don't know whether Hibernation happens at the end of 10 mins.
I have not tested Standby.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #42 on: February 03, 2010, 07:42 AM »
Still missing the words Hibernate and Standby with the newest build.

Okay, I'll make the buttons wider in the next build.

Also: my system shuts down, reboots, the Hibernate warning appears, but no Hibernation occurs.
I have been impatient and clicked the Hibernate now button, so don't know whether Hibernation happens at the end of 10 mins.
I have not tested Standby.

For hibernation to work, your computer must have "Enable hibernation" already checked under your Control Panel, Power Options, Hibernate tab.  Is this enabled?  If so, which OS are you using?

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 #43 on: February 03, 2010, 07:49 AM »
Sure, it's possible.  Could you give me a scenario where this would be necessary, though?  What I mean is...this app is meant to be used when you're done with everything and ready to reboot.

For instance, when I leave home in the morning, I put my XP desktop in hibernation, it wakes up just before I get home.  This morning, I had a huge download to perform, and had either to stop it and hibernate OR to leave it running.  With BootSnooze, I could have asked for a reboot/hibernate in 3 hours time, then, when coming home, my PC would just resume from hibernation and the download would have been complete.
.merle1.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #44 on: February 03, 2010, 07:55 AM »
Ampa, grab the build I just pushed, please: v1.0.1.3

Does that fix the button issue?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #45 on: February 03, 2010, 07:56 AM »
For instance, when I leave home in the morning, I put my XP desktop in hibernation, it wakes up just before I get home.  This morning, I had a huge download to perform, and had either to stop it and hibernate OR to leave it running.  With BootSnooze, I could have asked for a reboot/hibernate in 3 hours time, then, when coming home, my PC would just resume from hibernation and the download would have been complete.

Ah, I gotcha.  Sure, I'll add it in.   :)

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
« Reply #46 on: February 03, 2010, 08:23 AM »
Cool.  Let's come up with a name for this and I'll package it up as a regular Skwire Empire application.
Off To Sleep?
-cranioscopical (January 31, 2010, 02:31 PM)
I really like that name!!
Or, perhaps, "Off to Snooze"

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 #47 on: February 03, 2010, 01:26 PM »
OK testing version 1.0.1.3 and the buttons still don't show the whole text.

FYI the visual style I am using is Tener VS

Perhaps you could change the UI so that the label reads "Restart then..." and the buttons simply say Hibernate and Standby? But this may be bad user interface practice - I don't know!

As for Hibernation - it is enabled and works just fine if I do it manually. My suspicion is that Defence+ (part of Comodo Firewall) is preventing Boot Snooze from operating correctly by preventing some registry keys being created or something. I shall experiment with the firewall down / setting BS as a trusted app.

Thanks for the effort you are putting in to this :)

UPDATE: Added Boot Snooze as a trusted app, and also tried taking down the firewall, and still no Hibernation :(

Update 2: Tried with Standby - same result (reboots, message box appears with countdown, click the button to standby, but nothing happens).


Using WinXP SP3 (custom install - somewhat slimmed down - perhaps something important for Boot Snooze is missing?)
« Last Edit: February 03, 2010, 09:44 PM by Ampa »

wep

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 31
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #48 on: February 03, 2010, 10:08 PM »
For hibernation to work, your computer must have "Enable hibernation" already checked under your Control Panel, Power Options, Hibernate tab.  Is this enabled?  If so, which OS are you using?
Also, it might be resolved by means of "powercfg -h on" command execution in the "Boot Snooze" - just for user convinience.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: IDEA: Faster boots combining hibernate and restart
« Reply #49 on: February 04, 2010, 12:03 AM »
Also, it might be resolved by means of "powercfg -h on" command execution in the "Boot Snooze" - just for user convinience.

Ah, very nice.  Thanks for the heads up.