[mythtv-users] Shutdown unused slaves

Bob spam at homeurl.co.uk
Wed Mar 22 02:06:43 UTC 2006


John Armstrong wrote:
> From: "Bob" <spam at homeurl.co.uk>
>> Nick wrote:
>>> This could be very useful if the MBE scheduler added new recordings
>>> for the SBE machines to record as WOL could wake them up at the new
>>> time,
8< snip

>> I thought MythTV already used WOL to power up SBEs when needed for a
>> recording, as for the rest, I have no idea how hard such features would
>> be to implement, or if they're planed, do you?
> 
> Only seems to use WOL for the master to wake the slaves when it starts up.
> 
> I'm tinkering with a simple script to run on a slave to check if it is 
> needed and shutdown if not. 
8< snip

> I think my approach could cause scheduling problems in some cases that would 
> need some real work at the scheduling system, eg with Master+Slave, each 
> with 1 tuner:
> program 1 8pm-10pm, normal priority, scheduled on master
> program 2 9pm-10pm, high priority, scheduled on slave
> at 5pm, slave decides it isn't doing anything for a few hours so shuts 
> itself down until 8:55pm.
> Master notices slave is no longer there, doesn't know it is going to wake up 
> again, so cancels its 8-10 recording in favour of the higher priority 9-10 
> recording.
> Slave wakes up, but has nothing to do. 8-10 recording gets missed.
> It may be possible that use of source priorities may avoid this, but 
> otherwise, the scheduling system would need to know when currently offline 
> backends will be online.

The best solution would be to have the master consider the shutdown 
slave as "sleeping" and not alter the schedule, in an ideal world, with 
a situation like this the master would start it's 8pm recording as 
normal, at 8:55 it should WOLup the slave and then if at 8:58pm the 
slave isn't available to start it's recording the master would ditch and 
delete it's 8 -> 10pm recording and start the 9 -> 10pm one.

This way you get to keep the current functionality but gain the ability 
to shutdown slaves when they're not needed.

It's all beyond my programming skill though but if you're after testers, 
I'm your man.


More information about the mythtv-users mailing list