[lucid] gdm and mythfrontend sometimes starts before lirc

Bug #563139 reported by Rune Evjen
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Expired
High
Unassigned

Bug Description

This bugreport is (possibly) related to https://bugs.launchpad.net/mythbuntu/+bug/505705/comments/5, but since that bug report concerns irexec I suggest to have a separate bug report for this issue.

On my Mythbuntu lucid frontend it seems like gdm and mythfrontend is sometimes started before lircd (possibly because gdm uses upstart and lirc doesn't?).

After adding a test to see if lirc is started in mythfrontend.sh (as per https://bugs.launchpad.net/mythbuntu/+bug/505705/comments/5,), my logs confirms that lirc sometimes is not started when mythfrontend starts.

Because of this my remote doesn't work with mythfrontend unless I stop mythfrontend, restarts lirc and start mythfrontend again.

This is on a Mythbuntu 9.10 machine upgraded from karmic, which boots off a CF card.

Revision history for this message
MarcRandolph (mrand) wrote :

Howdy, and thank you for helping to improve Mythbuntu, not only by opening this ticket, but by during further analysis on the issue. I marked this as confirmed since it appears to have enough information to help the developers quickly resolve the problem. It is possible I am wrong and another more experienced triager or developer may adjust the status of the bug to "incomplete" and request additional information.

Changed in mythbuntu:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Rune Evjen (rune-evjen) wrote :

Hi!

I can confirm that the problem is solved by using a upstart script for lirc, and adding a dependency in the gdm upstart script.
I use the following script (probably not a very well written upstart script and with hardcoded lirc options, but it works):

/etc/init/lirc.conf:

description "Lirc"
author "Rune"

start on local-filesystems
stop on starting shutdown

expect fork
#respawn

pre-start script
if [ ! -d "/var/run/lirc" ]; then
mkdir -p "/var/run/lirc"
fi
end script

script
exec /usr/sbin/lircd --output=/var/run/lirc/lircd --driver=commandir
rm -f /dev/lircd && ln -s /var/run/lirc/lircd /dev/lircd
emits lirc-started
end script

post-stop script
       [ -h "/var/run/lirc/lircd" ] && rm -f /var/run/lirc/lircd
end script

..and the modified part of /etc/init/gdm.conf:

..
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)
      and started lirc)
stop on runlevel [016]
..

Best Regards,

Rune

Revision history for this message
Thomas Mashos (tgm4883) wrote :

Marking incomplete as releases prior to 10.04 are no longer supported. Could someone confirm if this issue is still present on a supported Mythbuntu/MythTV release?

Changed in mythbuntu:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mythbuntu because there has been no activity for 60 days.]

Changed in mythbuntu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.