SageTV Community  

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

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 02-25-2009, 02:53 PM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
I filed it too, no doubt I will get the same reponse. I also mentioned the behaviour of the Hd200 when it loses contact with the server (loss of network, been put into standby etc) unlike my PC client which says 'lost connection with server' the hd200 just hangs on the screen you were on (STV behaviour is slightly different, Default STV recovers when the server comes back, SageMC needs the HD200 to be powered off/on on the remote)

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
  #22  
Old 02-25-2009, 03:15 PM
Djc208's Avatar
Djc208 Djc208 is offline
Sage Expert
 
Join Date: Feb 2007
Location: SE Virginia
Posts: 674
Good luck with that. The same request/report was made about the HD100 and that hasn't happened either.
__________________
Server: Core 2 Duo E4200 2 GB RAM, nVidia 6200LE, 480 GB in pool, 500GB WHS backup drive, 1x750 GB & 1x1TB Sage drives, Hauppage HVR-1600, HD PVR, Windows Home Server SP2
Media center: 46" Samsung DLP, HD-100 extender.
Gaming: Intel Core2 Duo E7300, 4GB RAM, ATI HD3870, Intel X-25M G2 80GB SSD, 200 & 120 GB HDD, 23" Dell LCD, Windows 7 Home Premium.
Laptop: HP dm3z, AMD (1.6 GHz) 4 GB RAM, 60 GB OCZ SSD, AMD HD3200 graphics, 13.3" widescreen LCD, Windows 7 x64/Sage placeshifter.
Reply With Quote
  #23  
Old 02-25-2009, 03:26 PM
Swagger200 Swagger200 is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 81
Magic Packet would do it

I am also trying to be greener by not having servers run 24/7. I managed to get down to only one running all the time, and it sends a "magic packet" to another server to wake it up from shutdown state, at a fixed time, everyday.

The server has to support "Wake-on-LAN" - in other words the BIOS has to support it, and the network card on the server has to support it, and you have to tweak control panel settings for the network card to turn it on.

Most modern motheboards / network cards do support this.

On the "sending" PC or device, you have to program in the MAC address of the "target" server's network card.

Seems to me that the extender could do this with a firmware upgrade.
__________________
[SIZE="1"][I]Server 1: i5-2500k, Win10 Pro, Cisco 4642HD -> Hauppauge HD-PVR
Server 2: Thinkpad W530, Win10 Pro, Cisco 9865HD -> Hauppauge HD-PVR
Server 3: Thinkpad W530, Win10 Pro, Cisco 4642HD -> Hauppauge HD-PVR
Clients: (3x) SageTV HD-200, (1x) SageTV HD-300, SageTV Client on several PC's, SageTV Android on FireSticks and Nvidia Shield Pro/SIZE]
Reply With Quote
  #24  
Old 02-25-2009, 03:44 PM
Djc208's Avatar
Djc208 Djc208 is offline
Sage Expert
 
Join Date: Feb 2007
Location: SE Virginia
Posts: 674
Quote:
Originally Posted by Swagger200 View Post
Seems to me that the extender could do this with a firmware upgrade.
I think we all agree it should be possible with the extenders. However it apprently hasn't been very high on the to-do list for either extender.
__________________
Server: Core 2 Duo E4200 2 GB RAM, nVidia 6200LE, 480 GB in pool, 500GB WHS backup drive, 1x750 GB & 1x1TB Sage drives, Hauppage HVR-1600, HD PVR, Windows Home Server SP2
Media center: 46" Samsung DLP, HD-100 extender.
Gaming: Intel Core2 Duo E7300, 4GB RAM, ATI HD3870, Intel X-25M G2 80GB SSD, 200 & 120 GB HDD, 23" Dell LCD, Windows 7 Home Premium.
Laptop: HP dm3z, AMD (1.6 GHz) 4 GB RAM, 60 GB OCZ SSD, AMD HD3200 graphics, 13.3" widescreen LCD, Windows 7 x64/Sage placeshifter.
Reply With Quote
  #25  
