[mythtv-users] No Display on Frontend
Kirk Bocek
t004 at kbocek.com
Thu Aug 6 14:34:42 UTC 2015
On 8/6/2015 5:30 AM, Michael T. Dean wrote:
> On 08/05/2015 08:22 PM, Kirk Bocek wrote:
>> It's that first display of the menu on startup that's not happening.
>> I've selected the MythCenter-Wide theme. I get the textured blue
>> background of that theme but nothing else.
>
> I've seen this happen when 2 instances of the frontend are started.
> Are you sure everything is starting cleanly and you only have one
> mythfrontend running?
>
> Mike
No, I've looked closely at the processes:
# ps -ef
...
mythtv 11807 745 0 Aug05 tty8 00:00:00 /bin/sh /bin/startx
mythtv 11828 11807 0 Aug05 tty8 00:00:00 xinit
/var/lib/mythtv/.xinitrc -- /usr/bin/X :0 vt8
root 11829 11828 0 Aug05 tty8 00:00:16 /usr/libexec/Xorg.bin :0
vt8 -keeptty -nolisten tcp
mythtv 11832 11828 0 Aug05 ? 00:00:00 sh /var/lib/mythtv/.xinitrc
mythtv 11836 11832 6 Aug05 ? 00:58:25 /usr/bin/mythfrontend
--logpath=/var/log/mythtv
...
But I was thinking, am I starting mythfrontend correctly? My process is
this:
1. Autologin the mythtv user, exact method depends on linux version
(Upstart/Systemd)
2. /var/lib/mythtv/.bash_profile looks like:
#See nvidia readme:
#export __GL_SYNC_TO_VBLANK=1
/usr/bin/setterm -blank 0 -powerdown 0
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty8 ]; then
while [ 1 == 1 ]
do
startx
sleep 4
/usr/bin/xset -display :0 s noblank
/usr/bin/xset -display :0 s off
/usr/bin/xset -display :0 -dpms
done
fi
One host is Nvidia, this one is the Liva so the Nvida line is commented out.
3. /var/lib/mythtv/.xinitrc looks like:
xset -dpms s off
xsetroot -solid black
xhost +
#See nvidia readme:
export __GL_SYNC_TO_VBLANK=1
#/usr/bin/pkill irexec
#/usr/bin/irexec -d /var/lib/mythtv/.lircrc
/usr/bin/mythfrontend --logpath=/var/log/mythtv
#mythtv-setup
#/usr/bin/fvwm &
#xterm
So, if I want a simple xterm window for testing, I uncomment those lines
and comment out the mythfrontend line and pkill X. My loop in
.bash_profile means if mythfrontend crashes or exits it will restart
after four seconds. I actually find it pretty useful.
Does anyone see any problems with this startup process?
More information about the mythtv-users
mailing list