MythTV home theater tutorial - tips

GUIDE TO THE WORLD OF MYTHTV HTPC

This page lists some tips for configuring MythTV. Mostly it is a page to remind me about the good settings I have found.

1. Wake-on-LAN
2. Make RealMedia streams from recordings

1. Wake-on-LAN

You can query and set parameters with tool called 'ethtool'. Check first that the Wake-on-LAN feature of your network card is supported. Replace 'eth0' with your network interface.

$ sudo ethtool eth0
...
Supports Wake-on: g
Wake-on: d
...

Letter 'g' after the feature means that Wake-on-LAN is supported. Letter 'd' means that the feature is disabled. For more information about 'ethtool', check the manpage.

To turn the wol (Wake-on-LAN) feature on, run the following command: (where 'eth0' is your network interface)

$ sudo ethtool -s eth0 wol g

Checking the eth0 status now, should give you something like:

$ sudo ethtool eth0
...
Supports Wake-on: g
Wake-on: g
...

To make the change permanent, it must be added, for example, to '/etc/init.d/bootmisc.sh'. Add the line to the end of 'do_start' function around line 64 right after 'rm -f /tmp/.clean'.

/etc/init.d/bootmisc.sh ...
ethtool -s eth0 wol g
...

From now on, every time you start the computer, the command is executed. Therefore, when shutdown, the computer can be waken up over LAN. Before proceeding to the next step, check the MAC of the network card. It is the one after 'HWaddr'.

$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:3a:eb:d1:1e
...

The rest of the steps are done on the computer doing the waking.

A tool called 'wakeonlan' is used to send magic packets over network. Install it by running:

$ sudo apt-get install wakeonlan

To turn a computer on from another computer, just run:

$ wakeonlan 00:50:3a:eb:d1:1e

Where '00:50:3a:eb:d1:1e' is the MAC address of the correct network card.