Results 1 to 4 of 4

Thread: [SOLVED] myth-hibernate.sh workings

  1. #1
    Join Date
    Aug 2006
    Location
    Crakatinny, nea
    Beans
    Hidden!

    [SOLVED] myth-hibernate.sh workings

    Hi,
    Regarding the myth-hibernate.sh script, it seems to work OK up to a point for me. It hibernates the PC (ASUS M3A mobo), and it comes back pretty smartly.

    However, in the frontend settings even when selecting only the "SHUTDOWN" option the exit menu option is "EXIT and SHUTDOWN". In other words, the Frontend will exit and then the PC goes to hibernate.

    When it comes back from hibernate the frontend is, of course, no longer running.

    Is there a way around this so that the frontend will be running when the PC comes back from hibernate?

    Or have I missed something altogether about putting the PC to sleep when it isn't in use?

    Cheers
    The GuiGuy
    Free is only good when it works.

  2. #2
    Join Date
    Oct 2007
    Beans
    502

    Re: myth-hibernate.sh workings

    That must be an annoying problem

    You can either bind the hibernate script to a button on your remote using irexec, or you can add a button to frontend menu (http://www.mythtv.org/wiki/index.php...e#Helpful_Tips - also read the rest of the article to find out how to prevent your menu file from getting overwritten).
    Please read 'How to get help' before asking a question about Mythbuntu.

  3. #3
    Join Date
    Aug 2006
    Location
    Crakatinny, nea
    Beans
    Hidden!

    Re: myth-hibernate.sh workings

    Quote Originally Posted by laga View Post
    That must be an annoying problem

    You can either bind the hibernate script to a button on your remote using irexec, or you can add a button to frontend menu (http://www.mythtv.org/wiki/index.php...e#Helpful_Tips - also read the rest of the article to find out how to prevent your menu file from getting overwritten).
    Thanks.
    The GuiGuy
    Free is only good when it works.

  4. #4
    Join Date
    May 2007
    Beans
    2,334

    Re: [SOLVED] myth-hibernate.sh workings

    Hi,

    I just use the attached script to restart the frontend app when it's not running:-

    Code:
    #! /bin/bash
    # Provides:          check if the Myth-Frontend is still running
    # Short-Description: if it dies restart it
    # Author:            Ian Dobson (i.dobson {at} planet-ian.com
    sleep 30
    while [ "1" != "0" ]; do
       Active=`ps -A| grep "mythfrontend"`
       if [ "$Active" == "" ]; then
          killall -15 gdm
          echo  "mythfrontend  Dead" > /var/log/mythtv/frontend.log
          sleep 5
          /etc/init.d/gdm start
         sleep 15
       fi
       sleep 30
    done
    Just save as /usr/bin/watch-frontend.sh and create a rc script that calls watch-frontend.sh .

    Regards
    Ian Dobson
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

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
  •