Old 02-25-2009, 04:02 PM
Madz Madz is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 82
Hi, just had a response from them on mine and they seemed quite responsive on it - were clarifying a couple of things. Hopefully now they know a few of us are interested they'll have a look at it for us. I'm sure these sort of things come down to how much work they are to implement and what the risk/testing requirements are.

Quote:
On the same topic I think they should make it an option to have the hd200 not go into standalone mode UNLESS no server is found. If you want to disable this mode have an option within the Sage interface to set a flag that the HD200 reads on reboot to go into standalone mode. This would speed up boot time a good bit. While the current boot time is not horrible, it seems very pointless for me to wait every time i turn it on since I have no need for standalone mode. Reason time wait maybe a concern is that if they get standby mode on the server to wake up that will be a delay that would be ADDED to the current turn on delay making 2 short delays into a long delay.
Maybe all we need is the ability to customise the auto-connect cancel time (from 5s down to 1s)? Not a big deal for me, but agree with your point as I only use it as an extender too - not interested in the stand-alone mode.
Reply With Quote
  #26  
Old 02-25-2009, 04:08 PM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
Quote:
Originally Posted by Swagger200 View Post
On the "sending" PC or device, you have to program in the MAC address of the "target" server's network card.

Seems to me that the extender could do this with a firmware upgrade.
The thing is I do not even need that, while that would be more reliable and would work for waking up a server in hibernate mode. You can setup the server to wake on ANY packet sent to its ip. So if they would just modify the auto-connect to first try to connect to the manual entry that would wake the server. However the manual entries are not even used during HD200 auto-connect.
Reply With Quote
  #27  
Old 02-26-2009, 01:46 AM
Madz Madz is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 82
Just wanted to let you know that I've received a very positive response from Sage support. They are considering the possibility of sending out magic packets or traffic during the auto-discovery phase to servers on the list (if we have auto-connect set). No guarantees of course, but here's hoping we'll see something along these lines implemented in a future firmware.
Reply With Quote
  #28  
Old 03-04-2009, 02:48 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
This probably doesn't help too many folks but I have a linux box on the net that's set to listen for the broadcast UDP packets on port 31100 that are sent by extenders at startup, and send a WOL packet to the server.
Reply With Quote
  #29  
Old 03-04-2009, 02:57 PM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
Quote:
Originally Posted by BlueH2O View Post
This probably doesn't help too many folks but I have a linux box on the net that's set to listen for the broadcast UDP packets on port 31100 that are sent by extenders at startup, and send a WOL packet to the server.
WOW - nice hack!

Course to do this hack one must have a linux server on their network running which if you already have one for something else makes sense, but as you said probably not really a solution for everyone.
Reply With Quote
  #30  
Old 03-04-2009, 03:02 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
Quote:
Originally Posted by m1abrams View Post
WOW - nice hack!

Course to do this hack one must have a linux server on their network running which if you already have one for something else makes sense, but as you said probably not really a solution for everyone.
Thanks. You're right, I have this box set up as router, dhcp server, etc.. so it's easy to throw this in there. But it wouldn't make sense to set up a box for this alone unless perhaps if it were very small, like an embedded device.
Reply With Quote
  #31  
Old 03-06-2009, 05:27 PM
cheekymonkey cheekymonkey is offline
Sage User
 
Join Date: Feb 2009
Posts: 43
Quote:
Originally Posted by BlueH2O View Post
This probably doesn't help too many folks but I have a linux box on the net that's set to listen for the broadcast UDP packets on port 31100 that are sent by extenders at startup, and send a WOL packet to the server.
I have a small embedded device (slug) running debian and would be interested in your script, any chance you could attach it to this thread?
Reply With Quote
  #32  
Old 03-06-2009, 06:46 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
Quote:
Originally Posted by cheekymonkey View Post
I have a small embedded device (slug) running debian and would be interested in your script, any chance you could attach it to this thread?
Two files:

1. /etc/xinetd.d/sagewake:
Code:
service sagewake
{
	port = 31100
	socket_type = dgram
	protocol = udp
	user = root
	server = /usr/bin/sagewake
	type = UNLISTED
	wait = yes
	only_from = 192.168.1.0
	instances = 1
	log_on_success -= EXIT DURATION
}
2. /usr/bin/sagewake:
Code:
#!/bin/bash
/sbin/ether-wake <MAC address of server>
My box is Fedora 10, YMMV.
Reply With Quote
  #33  
Old 03-06-2009, 08:27 PM
cheekymonkey cheekymonkey is offline
Sage User
 
Join Date: Feb 2009
Posts: 43
Brilliant.
Here I was thinking that it would be a script that would have to run listening to a port, then I would have to monitor somehow it was still running, but your solution is not only the right way to do it's simple as well.

thanks heaps it works a treat

For debian it needs to be slightly changed

its /usr/sbin/etherwake availiable by running "apt-get install etherwake'

and if you dont want to load xinetd you can just add to /etc/services something like

# Local services
sage 31100/udp # sage extenders broadcast on bootup

and then add to /etc/inetd.conf

#:OTHER: Other services
sage dgram udp wait root /usr/bin/sagewake

Last edited by cheekymonkey; 03-07-2009 at 02:23 AM. Reason: added debian details
Reply With Quote
  #34  
Old 11-03-2009, 03:02 PM
ellweber ellweber is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: SF Bay Area
Posts: 150
solve final problem!

Quote:
Originally Posted by cheekymonkey View Post
Brilliant.
and if you dont want to load xinetd you can just add to /etc/services something like

# Local services
sage 31100/udp # sage extenders broadcast on bootup

and then add to /etc/inetd.conf

#:OTHER: Other services
sage dgram udp wait root /usr/bin/sagewake
Thanks for the pioneer work on this workaround for Sage's missing element. I was able to get my DNS-323 NAS to wake up my Sage server by following your and BlueH2O's tips.

Unfortunately, now that the server is waking up a few seconds after the extender sends out its poll to port 31100 I still end up in the extender's stand-alone UI.

How should I set up the HD 200 to see the server automatically?

- I have tried 1, 5 and 15 seconds delay
- I have tried setting up the server by static IP address.
- I have tried with and without the AutoConnect setting

None of these combinations seem to result in the server connecting without my manually setting it. Very low WAF!

Any suggestions on the way to set up the extender to see the server automatically would be greatly appreciated.

Thanks,

Lynn
__________________
Server: Sage 7.1.9, service only, Java 1.6, Win XP Pro sp2, Asus M2A-VM, Athlon 64X2 4000+, 2 GB RAM, 2 x HDHR, 2 x WD 320 GB for media, OS on OCZ Vertex 60GB

Client: Sage 7.1.9, Java 1.6.0_15, Win XP Pro sp3, Asus A8N5X, Athlon 64 3500+, 1 GB RAM, Asus Silent nVidia 8400GS, WD 250 GB SATA for OS and local storage, Sanyo PLV-Z4 1280x720 LCD

Sage HD300 with Sony KDL40XBR9 and Sony HTCT100 Soundbar
Reply With Quote
  #35  
Old 11-03-2009, 03:06 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
Quote:
Originally Posted by ellweber View Post
Unfortunately, now that the server is waking up a few seconds after the extender sends out its poll to port 31100 I still end up in the extender's stand-alone UI.

How should I set up the HD 200 to see the server automatically?

- I have tried 1, 5 and 15 seconds delay
- I have tried setting up the server by static IP address.
- I have tried with and without the AutoConnect setting
I only have HD100's so I can't test this scenario.. Note that my server takes about a minute to fully 'wake up' so the client keeps polling during that time. but as long as power has not been removed from the extender in the interim it will still go looking for the server in the same place as before rather than doing a 'search'
Reply With Quote
  #36  
Old 11-08-2009, 11:01 PM
Dingdul Dingdul is offline
Sage User
 
Join Date: Apr 2009
Location: Perth, Western Australia
Posts: 66
Quote:
Originally Posted by ellweber View Post
I was able to get my DNS-323 NAS to wake up my Sage server
Wow that's terrific - my one outstanding issue with Sage. Unfortunately though I have no experience of Linux so would be extremely grateful if you could post some instructions for my DNS-323.

