NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
WakeupManager

 
  • 0 Vote(s) - 0 Average
WakeupManager
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#1
2014-09-18, 01:39 AM
Is WakeupManager user callable as a way to wakeup the backend ie

Code:
WakeupManager.GetInstance().ScheduleWakeup("martinsUniqueKey", DateTime.Now.AddMinutes(10).ToUniversalTime());

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2014-09-18, 01:52 AM
It's not intended to be user callable. It's intended to be used from the recording service. The recording service makes a call like that for each recording when the service starts up.

You might be able to get it to wake the machine with that call form a plugin, but it'll only last as long as the process is running. ie, you'd need to call it every time the process is started, and if it isn't running, then the machine wont wake up.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#3
2014-09-18, 02:41 AM
Cool. I was exiting my utility leaving it running it does wake after sleep. I had to handle a new found unhandled error because DNS didn't start working quickly enough on wake, but my program does seem to work as expected.

Thanks

Martin
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#4
2015-03-31, 10:26 AM
Coo. I'm planning to split my box into two, putting the server down in the cellar and was wondering about wake-up using a WOL script I've written. What is WakeupManager - is it built into the client?
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2015-03-31, 04:50 PM
WakeupManager is a class in NShared.dll, which is used by the recording service to make sure the machine is awake at a certain time. As mentioned above, it'll only wake the machine if the calling process is still running though. If you exit the process, these wake requests are forgotten by the system.
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#6
2015-03-31, 04:54 PM
Is there a way for me to use a script to trigger the sending of a WOL packet to the server, maybe a system event?
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#7
2015-03-31, 07:53 PM
liteswap Wrote:putting the server down in the cellar and was wondering about wake-up

Will the NextPVR recording service wake up the server to do recordings? Do you need the server to be awake for something other than recordings?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#8
2015-03-31, 07:58 PM
liteswap Wrote:Is there a way for me to use a script to trigger the sending of a WOL packet to the server, maybe a system event?
There is nothing in NextPVR that does WOL. This is typically something you'd do outside of NextPVR.
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#9
2015-04-01, 06:58 AM
Graham Wrote:Will the NextPVR recording service wake up the server to do recordings? Do you need the server to be awake for something other than recordings?

Yes, I believe I need the server to be awake when I'm using the client to browse recordings, and schedule new ones. Is this not so (I've not used nPVR in client-server config before)?
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#10
2015-04-01, 06:59 AM
sub Wrote:There is nothing in NextPVR that does WOL. This is typically something you'd do outside of NextPVR.

Thanks sub - I'll using parallelprocessing.bat to trigger a WOL packet, if required.
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


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

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

Linear Mode
Threaded Mode