View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 23, 2010 3:56 am 
Offline
Joined: Tue May 11, 2010 2:51 am
Posts: 31
Location: Turin - Italy
Both my MBE and SBE have recording capabilities and HDDs hence programs are recorded according to the schedule on each BE local HDD unit.

When MBE starts it wakes up SBE but after a few minutes it sends it to sleep.
In this condition if I try to play on the MBE a recorded program which is stored on the SBE HDD I get an error back.
Is there any way to get rid of this problem?

_________________
MBE - ASUS M2NPLUS PRO | RAM 4GB | HD 1TB | 4xHVR-1300 | LinHES 6.03
FE -D945GLF2 | RAM 2GB | HD 250GB | LinHES 6.03


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 24, 2010 2:14 am 
Offline
Joined: Tue May 11, 2010 2:51 am
Posts: 31
Location: Turin - Italy
It was easier than expected.
I created a script which send magic packet to every Back End and telnet the command to mythtv.
Then I modified /usr/share/mythtv/themes/defaultmenu/library.xml in order to call the script by EXECuting "wake4watch.sh <command>" (e.g. for the "Watch Recordings" button the command has modified with: <action>EXEC /home/mythtv/bin/wake4watch.sh playbackrecordings</action>)

The wake4watch.sh content is:
Code:
#!/bin/bash
#
#########################################
# The script wake up slaves when needed #
#########################################
#
#
macaddr=( 00:1C:C0:D0:1F:XX 00:1C:C0:DA:F9:XX )
localaddr=( pvr-0 )
for ((l=1; l < 3 ; l++)); do
        for i in ${!macaddr[@]} ; do
                sudo wol -i 192.168.1.255 ${macaddr[i]}
                sleep 0.3
        done
done

echo "jump $1" | telnet localhost 6546

_________________
MBE - ASUS M2NPLUS PRO | RAM 4GB | HD 1TB | 4xHVR-1300 | LinHES 6.03
FE -D945GLF2 | RAM 2GB | HD 250GB | LinHES 6.03


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu