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
« Previous 1 2 3 4 Next »
Batch file access to "standby" and "restart" features

 
  • 0 Vote(s) - 0 Average
Batch file access to "standby" and "restart" features
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#1
2009-04-06, 12:41 AM
I know I have asked this before, but I am really quite desperate: I want very much to simulate Slimm-GBPVR's "standby" function from a batch file. Every CLI I've used to enter standby either overrides Slimm's "delayed standby" trapping, or will not restart for recordings, or both. Slimm's works perfectly, but I have to do it manually with my mouse.

Come on, genius community...there's got to be a way.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2009-04-06, 11:03 PM (This post was last modified: 2009-04-07, 12:32 AM by pBS.)
any 'user intiated' suspend command will go straight to suspend...it's MS fault....
but to do it myself, i just add the cmds i want to do before suspend, in batch file before the suspend cmd...
i believe you can do the normal windows supend from batch file like:
Code:
powercfg -h off
ping 1.1.1.1 -n 1
%windir%\system32\rundll32.exe PowrProf SetSuspendState
powercfg -h on
[you have to temporarily turn off hibernate mode then pause a sec., then issue cmd, then turn it back on real quick before suspend happens..]

so just run your needed cmds before running the suspend cmd in the batch file you kick off to start suspend mode...make sure it'll wait for you processes to finish before continuing..
[start /w "" cmds]

hope that helps a bit..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
keith_leitch
Offline

Senior Member

Posts: 510
Threads: 53
Joined: Nov 2008
#3
2009-04-06, 11:43 PM
pBS Wrote:any 'user intiated' suspend command will go straight to suspend...it's MS fault....
i believe you can do the normal windows supend from batch file like:
"rundll32.exe powrprof.dll,SetSuspendState FALSE,FALSE,FALSE"

Unfortunately, using the dll this way causes a problem. I can't remember which one: it either suspends regardless of whether there is a recording in progress (Slimm-GBPVR does not intercept it), or it suspends so thoroughly that the machine does not wake up for the next recording.

One problem or the other occurs with every program I've tried: nircmd, sleep.exe, etc.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Can I disable "Delayed Standby" after is has been requested? HarryH3 49 35,360 2010-01-26, 09:41 AM
Last Post: keith_leitch
  what standby events will slimm prevent fuzzweed 3 6,630 2008-11-23, 12:02 PM
Last Post: Mister Slimm
  SlimmGBPVR doesn't prevent standby during recording rob11252 34 20,560 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,870 2007-10-01, 10:39 AM
Last Post: Mister Slimm
  File Extension Filter Not Working betbest1 4 4,168 2007-06-04, 08:55 PM
Last Post: betbest1
  Service restart feature FirstTeamOPS 2 3,527 2007-03-03, 07:14 PM
Last Post: FirstTeamOPS
  GBPVRcli - extract information from GB-PVR for use in batch and text files Mister Slimm 2 9,514 2007-02-20, 01:40 PM
Last Post: Mister Slimm
  currently playing file? pBS 1 2,720 2007-02-14, 09:05 PM
Last Post: Mister Slimm

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

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

Linear Mode
Threaded Mode