NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) Slimm GB-PVR and GBPVRcli v
1 2 3 4 Next »
Can I disable "Delayed Standby" after is has been requested?

 
  • 0 Vote(s) - 0 Average
Can I disable "Delayed Standby" after is has been requested?
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#41
2009-01-27, 11:09 AM
keith_leitch Wrote:Is this a file you posted for me? I can't find the one you mean.

attached to the post i've linked to are 2 zips. in the server one you'll find the au3 skript. another alternative: http://forums.nextpvr.com/showthread.php?t=25751 has the original script i modified for my needs on the first post
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#42
2009-01-31, 06:01 AM
Mister Slimm Wrote:Entry points (the IsSystemResumeAutomatic bit) are case sensitive. You have to type exactly as I have. This code runs without error:
Code:
rundll32 Kernel32.dll, IsSystemResumeAutomatic
If it sets the return code then I believe the following should perform the echo when the system resume is unattended:
Code:
IF ERRORLEVEL 1 THEN ECHO "Spooky, there's no-one here."
However, as you point out, it is a boolean function and the return code is likely to always be zero. I've written a teensy console app (it still requires .NET 2.0) that sets the return code to the result of this function and so the ERRORLEVEL check should perform correctly. I've tested that it sets the return code but haven't tested whether it does what is expected on an unattended resume. Also note that all power management functions in Windows are notoriously inconsistent and only require the tiniest thing to be different (like tying your shoelaces the opposite way to normal or only giving the cat 3mm of water in their dish) to produce unexpected results. Still, if it helps that'll be great.

Hi, Slimm. After all the trouble you've gone to, I'm sorry it took so long to test this. I have now run a few tests, and as far as I can tell the app never produces errorlevel 1. I created a batch file that simply runs it and reports the errorlevel, and also set that batch file to wake up the computer as a scheduled task: always errorlevel 0.
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#43
2009-01-31, 11:18 AM
keith_leitch Wrote:Hi, Slimm. After all the trouble you've gone to, I'm sorry it took so long to test this. I have now run a few tests, and as far as I can tell the app never produces errorlevel 1. I created a batch file that simply runs it and reports the errorlevel, and also set that batch file to wake up the computer as a scheduled task: always errorlevel 0.

Odd, but not entirely unexpected; shame.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#44
2009-02-01, 09:06 PM
Mister Slimm Wrote:Odd, but not entirely unexpected; shame.

My apologies! I must not have had .NET installed on my laptop. I thought that I did.

With .NET installed, the tiny app works as described (though unreliably, as you predicted). I will use it to determine whether my PC came out of "sleep" automatically, but will also do a secondary check of whether there are 2 minutes or less left before a scheduled recording, and whether it is time for an EPG update.

Thanks for your programming services!
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#45
2009-02-08, 01:08 AM
Mister Slimm Wrote:This code runs without error:
Code:
rundll32 Kernel32.dll, IsSystemResumeAutomatic
If it sets the return code then I believe the following should perform the echo when the system resume is unattended:
Code:
IF ERRORLEVEL 1 THEN ECHO "Spooky, there's no-one here."

Having tested Slimm's tiny app (attached to the original post) for some time now, I am finding that it is actually quite reliable (provided .NET is installed). In all these weeks it has only twice detected a "false manual" resume, and never detected a "false automatic" resume. I recommend this to anyone who wishes to detect, from a batch file, whether their system came on by itself. Thanks again, Slimm!
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#46
2009-05-19, 07:00 PM
Just discovered that this tells you what woke the computer up.
Code:
powercfg -lastwake
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#47
2010-01-02, 10:55 PM
Mister Slimm Wrote:Just discovered that this tells you what woke the computer up.
Code:
powercfg -lastwake

Hmm...not available on my copy of XP. From the help file:

Examples:
POWERCFG /LIST
POWERCFG /QUERY scheme
POWERCFG /QUERY
POWERCFG /CREATE scheme
POWERCFG /DELETE scheme
POWERCFG /SETACTIVE scheme
POWERCFG /CHANGE scheme /monitor-timeout-dc 15
POWERCFG /CHANGE scheme /monitor-timeout-dc 0
POWERCFG /HIBERNATE on
POWERCFG /EXPORT scheme /file file
POWERCFG /QUERY number /NUMERICAL
POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON
POWERCFG /AVAILABLESLEEPSTATES
POWERCFG /BATTERYALARM low
POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate
POWERCFG /DEVICEQUERY wake_armed
POWERCFG /DEVICEENABLEWAKE "Microsoft USB IntelliMouse Explorer"

After all this time, though, I should reinforce that your IsSystemResumeAutomatic tinapp never fails me. Combining that with GBPVRCLI to watch for recordings, the commandline standby options with SlimmGBPVR, and a daily automatic restart, and my system automation is sweet indeed.
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#48
2010-01-26, 04:12 AM
keith_leitch Wrote:After all this time, though, I should reinforce that your IsSystemResumeAutomatic tinapp never fails me. Combining that with GBPVRCLI to watch for recordings, the commandline standby options with SlimmGBPVR, and a daily automatic restart, and my system automation is sweet indeed.

An odd development: After a year of faithful service, the tinyapp will no longer detect an automatic system resume. It seems to return an error level of 0 regardless of how the system awakes. This happened suddenly; one day it was "always right," and the next day, "always wrong." I can only conclude that a Windows Update has rooted me.
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#49
2010-01-26, 09:11 AM
keith_leitch Wrote:An odd development: After a year of faithful service, the tinyapp will no longer detect an automatic system resume. It seems to return an error level of 0 regardless of how the system awakes. This happened suddenly; one day it was "always right," and the next day, "always wrong." I can only conclude that a Windows Update has rooted me.

Oh dear. It doesn't need to be run as an administrator or something does it? I'm not entirely sure what I can do to debug it. It literally contains a single line of code.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#50
2010-01-26, 09:41 AM
Mister Slimm Wrote:Oh dear. It doesn't need to be run as an administrator or something does it? I'm not entirely sure what I can do to debug it. It literally contains a single line of code.

Oh, well. It had a good run. I will watch over the next few days to see if there is some other factor in play.

I am running it from the same account as I always have, which has administrator privileges (but is not the administrator account).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5


Possibly Related Threads…
Thread Author Replies Views Last Post
  Batch file access to "standby" and "restart" features keith_leitch 2 7,513 2009-04-06, 11:43 PM
Last Post: keith_leitch
  what standby events will slimm prevent fuzzweed 3 6,626 2008-11-23, 12:02 PM
Last Post: Mister Slimm
  Delayed shutdown Bluethunder 2 3,389 2008-09-23, 01:05 PM
Last Post: Bluethunder
  SlimmGBPVR doesn't prevent standby during recording rob11252 34 20,549 2008-07-28, 10:41 AM
Last Post: Mister Slimm
  Disable auto-restart recording service, green light stuck on and no standby problems pvruser 10 6,869 2007-10-01, 10:39 AM
Last Post: Mister Slimm
  Disable Request to Delete Recording betbest1 3 3,214 2007-06-01, 11:21 AM
Last Post: Mister Slimm
  Delayed shutdown did not shutdown system. FirstTeamOPS 8 4,631 2007-03-17, 09:45 PM
Last Post: FirstTeamOPS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode