NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 306 307 308 309 310 … 433 Next »
Wake from sleep

Wake from sleep
Grampz
Offline

Member

Posts: 236
Threads: 27
Joined: Sep 2011
#11
2012-03-01, 11:35 PM
Eeeeeek! Glad I brought this up. I have not tried any of this yet, but want to save a few electric pennies when I can. Input is great!! Thanx!


Greg
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#12
2012-03-02, 02:08 AM
I have the computer set to sleep in 30 min in the balanced profile. My high performance profile has sleep and hibernate to never. Here are the commands I use to switch between the two.

REM high performance
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

REM Balanced
powercfg -setactive 381b4222-f694-41f0-9685-ff5bb260df2e

The most important thing to remember is that all that stuff you run from the batch file is set to wait till it's done before moving on. Otherwise switching power profiles won't make a difference.
E6400, 2 GB RAM ,500 GB + 250 GB HD, PVR150+ Adaptec 3610, RW 2 + HIP, Antec 2480 w/ mini ninja ...still using v 0.99
Bluetick
Offline

Junior Member

Posts: 38
Threads: 11
Joined: Dec 2009
#13
2012-04-30, 04:31 PM
While reading about sleep modes I ran across this article and dumppo.exe software. It may help others like me. =)

It allows simple command line entry to change power options.

http://www.tek-tips.com/viewthread.cfm?qid=1469199
Nistrod
Offline

Member

Posts: 243
Threads: 45
Joined: Jul 2010
#14
2012-05-02, 07:54 AM
Quote:NextPVR doesnt attempt to put your PC back to sleep. All it does is ask Windows to make sure it's awake at the time a recording is due to start.

You can of course tell your PC to go to sleep after x minutes of inactivity though.
Just to clarify - NPVR will ask Windows to stay awake for the length of the recording, won't it? Windows will then go to sleep x minutes later.

The problem with setting the power profile in postprocessing.bat is that you may have more than one of these running at the same time. You end up with a race condition, where the first to finish resets the profile before the second one has time to complete.

It would be nice (hint, hint) if NPVR could keep track of postprocessing.bat instances and keep the PC awake until the last one completes.
[SIZE="1"]NPVR 2.6.2;Windows 7 Enterprise SP1;i5 750; 8GB mem;Geforce 210;Winfast DTV100 S, Winfast DTV Dongle Gold; 2 x Winfast DTV2000DS
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#15
2012-05-02, 05:34 PM
Nistrod Wrote:Just to clarify - NPVR will ask Windows to stay awake for the length of the recording, won't it? Windows will then go to sleep x minutes later.
Every 30 seconds or so while recording, NPVR will tell Windows "I'm still using the PC", which will stop it going to sleep. When the recording is finished it stops telling Windows this.
vintdiesel
Offline

Member

Posts: 114
Threads: 23
Joined: Jan 2012
#16
2012-05-05, 08:11 AM
The way I keep track of the last postprocessing.bat file to run, is for each batch to create a unique tracking file in the default NPVR program folder using the line "echo %3 > %3.ppr".
The %3 is a unique OID number passed from NPVR which in turn creates a unique file name for each postprocessing file being run, and I use the .ppr extension to mean "postprocessing".

At the end of the batch file I have the line "del %3.ppr" which erases its own tracking file then I check for other ppr files from other postprocessing.bats by using the line "if exist *.ppr goto finish". The :finish section is at the end of the batch file and skips a line to put the PC into standby using the line "rundll32 powrprof.dll,SetSuspendState 0,1,0".

If the PC is rebooted or logged back in for any reason whilst postprocessing batch files are waiting to be fully executed, I have a startup batch file to delete all *.ppr files as the batch files that created them would have been terminated without deleting their own tracking files.
Win Server: ASRock P67 Pro3 B3, i5 2500K 4.0Ghz, 16GB, Nvidia GT430 HDMI, Win 10 Pro 64bit, Win-TV Quad HD, Win-TV Nova-T USB.
UnRaid NAS Server: Gigabyte i7 2600 3.4Ghz, 16GB, S3 Trio VGA PCI Video, DVB LibreElec for DVB-T tuner drivers, Hauppage Win-TV 2210 Dual DVB-T.
Win Client: Intel NUC i3 Broadwell, 4GB Ram, 128GB SSD, Win 10 Pro 64bit.
Linux Client: Raspberry Pi 3+, OSMC + Kodi
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PC not going to sleep after recording LeoL 7 3,262 2021-04-01, 07:17 PM
Last Post: Handy.Man
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 14,464 2021-03-21, 11:21 PM
Last Post: careads
  Constant Sleep Resume Cycle mikeh49 2 1,261 2020-02-02, 07:57 PM
Last Post: mikeh49
  Mac adress wake on lan spudjg1 0 854 2019-10-02, 11:13 AM
Last Post: spudjg1
  Sleep/Wake issue and Yahoo fccgrant 8 2,553 2019-09-04, 03:18 PM
Last Post: Graham
  "Important wake timers" - will NPVR wake on these ? jksmurf 1 1,031 2019-02-26, 01:13 AM
Last Post: sub
  Computer is not waking up from sleep to record via schedule ajc1616 13 5,580 2018-10-29, 07:05 PM
Last Post: mvallevand
  Sleep PC during recording Stanno 5 2,028 2018-10-17, 11:39 AM
Last Post: Stanno
  Wake up from hibernate with laptop lid closed ukmark62 11 3,191 2018-07-09, 08:34 PM
Last Post: gEd
  Hauppauge Remote doesn't work after sleep Amused 4 2,502 2018-02-10, 05:21 PM
Last Post: Ted the Penguin

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

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

Linear Mode
Threaded Mode