Table of Contents

MythTV Topics

Typical Installation

Ubuntu FrontEnd

Samba Shares

//myth/recordings  /home/dvr/Videos/mythtv/tv  cifs  credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127  0  0
//myth/videos  /home/dvr/Videos/mythtv/library  cifs  credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127  0  0
//myth/music  /home/dvr/Music/mythtv  cifs  credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127  0  0
//myth/pictures  /home/dvr/Pictures/mythtv  cifs  credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127  0  0

Raspberry Pi FrontEnd

Visit the MythTV RPi wiki area for more details

Trivia

Display Re-Activation

For some combinations of hardware and software versions, the display that MythTV is using can become “deactivated”, usually due to the actual hardware display being switched to another input (as is common for TVs, switching to a different HDMI port, etc…).

To reactivate a display:

#!/bin/bash
SDN=":0"
VDN="HDMI2"
xrandr -d ${SDN} --output ${VDN} --auto

… you might have to find the values for SDN and VDN from .config/xfce4/xfconf/xfce-perchannel-xml/displays.xml

Execute script at boot

Here's a sample script to put at /etc/init.d/YourScriptName:

#!/bin/sh
# /etc/init.d/mythdvr
### BEGIN INIT INFO
# Provides:          mythdvr
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: MythTV frontend boot steps
# Description:       MythTV frontend boot steps
### END INIT INTO

echo "performance" | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
/usr/sbin/alsactl restore

case "$1" in
  start)
    echo "Starting mythdvr"
  ;;
  stop)
    echo "Stopping mythdvr"
  ;;
  *)
    echo "Usage: /etc/init.d/mythdvr {start|stop}"
    exit 1
  ;;
esac
exit 0

Run this to register the script:

update-rc.d YourScriptName defaults

Run this to un-register the script:

update-rc.d YourScriptName remove


Technical Information Repository