Shutdown Wakeup

MythTV Shutdown / Wakeup How to

'Warning this procedure worked for me, but it may hose your BIOS rendering your motherboard a poor excuse for a frisbee. I hold no responsibility'

This is a basic tutorial on using the shutdown and wakeup features of MythTV as described here [1]. It assumes you are using a combined frontend/backend machine. Directions are FC2 specific, but should work for many distributions.

Follow the instructions from the script, it will ask you to change the bios settings and reboot several times.

Run through rebooting your computer and creating the config file.
The config file nvram-wakeup.conf will be found in the root home directory in the guess-directisa directory. Copy this file somewhere permanent and name it mymb.conf.

you may not need the -A, but that was the only way it worked for me
Check the BIOS upon reboot that the values have been stored correctly. If not, search Google, or as a last resort email the project admin Sergei, he is very helpful.

My MB requires a reboot for the wakeup to work properly. This requires a couple more steps. Myth will reboot the computer to a kernel that immediately shuts down the computer.

Default is whatever place your shutdown kernel is in grub.conf. Most likely 1 or 2 (dual-boot).
Make it executable:
# chmod 755 /usr/sbin/mythshutdown

Instead of the script above, the grub-reboot scribt could be used (part of most distributions?). As the script requires keyboard interaction it is used like

### /usr/sbin/mythshutdown ###
echo "y" | grub-reboot 1

Now give it a try. Exit the frontend and wait to see what happens. After the idle time, it should reboot, then shutdown after the grub screen, and wakeup just in time for the next recording. Check the mailing list if you have any problems [3].

Next problem. If you have the frontend startup automatically, it will never shutdown without you manually quitting the frontend. I got around this by starting up the frontend by lirc.

Remove link to autostart frontend

$ rm ~/.kde/Autostart/mythfrontend

Autostart irexec

ln -s /usr/bin/irexec ~/.kde/Autostart/

Edit your ~/.lircrc file to include a button to startup the frontend I used the power button on my grey hauppauge