[mythtv-users] preventing screen from blacking out

Ricardo Kleemann ricardo at americasnet.com
Sun Oct 9 01:22:17 UTC 2005


That's awesome, Brady.

Thanks. I'll give it a try!

Ricardo

----- Original Message ----- 
From: "Brady" <liquidgecka at gmail.com>
To: "Discussion about mythtv" <mythtv-users at mythtv.org>
Sent: Saturday, October 08, 2005 5:04 PM
Subject: Re: [mythtv-users] preventing screen from blacking out


If you are in Fedora you can run:

chkconfig mythbaqckend on

or

chkconfig mythtvbackend on

depending on the install method.


As far as the user goes. I usually run WM less just to eliminate the
load required on the user end of things.

I create a user called frontend:

useradd frontend

then tweak /etc/X11/gdm/gdm.conf. At about line 29 you will see two
AutomaticLogin options. Mine are:
AutomaticLoginEnable=true
AutomaticLogin=frontend

I also use:
TimedLoginEnable=true
TimedLogin=frontend
TimedLoginDelay=5

Just incase I want to login as a different user some time I set the
time to 5. This only happens if you log out and back in.

Anyways.. With that in place I create a custom .Xclients file in my
frontend users home directory.

the ~frontend/.Xclients file contains:
#!/bin/sh

#/usr/bin/icewmbg &

/usr/X11R6/bin/xset -dpms
/usr/X11R6/bin/xset s off

while (true)
do
        /usr/bin/mythfrontend > /tmp/myth.out 2> /tmp/myth.err
done

This will restart mythfrontend if it crashes, down off the dpms just
in case and disable any screensavers as well. I keep the output for
debugging reasons.

That allows me to boot the system normally and get it up and running.

At some point I should finish up my MythTV DVD installer. Most people
can't tell the difference between my MythBox and a stand alone TiVo
unit =) I suppress BIOS output and the text based boot up information
so that the user powers the box on, waits about 10 seconds and then
sees the Fedora boot program (RHGB). About 30 seconds after that they
get the Myth main menu =)

I plan on adding a compaq flash system for backing up the myth
database so that if a disk fails they will lose programs but not
recording preferences.

What I really want is a "Stick the DVD in and select install" with
your remote kind of installer. Got the install scripts working right
but the menuing system is all foobar right now.




On 10/8/05, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> Ricardo Kleemann wrote:
>
> > How do I configure my desktop so that it won't black out ("sleep")
> > after a while and also so that it doesn't lock out the user, requiring
> > password?
> >
> > If I want mythfrontend to be up and running all the time, with the
> > menu showing, I don't want the screen to go black and also the desktop
> > to be locked out.
>
> Sounds like you're running xscreensaver (the app) because X doesn't lock
> you out when it turns on DPMS...  So, don't run xscreensaver.  If you
> can't figure out how to tell your system not to start it, you can always
> just turn it off:
>
> xscreensaver-command -exit
>
> > Another thing, is there a way to do autostart of myth upon boot-up,
> > without booting into level 3? Is it possible to boot into level 5 and
> > still get myth to autostart?
>
> Run level makes no difference...  If you configure your system to
> autostart Myth on run level 5, it will.
>
> Check the fora/lists for your distro.
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
_______________________________________________
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