SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-18-2008, 05:03 PM
UFGrayMatter's Avatar
UFGrayMatter UFGrayMatter is offline
Sage Advanced User
 
Join Date: Aug 2006
Posts: 185
Can Client send WOL if Server off?

I was wondering if there is an STVi or other "built in" method of the client sending a magic packet to the server if not on.

I know there are many options out there for WOL, i've even written stuff for Meedio, but I want to be able to launch SageClient from Meedio, and have the client send a WOL Packet if needed.

Any thoughts/suggestions?

Ryan
Reply With Quote
  #2  
Old 06-19-2008, 01:21 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
I don't there is anything built in but with SageMC and dynamic menus you can call a VBS script that calls a wol executable with the mac address of the server.

I've also got a script that sends the packet when the client comes out of standby so I rarely use the menu item I added

cheers

Tim
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #3  
Old 06-19-2008, 08:20 PM
Sagebrush Sagebrush is offline
Sage User
 
Join Date: Dec 2005
Location: Silicon Valley
Posts: 45
Quote:
Originally Posted by brewston View Post
I've also got a script that sends the packet when the client comes out of standby so I rarely use the menu item I added
Could you please elaborate on the script that you use and how you get it to trigger from a wake from standby?

Currently, I manually launch a batch file that runs WOL. Your approach sounds a lot more elegant.
Reply With Quote
  #4  
Old 06-20-2008, 07:41 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Sure, its cobbled together from bits found here and on the net.

Option Explicit
Dim wmiPowerManagementEvent, WshShell, oShell
Const cntEventEnteringWakeup = 7

Set wmiPowerManagementEvent = GetObject("winmgmts:").ExecNotificationQuery("Select * from Win32_PowerManagementEvent")
Do
If wmiPowerManagementEvent.NextEvent.EventType = cntEventEnteringWakeup Then
Set oShell = WScript.CreateObject ("WScript.shell")
oShell.run "c:\\wol.exe 0040ca25cc99"

End If

Loop

Save as monitor.vbs and double click to run it. You won't see anything happening but you look in task manager there is a process called wscript running (useful if you need to kill it as it will let you run multiples!) If you want it to run automatically, add it to the users start group so it gets run on logon. Obviously, you will need to have obtained a copy of wol.exe from the net and saved it in c: for this to work

This is a cut down version of the script. My full one stops sage client and restarts it on wakeup (I had a problem where the mp3 album art was disappearing after wakeup and this was the easiest way to fix it !)

Cheers

Tim
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #5  
Old 06-20-2008, 11:40 AM
Sagebrush Sagebrush is offline
Sage User
 
Join Date: Dec 2005
Location: Silicon Valley
Posts: 45
Thanks Tim

I'll give this a try.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client can't connect to Server anymore happyfirst SageTV Software 3 10-23-2007 12:23 PM
SageTV Client lockups and associated server side error Surtr SageTV Software 1 05-28-2007 06:55 AM
Can Sage Client wake Sage Server? lovingHDTV SageTV Software 3 02-19-2007 04:01 PM
Developing STV for Client and CLient on Server machine antplugger SageTV Studio 2 03-30-2006 05:09 PM
Client Server Question mike1961 SageTV Software 2 12-05-2005 10:37 AM


All times are GMT -6. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.