← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 563139] Re: [lucid] gdm and mythfrontend sometimes starts before lirc

 

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

-- 
[lucid] gdm and mythfrontend sometimes starts before lirc
https://bugs.launchpad.net/bugs/563139
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.

Status in Mythbuntu, Ubuntu derivative focused upon MythTV: Triaged

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.





References