Results 1 to 5 of 5

Thread: Set mythbackend to automatically shutdown when recording is over

  1. #1
    Join Date
    May 2012
    Beans
    29

    Set mythbackend to automatically shutdown when recording is over

    Hello,
    After a lot of pain I managed to setup acpi wake up for mythtv. I set the computer to boot at a certain time, autologin and start recording. I tested it and it does work.
    Now, I'd like to make it automatically shutdown when recording is over, but I don't know how to achieve this.
    I followed the guide at http://www.mythtv.org/wiki/ACPI_Wakeup with some arrangements (used rtcwake shell program). The checklogin.sh script is the very same, indeed.

    Some info
    No auto start mythfrontend at startup
    ACPI Wake from state S5 (soft off)
    Autologin at startup
    Ubuntu 12.04 x86_64
    MythTV 0.25

    Thanks

  2. #2
    Join Date
    Jan 2010
    Beans
    8

    Re: Set mythbackend to automatically shutdown when recording is over

    how about using the "AT" command? i'm pretty sure you can format the command to do a shut down at a specified time.
    i'm sorry i can't give you the exact string, but look at the man page and you should have an idea of how to do it.

  3. #3
    Join Date
    May 2012
    Beans
    29

    Re: Set mythbackend to automatically shutdown when recording is over

    Quote Originally Posted by harold95 View Post
    how about using the "AT" command? i'm pretty sure you can format the command to do a shut down at a specified time.
    i'm sorry i can't give you the exact string, but look at the man page and you should have an idea of how to do it.
    Thanks I'll give it a try. Do you know how I can get recording ending time from mythtv?

  4. #4
    Join Date
    May 2012
    Beans
    29

    Re: Set mythbackend to automatically shutdown when recording is over

    I tried to shutdown through the post processing job that can be set for each recording.
    I enabled job execution in backend-setup, but they seem not to be called.
    I also tried to execute a very simple script as a job, but nothing happened.
    This is job_1:
    Code:
    ~/Desktop/job_1.sh %STARTTIME% %ENDTIME%
    This is job_1.sh:
    Code:
    #!/bin/bash
    touch /home/neo/Desktop/test
    echo -e "STARTTIME =\t $1\n" >> ~/Desktop/test
    echo -e "ENDTIME =\t $2\n" >> ~/Desktop/test
    exit 0

  5. #5
    Join Date
    Aug 2013
    Beans
    64

    Re: Set mythbackend to automatically shutdown when recording is over

    Will mythwelcome do what you want? It works fine with Mythbuntu 12.04/Mythtv 0.25
    I'm assuming you have a combined frontend/backend system.
    See http://www.mythtv.org/wiki/Mythwelcome
    Phil

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •