Mailing List Archive

RHL9, MythTV, premature init of backend?
A bit of background: I'm running RHL9, a WinTV PVR-250, a GeForce 4 Ti
for s-video out to my TV and MythTV out of CVS...

I've been busy trying to verify the correctness/completeness of the
guide I've been putting together (you can find the work-in-progress
here: http://pvrhw.goldfish.org/tiki-page.php?pageName=rh9pvr250 ), and
I've found a relatively major problem with this whole setup... If the
mythbackend loads before X, all I get is channel 4 in MythTV, I can't
change the channel, and I don't get any OSD show info (but the box at
the bottom and the time show up).

It states in the /etc/init.d/mythbackend script that it loads after X,
but this is not the case (at least not under RHL9). It is loading up
well before X, which is the only reason I can figure out for it not
working (it still fails if called from rc.local, the last init script
run). If I disable the init script from loading it at startup, then
manually start it up (from a root shell) after X loads, everything is
fine...

However, I'm not sure why this would end up being the case, because the
frontend and backend can be on different computers, and the backend
doesn't even have to run X, so why would proper functionality of the
backend require that X was already loaded?

I haven't figured out a workaround just yet, since daemonizing the
mythbackend requires root privileges, and there's no easy way to get an
automated root-enabled launching after a non-privileged user's login
starts (my mythtv user). Perhaps it is a problem with the cvs version...

Anyone have any ideas?
Re: RHL9, MythTV, premature init of backend? [ In reply to ]
Jarod Wilson wrote:

> I haven't figured out a workaround just yet, since daemonizing the
> mythbackend requires root privileges, and there's no easy way to get
> an automated root-enabled launching after a non-privileged user's
> login starts (my mythtv user). Perhaps it is a problem with the cvs
> version...

You could modify the X startup script to start mythbackend. You're
right, I don't see why it makes a difference, but try modifying
/etc/X11/xdm/Xsetup_0

That script is run as the X login manager starts.

>
>
> Anyone have any ideas?
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
Re: RHL9, MythTV, premature init of backend? [ In reply to ]
On Friday, Jun 6, Mark Levitt wrote:

> Jarod Wilson wrote:
>
>> I haven't figured out a workaround just yet, since daemonizing the
>> mythbackend requires root privileges, and there's no easy way to get
>> an automated root-enabled launching after a non-privileged user's
>> login starts (my mythtv user). Perhaps it is a problem with the cvs
>> version...
>
> You could modify the X startup script to start mythbackend. You're
> right, I don't see why it makes a difference, but try modifying
> /etc/X11/xdm/Xsetup_0
>
> That script is run as the X login manager starts.

No dice. I tried that, as well as putting a script to launch it in
/etc/X11/xinit/xinitrc.d/, and the problem persists...

I'm curious if this problem exists with 0.8, or only with pre-0.9 from
CVS, and if it has anything to do with the PVR-250 or not...
--
Jarod C. Wilson, RHCE
<jcw@wilsonet.com>
"A wise man once said nothing at all."
Re: Re: RHL9, MythTV, premature init of backend? [ In reply to ]
> I'm curious if this problem exists with 0.8, or only with pre-0.9 from
> CVS, and if it has anything to do with the PVR-250 or not...

Have you tried Axel's rpm? I've been using that /etc/init.d script
installed with that (not sure if it's part of the main Myth tree or not)
and have been having no trouble with either .8 or CVS from a week or so
ago.

-Chris