User Tools

Site Tools


tech:mythtv:start

MythTV Topics

Typical Installation

  • Install mythbuntu from DVD
  • Enable the MythTV and Mythbuntu repositories in the Mythbuntu Control Center GUI
  • Run (as root): apt update
  • Run (as root): apt upgrade

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

  • Set up some performance concerns in /boot/config.txt:
    gpu_mem=256
  • Disable wifi in /boot/config.txt:
    dtoverlay=pi3-disable-wifi
  • Put CPU in performance mode (as root):
    echo "performance" | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  • Turn off the screen saver:
    xset s off
  • Disable other energy star features:
    xset -dpms
  • Add PPA for Flirc (as root):
    curl -sLS http://apt.flirc.tv/add | bash
  • Ensure pulseaudio is disabled
  • Force audio to HDMI using the raspi-config command (as root)
  • Ensure audio is set to ALSA:default in mythfrontend's config section
  • Ensure volume is set to maximum and saved with alsamixer and alsactl store
  • Set OpenMAX High Quality in video playback options, ensuring max CPUs is 4
  • The “Advanced” de-interlacing won't work with OpenMAX, so adjust accordingly

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

tech/mythtv/start.txt · Last modified: 2018/08/05 12:07 by rk4n3