Setting up XBMCbuntu 12 based HTPC - Part 4 - lightdm

Next we need to fix annoying bug that prevents HDMI audio from working out of the box.

# There's well known race condition in lightdm startup so we need
# a workaround. This will slow down XBMC startup by up to 15 seconds
# on XS35GT, but it is mandatory for reliable audio device detection
# on startup.

# Backup original config
mkdir -p ~/bak
cp /etc/init/lightdm.conf ~/bak

# Create patched config
patch -p0 -l <<'__EOF__'
--- /etc/init/lightdm.conf      2012-12-25 03:09:22.272786045 +0200
+++ /etc/init/lightdm.conf      2012-12-25 03:10:16.561055206 +0200
@@ -11,6 +11,7 @@
 start on ((filesystem
            and runlevel [!06]
            and started dbus
+           and started udev-finish
            and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                 or stopped udev-fallback-graphics))
           or runlevel PREVLEVEL=S)
@@ -44,6 +45,7 @@
        fi
     fi

+    sleep 3
     exec lightdm -d
 end script
__EOF__

# As lightdm update will overwrite this file we also block updates.
echo "lightdm hold"|dpkg --set-selections

Comments

  1. Thank you very much for the "fix annoying bug that prevents HDMI audio from working out of the box." stuff. My audio is working perfectly now on my xs35gt boxes!

    ReplyDelete

Post a Comment

Got something to say?!