apt update
apt upgrade
//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
Visit the MythTV RPi wiki area for more details
/boot/config.txt
: gpu_mem=256
/boot/config.txt
: dtoverlay=pi3-disable-wifi
echo "performance" | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
xset s off
xset -dpms
curl -sLS http://apt.flirc.tv/add | bash
raspi-config
command (as root)ALSA:default
in mythfrontend's config sectionalsamixer
and alsactl store
OpenMAX High Quality
in video playback options, ensuring max CPUs
is 4For 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
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