Who's onlineThere are currently 0 users and 0 guests online.
User login |
ACPI Wakeup / Shutdown Script Mythtv Frontend & SlavesThis script is pretty straight forward. I wrote it a while back to handle acpi shutdown / wakeup for my slave backends. I had issues getting mythwelcome and acpi working, so I opted to just create a cronjob that determined when a machine was idle enough to shutdown. Basically this will check for upcoming recording schedules and set the time ~10 minutes earlier for wakeup. It will also wakeup daily to check for new recordings and then shutdown. If you're using xine or mplayer or watching/recording the host will stay running, anything else and the machine will go to down. I run this */5 in cron, and there is a 3 minute grace period loop that if the shutdown checks are true, and you haven't yet started to watch another movie or don't have a live preview in "watch recordings" going the machine will go down. This may be a little to strict for some users so play with cron settings to your liking. I prefer my slave backend to go to shortly after I've finished using it. There are a few settings in the beginning that need to be defined for the host you intend to set this up on namely the following: hosttuner: my $hosttuner='2'; #tuner to check for on this slave dailywake: my $dailywake='19'; # 2 digit hour for daily wakeup for dailydown: my $dailydown='23'; # Daily shutdown time if the system is idle recordpath: my $recordpath='/video/recordings'; #Path where recordings are stored Hopefully this is useful to someone.
|
Shameless Begging... |