Plus have you got it waking correctly into extender mode yet?

Jonathan
__________________
Server: Intel Core Duo E8600 / 4gb RAM / Win7 Home Premium
Tuners: 2 x HDHR for OTA
Clients: 3 HD200 extenders
Network: GB Ethernet / DLink DNS-323
Reply With Quote
  #37  
Old 11-09-2009, 12:29 AM
ellweber ellweber is offline
Sage Advanced User
 
Join Date: Nov 2003
Location: SF Bay Area
Posts: 150
Quote:
Originally Posted by Dingdul View Post
Wow that's terrific - my one outstanding issue with Sage. Unfortunately though I have no experience of Linux so would be extremely grateful if you could post some instructions for my DNS-323.

Plus have you got it waking correctly into extender mode yet?

Jonathan

I am not experienced with Linux either but I have pieced together a solution that almost works. Unfortunately, Sage has left us with a Catch 22 situation. They have a server that is designed to sleep until it needs to wake up for a scheduled recording, they sell an extender that does not know how to wake up its own sleeping server to watch what the server has recorded (no provision to send a WOL magic packet) and, finally, if an external WOL is provided, the extender never does a retry to see if the server has become available.

So, I have to turn the HD 200 on to wake the Server, then turn it off again so it will retry finding the Server when I turn it back on a second time. This rates a zero-plus on my WAF scale! I hope they add a real WOL capability to the HD 200 in a firmware upgrade SOON.

In any case my DNS-323 is modified to allow a more user-configurable Linux environment. There is an active community of users that have developed a suite of tools that make this possible. Go to: http://forum.dsmg600.info/f3-DNS323-...iscussion.html to get started and also to: http://wiki.dns323.info/ for more resources. The key to all of this is the installation of a tool called fun_plug on your DNS-323. I will not try to duplicate all of the install info here, as I have not looked at that for a long time.

I had already added scripts to better manage the disk drive sleep behavior and to control the fan speed.

The main script that sends the WOL to wake the server is “sagewake”:

Code:
#!/bin/sh
  PATH=/ffp/bin:/bin:usr/sbin:/sbin:/usr/bin
  /ffp/bin/ether-wake -b -i egiga0 00:1e:8c:86:6b:ed
   
  # Kill inetd so it can be restarted, only works once? 
  PID=$(/bin/pidof inetd)
  if [ -n "$PID" ]
  then
     kill -9 $PID
  fi 
  sleep 1
   
  # restart it for the next time
  /ffp/sbin/inetd
“ether-wake” is the Linux program that generates the WOL message and that line ends with the MAC address of your Sage Server’s LAN device. For reasons that I do not yet understand this only works the first time it runs so I kill and restart the Linux service manager “inetd.”

This line needs to be added to the file “services” which, in my system, is located in ffp/etc:

Code:
sage                 31100/udp      # sage extenders broadcast on boot up
This defines a new service that will listen for a udp message on port 31100 which is what the HD 200 sends out when it wakes up.

This line needs to be added to inetd.conf, which, in my system, is also in ffp/etc:

Code:
sage                 dgram            udp             wait             root             /ffp/start/sagewake
This sets the action taken upon detection of the port 31100 activity.

I found that because the services and inetd.conf files reside in flash I needed to copy them to RAM so that my edits would stick. Also, I found that inetd wasn’t even running by default so I needed to start it for the first use then it would be restarted by sagewake for subsequent use. I added these files to the master fun_plug script but I suspect that there is a more appropriate place for them.

Code:
# copy modified "services" and inetd.conf file to RAM 
   
  cp -p -f /ffp/etc/services /etc/services
  echo "++++++++copy services to RAM++++++++++++"
   
  cp -p -f /ffp/etc/inetd.conf /etc/inetd.conf
  echo "++++++++copy inetd.conf to RAM++++++++++++"
   
  # start inetd 
   
  /ffp/sbin/inetd
  echo "+++++starting inetd+++++"
