Kodi Community Forum
HDMI sound missing until lightdm restart - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: HDMI sound missing until lightdm restart (/showthread.php?tid=192750)



HDMI sound missing until lightdm restart - lcersly - 2014-04-20

Yes another hdmi sound related thread...

I'm setting up a xbmcbuntu on a Zotac HD-ID11, and the latest release I could find was for XBMC 12.2 so I installed that and updated it to 12.3 by adding the xbmc-team ppa repos and then updating with apt-get.

But after the update there is some problems with the audio.
From a cold boot the audio settings in XBMC will say that there is no Nvidia channel available, but if i then go to the console and run
Code:
sudo restart lightdm
afterwards the Nvidia HDMI audio channel is selectable in xbmc.

I've been trying setting various sleep delays in config files to see if it was xbmc being started before the Nvidia card was ready. But so far no luck.

I've uploaded two logs:
XBMC autostart: http://xbmclogs.com/show.php?id=181041
lightdm restart XBMC startup: http://xbmclogs.com/show.php?id=181044

If anyone has any suggestions as to how I can avoid doing the manual restart every time I would be very happy Tongue
Or should I perhaps just wait for an (if any) official xbmcbuntu release of XBMC 13?


RE: HDMI sound missing until lightdm restart - fritsch - 2014-04-20

Please use the forum search. This was answered multiple times. You need to make lightdm init script wait until udev is finished: http://forum.xbmc.org/showthread.php?tid=145451&pid=1325974#pid1325974


RE: HDMI sound missing until lightdm restart - lcersly - 2014-04-21

Thanks for the quick reply.

Yes, I tried following this:
Quote:sudo nano /etc/init/lightdm.conf

Quote:start on ((filesystem
and runlevel [!06]
and started dbus
and stopped udevtrigger
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udev-fallback-graphics))
or runlevel PREVLEVEL=S)

And added the bold text to the conf file. But it didn't work. A manual restart is still needed.


RE: HDMI sound missing until lightdm restart - fritsch - 2014-04-21

post the whole config.


RE: HDMI sound missing until lightdm restart - poulanker - 2014-04-22

(2014-04-21, 15:41)fritsch Wrote: post the whole config.

Hi,
actually, I am the owner of the XBMC system that lcersly was helping to setup during his visit to his hometown Smile. He's now back at work, so I am on my own, so to speak.

As requested, here's the whole config:
Code:
# LightDM - light Display Manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services
#
# based on gdm upstart script

description    "LightDM Display Manager"
author        "Robert Ancell <[email protected]>"

start on ((filesystem
           and runlevel [!06]
           and started dbus
           and stopped udevtrigger
           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udev-fallback-graphics))
          or runlevel PREVLEVEL=S)

stop on runlevel [016]

emits login-session-start
emits desktop-session-start
emits desktop-shutdown

script
    if [ -n "$UPSTART_EVENTS" ]
    then
        # Check kernel command-line for inhibitors, unless we are being called
        # manually
        for ARG in $(cat /proc/cmdline); do
            if [ "$ARG" = "text" ]; then
        plymouth quit || :
                stop
        exit 0
            fi
        done

    [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; }

    if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
    then
        # Single-user mode
        plymouth quit || :
        exit 0
    fi
    fi

    exec lightdm
end script

post-stop script
    if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
        initctl emit desktop-shutdown
    fi
end script

Thanks for your help, it is highly appreciated.


RE: HDMI sound missing until lightdm restart - fritsch - 2014-04-22

Are you in need of that pulseaudio you are running, e.g. xbmc only or something else is running on the hardware?


RE: HDMI sound missing until lightdm restart - poulanker - 2014-04-22

(2014-04-22, 11:40)fritsch Wrote: Are you in need of that pulseaudio you are running, e.g. xbmc only or something else is running on the hardware?

No, I only intend to use it for XBMC :-)


RE: HDMI sound missing until lightdm restart - fritsch - 2014-04-22

then: sudo apt-get remove --purge pulseaudio libasound2-plugins && sudo reboot


RE: HDMI sound missing until lightdm restart - poulanker - 2014-04-22

Bingo!

Removing pulseaudio did the trick Big Grin

Thanks a lot fritsch Smile, I appreciate your help.

@lcersly. Your help is certainly also very much appreciated Smile


RE: HDMI sound missing until lightdm restart - fritsch - 2014-04-22

For all that read this: If you want pulseaudio to be ready after lightdm, let lightdm wait for it.