User Tools

Site Tools


tech:mythtv:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tech:mythtv:start [2017/11/19 22:10]
rk4n3
tech:mythtv:start [2018/08/05 12:07] (current)
rk4n3
Line 6: Line 6:
   * Run (as root): ​ ''​apt update''​   * Run (as root): ​ ''​apt update''​
   * Run (as root): ​ ''​apt upgrade''​   * Run (as root): ​ ''​apt upgrade''​
 +
 +===== Ubuntu FrontEnd =====
 +==== Samba Shares ====
 +<​code>​
 +//​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
 +</​code>​
  
 ===== Raspberry Pi FrontEnd ===== ===== Raspberry Pi FrontEnd =====
 +Visit [[https://​www.mythtv.org/​wiki/​Raspberry_Pi|the MythTV RPi wiki area]] for more details \\
   * Set up some performance concerns in ''/​boot/​config.txt'':​ \\ <​code>​gpu_mem=256</​code>​   * Set up some performance concerns in ''/​boot/​config.txt'':​ \\ <​code>​gpu_mem=256</​code>​
   * Disable wifi in ''/​boot/​config.txt'':​ <​code>​dtoverlay=pi3-disable-wifi</​code>​   * Disable wifi in ''/​boot/​config.txt'':​ <​code>​dtoverlay=pi3-disable-wifi</​code>​
 +  * Put CPU in performance mode (as root): <​code>​echo "​performance"​ | tee /​sys/​devices/​system/​cpu/​cpu0/​cpufreq/​scaling_governor</​code>​
   * Turn off the screen saver: <​code>​xset s off</​code>​   * Turn off the screen saver: <​code>​xset s off</​code>​
   * Disable other energy star features: <​code>​xset -dpms</​code>​   * Disable other energy star features: <​code>​xset -dpms</​code>​
 +  * Add PPA for Flirc (as root): <​code>​curl -sLS http://​apt.flirc.tv/​add | bash</​code>​ 
 +  * 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 ===== ===== Trivia =====
Line 28: Line 45:
  
 ... you might have to find the values for ''​SDN''​ and ''​VDN''​ from ''​.config/​xfce4/​xfconf/​xfce-perchannel-xml/​displays.xml''​ ... 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'':<​code>​
 +#!/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
 +</​code>​
 +Run this to register the script:<​code>​update-rc.d YourScriptName defaults</​code>​
 +Run this to un-register the script:<​code>​update-rc.d YourScriptName remove</​code>​
  
  \\  \\
tech/mythtv/start.1511151031.txt.gz · Last modified: 2017/11/19 22:10 by rk4n3