I finally got around to testing my instructions since mythtv-light moved to Orangedox. This was a quick edit after I got my RPI4 mythtv combo setup for this years RVing season. (My RV is where I use the RPI4 with mythtv)
https://mythtv-rp4.blogspot.com/2020/11 ... rpi-4.html
updated instructions for mythtv-light on RPI4
- jfabernathy
- Senior
- Posts: 577
- Joined: Wed Feb 18, 2015 2:37 pm
- Location: Raleigh, NC
- jfabernathy
- Senior
- Posts: 577
- Joined: Wed Feb 18, 2015 2:37 pm
- Location: Raleigh, NC
Re: updated instructions for mythtv-light on RPI4
I had trouble with the script run_mythfrontend.sh from pi-utils and not the skills to fix it so I found a solution that works fine on my RPI4 combo FE/BE.
Code: Select all
#!/bin/bash
# script to run mythfrontend from version 31 on Raspberry Pi under Raspian Buster using EGLFS
# can be added to .bashrc to allow autostart of mythfrontend on boot
# Last Modified 24 July 2020
# Author Mike Bibbings
#check for any arguments on command line, if so use for mythfrontend command, so we can use different parameters
#e.g. run_mythfrontend.sh --logpath /home/pi --loglevel debug
# if no arguments set --logpath /tmp
if [ -z "$*" ] ; then
ARGUMENTS="--logpath /tmp -O PowerOffTVOnExit=0"
else
ARGUMENTS="$*"
fi
# set perfomance mode, not sure if needed for Pi4, do it anyway
echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
RESOLUTION="1920x1080@60"
echo "Setting screen to $RESOLUTION"
#for QT debug add to command line QT_QPA_EGLFS_DEBUG=1 QT_LOGGING_RULES=qt.qpa.*=true
QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs mythfrontend $ARGUMENTS
# fixup keyboard after exit from mythfrontend, bug in QT causes segment fault which kills keyboard input
kbd_mode -u
# restore cursor
setterm --cursor on
exit 0
- jfabernathy
- Senior
- Posts: 577
- Joined: Wed Feb 18, 2015 2:37 pm
- Location: Raleigh, NC
Re: updated instructions for mythtv-light on RPI4
NOTE! I seem to only need this if I overclock the RPI4jfabernathy wrote: ↑Sun May 16, 2021 10:20 amI had trouble with the script run_mythfrontend.sh from pi-utils and not the skills to fix it so I found a solution that works fine on my RPI4 combo FE/BE.Code: Select all
#!/bin/bash # script to run mythfrontend from version 31 on Raspberry Pi under Raspian Buster using EGLFS # can be added to .bashrc to allow autostart of mythfrontend on boot # Last Modified 24 July 2020 # Author Mike Bibbings #check for any arguments on command line, if so use for mythfrontend command, so we can use different parameters #e.g. run_mythfrontend.sh --logpath /home/pi --loglevel debug # if no arguments set --logpath /tmp if [ -z "$*" ] ; then ARGUMENTS="--logpath /tmp -O PowerOffTVOnExit=0" else ARGUMENTS="$*" fi # set perfomance mode, not sure if needed for Pi4, do it anyway echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor RESOLUTION="1920x1080@60" echo "Setting screen to $RESOLUTION" #for QT debug add to command line QT_QPA_EGLFS_DEBUG=1 QT_LOGGING_RULES=qt.qpa.*=true QT_QPA_EGLFS_ALWAYS_SET_MODE="1" QT_QPA_PLATFORM=eglfs mythfrontend $ARGUMENTS # fixup keyboard after exit from mythfrontend, bug in QT causes segment fault which kills keyboard input kbd_mode -u # restore cursor setterm --cursor on exit 0