HDMI sound missing until lightdm restart
#1
Music 
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?
Reply
#2
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...pid1325974
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
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.
Reply
#4
post the whole config.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
(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.
Reply
#6
Are you in need of that pulseaudio you are running, e.g. xbmc only or something else is running on the hardware?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
(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 :-)
Reply
#8
then: sudo apt-get remove --purge pulseaudio libasound2-plugins && sudo reboot
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#9
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
Reply
#10
For all that read this: If you want pulseaudio to be ready after lightdm, let lightdm wait for it.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply

Logout Mark Read Team Forum Stats Members Help
HDMI sound missing until lightdm restart0