This seems like a lot of hassle and band-aid for such a basic problem but the part that works does work for me. Credit to BlueH2O and cheekymonkey for the ideas and the development. Note that the file locations and other details may not apply to different versions of the underlying DNS-323 software and the fun_plug tools. I am running 1.03 DNS-323 S/W and funPlug3.

Good luck!

Lynn

ps: I don't see any reason why the HD 200 couldn't do this same thing, without much effort. As far as I can see it too is running some form of Linux.
__________________
Server: Sage 7.1.9, service only, Java 1.6, Win XP Pro sp2, Asus M2A-VM, Athlon 64X2 4000+, 2 GB RAM, 2 x HDHR, 2 x WD 320 GB for media, OS on OCZ Vertex 60GB

Client: Sage 7.1.9, Java 1.6.0_15, Win XP Pro sp3, Asus A8N5X, Athlon 64 3500+, 1 GB RAM, Asus Silent nVidia 8400GS, WD 250 GB SATA for OS and local storage, Sanyo PLV-Z4 1280x720 LCD

Sage HD300 with Sony KDL40XBR9 and Sony HTCT100 Soundbar

Last edited by ellweber; 11-11-2009 at 07:53 PM.
Reply With Quote
  #38  
Old 12-21-2009, 12:49 PM
bshiek bshiek is offline
Sage User
 
Join Date: Jan 2008
Posts: 15
Hmm. Thanks for the sharing the scripts. Do you think I could run a similar WOL script from an HD100 extender to DD-WRT router to SageTV server? I have some reading to do on DD-WRT...
Reply With Quote
  #39  
Old 12-21-2009, 01:40 PM
BlueH2O's Avatar
BlueH2O BlueH2O is offline
Sage Advanced User
 
Join Date: Aug 2005
Location: Rochester, NY
Posts: 98
Quote:
Originally Posted by bshiek View Post
Hmm. Thanks for the sharing the scripts. Do you think I could run a similar WOL script from an HD100 extender to DD-WRT router to SageTV server? I have some reading to do on DD-WRT...
DD-WRT supports WOL and xinetd, so this should be no problem.
Reply With Quote
  #40  
Old 01-16-2010, 07:09 AM
fac13 fac13 is offline
Sage Advanced User
 
Join Date: Feb 2008
Location: UK
Posts: 199
I've just been down the same path and my DNS-323 now wakes up my Sage server when it sees the 31100 UDP broadcast.

Unless I've missed something, this doesn't leave us much better off though, does it? The problem is that the extender only broadcasts to 31100 when it is first powered on, or forced to simulate a power-on by pressing the Home key or the Menu button while on standby. Is that correct?

Usually an extender is resumed from standby, not started from cold, at least in my house, but this does not generate a 31100 broadcast, even if repeated attempts to reach the last-used server fail. I've traced it and it just sends packets to port 31099 at the last-used server IP address, over and over, forever.

I can see the point of it retrying a few times, but FOREVER? Surely better to give up, tell the user the last-used server is unavailable and broadcast on 31100 to see if there are any alternative servers available?

It's much quicker to go and resume the server myself than force the extender to cold-start just to get it to generate a 31100 packet. Or have I missed something?

Edit: I should mention that I am using HD100s, maybe HD200s behave differently?

Last edited by fac13; 01-16-2010 at 07:14 AM.
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
HD200 - How to get back to home screen after attaching to SageTV Server? Fountainhead SageTV Media Extender 11 02-08-2009 06:57 PM
SageMC ...Wake Server/PC to Record... joelinkup SageTV Software 4 01-10-2009 02:49 PM
HD Media Extender does not find Server HiDefDon SageTV Media Extender 25 11-10-2008 08:55 AM
Ubuntu Hardy (8.04) - Client RazorJack SageTV Linux 4 05-02-2008 08:17 PM
Sage server upgrade to Xeon, client help. mleonard Hardware Support 1 07-08-2007 10:45 AM


All times are GMT -6. The time now is 12:53 AM.


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