← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 470672] Re: mythbuntu starts frontend to fast

 

Hi figoza,

I assume you have a standard mythbuntu setup with backend, mysql and
frontend on the the same machine.

as a quick fix you can for now simply do the following changes as a
workaround:

open a terminal window

enter the following:
sudo nano /etc/init/mythtv-backend.conf

Change the line:
start on (local-filesystems and net-device-up IFACE=lo and started udev-finish)

To (add:and started mysql):
start on (local-filesystems and net-device-up IFACE=lo and started udev-finish and started mysql)

Save and exit editor


Then enter:
sudo nano /etc/init/gdm.conf

Change the start on block from:

start on (filesystem
          and started dbus
          and (graphics-device-added fb0 PRIMARY_DEVICE_FOR_DISPLAY=1
               or drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
               or stopped udevtrigger))


To (3rd line is new):

start on (filesystem
          and started dbus
          and started mythtv-backend
          and (graphics-device-added fb0 PRIMARY_DEVICE_FOR_DISPLAY=1
               or drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
               or stopped udevtrigger))

Save and exit editor

With this your startup may appear slower by a few seconds as GDM only
starts after mythtv-backend is started.

ATTENTION: in case mythtv-backend could not be started due to some
reason you will _not_ get a graphical login screen!!

Hope this helps.

/schaze

P.S.: I used "nano" as editor as you mentioned beeing a newbie. You can
of course use any other editor you like (e.g. vi :) )

-- 
mythbuntu starts frontend to fast
https://bugs.launchpad.net/bugs/470672
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in ubuntu.

Status in “mythtv” package in Ubuntu: Triaged

Bug description:
Binary package hint: mythbuntu-common

I upgraded mythbuntu to 9.10.  Now when I boot, mythwelcome is unable to connect to mysql and comes with a setup dialog. (first screen is choosing the language.) Starting mythwelcome or mythfrontend manually from a terminal works fine, since at that point mysql and mythtv-backend have started. 

I tried delaying the start of mythwelcome in /usr/share/mythtv/mythfrontend.sh. I got it so far that mythwelcome only complains about not finding mythbackend. 
My suspicion is that mythwelcome/mythfrontend start before mysql, mythbackend and/or lircd are correctly started. Either those should be started earlier, or the script that starts mythwelcome/mythfrontend should actively check for those.

If any other information is needed, please let me know.

Bert Haverkamp

P.S. possibly mythbuntu-common is not the appropriate package, but it is definitely a mythbuntu setup problem.