[mythtv-users] Autostart frontend ONLY on manual startup?
Sean G
sg_m_dev at rogers.com
Fri Mar 4 01:03:37 UTC 2005
Lane,
I have something similar to that, on boot I startx
then using .xinitrc I display a xmessage box asking
Start Myth. When you want to use myth, press enter on
the remote to start it up.
To do this I replaced the startup of X in the init.d
scripts with this
#! /bin/sh
su mythtv -c "startx > /var/tmp/startx.log &" &
This starts X with a window manager, as userid mythtv
Then in the mythtv home directory created this
.xinitrc file to do the other steps required
xset -dpms s off &
# xclock
mwm &
irxevent &
irexec &
nvidia-settings -l
while :;
do
xmessage -font 12x24romankana -buttons "Start Myth
TV:1" -center -default "Start Myth TV" MythTV
mythfrontend -l /var/tmp/mythfrontend.log
done
This starts the mwm window manager, lirc programs,
settings from my nvidia card, then the xmessage /
mythfrontend loop.
To shutdown the machine, just exit mythfrontend, then
when the backend is idle, it will autoshutdown.
Sean
--- Druid <mythtv-users at fastdruid.co.uk> wrote:
> Lane wrote:
>
> >Has anyone figured out an elegant way to do the
> following:
>
> >- Have Myth frontend start up automatically if and
> only if the machine
> >was started manually
>
> Yes, PoP and something that I was planning to do
> this weekend.
>
> Basicly I am planning to change the shutdown
> command to run a script
> which would set a value (probably write it to the
> mythconverg database
> but it could be as simple as putting the wakeup time
> in a file) then
> shutdown.
> The script that starts the frontend then would look
> at this value and
> if the current time was within a specified amount of
> that time then don't
> start the frontend, if it's way out then start the
> frontend.
>
> I'll post the scripts when I've finished if anyone's
> interested.
>
> HTH
>
> Druid
> > _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
>
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
More information about the mythtv-users
mailing list