Kodi Community Forum

Full Version: XBMC delay on start up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Last night after upgrade alsapackage with this script my boot time was increased considerably.

The system boots normaly, but after a few seconds it shows the login screen and, waiting, waiting, waiting... and after almost 15 seconds XBMC starts. It's not necessary to enter login credentials, XBMC starts automaticly.

What could be causing this? How can I identify what is causing this?

Ubunut Minimal (Maverick) 10.10
XBMC 10.1 (Dharma) + sudo apt-get install xbmc-live
Nvidia: Latest Version

==>> Xorg.0.log <<==

xorg.conf
Code:
Section "Device"
    Identifier "nvidia"
    Driver  "nvidia"
    Option  "NoLogo"              "true"
    Option  "DynamicTwinView"     "false"
    Option  "FlatPanelProperties" "Scaling = Native"
    Option  "ModeValidation"      "NoVesaModes, NoXServerModes"
    Option  "UseDisplayDevice"    "DFP-1"
    Option  "ConnectedMonitor"    "DFP-1"
    Option  "ModeDebug"           "true"
    Option  "HWCursor"            "false"
EndSection

Section "Screen"
    Identifier "XBMCScreen"
    Device     "nvidia"
        Monitor    "Monitor0"
    Option     "ColorSpace" "YCbCr444"    
    SubSection "Display"
        Modes "1920x1080_60_0" "1920x1080_24" "1920x1080"
    EndSubSection
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    Option      "PreferredMode" "1920x1080_24"
EndSection

Section "Extensions"
        Option  "Composite"           "false"
EndSection
you can look at your system logs in /var/log. post them up in a pastebin.
I can solved it myself.

Like I suspect the problem was on HDA_intel audio driver:
Code:
Apr  7 20:01:24 ubuntu kernel: [   16.176504] ALSA hda_intel.c:717: azx_get_response timeout, switching to polling mode: last cmd=0x100f0000
Apr  7 20:01:25 ubuntu kernel: [   17.180504] ALSA hda_intel.c:1432: Codec #1 probe error; disabling it...
Apr  7 20:01:26 ubuntu kernel: [   18.216502] ALSA hda_intel.c:1432: Codec #2 probe error; disabling it...
Apr  7 20:01:27 ubuntu kernel: [   19.252508] ALSA hda_intel.c:1432: Codec #3 probe error; disabling it...
Apr  7 20:01:27 ubuntu kernel: [   19.294445] hda_codec: ALC1200: BIOS auto-probing.
Apr  7 20:01:27 ubuntu kernel: [   19.295844] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input7
Apr  7 20:01:27 ubuntu kernel: [   19.299310] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card1/input8
Apr  7 20:01:27 ubuntu kernel: [   19.299468] HDA Intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
Apr  7 20:01:27 ubuntu kernel: [   19.299472] hda_intel: codec_mask forced to 0xf2
Apr  7 20:01:30 ubuntu kernel: [   22.352006] ALSA hda_intel.c:717: azx_get_response timeout, switching to polling mode: last cmd=0x400f0000
Apr  7 20:01:31 ubuntu kernel: [   23.360007] ALSA hda_intel.c:1432: Codec #4 probe error; disabling it...
Apr  7 20:01:32 ubuntu kernel: [   24.400006] ALSA hda_intel.c:1432: Codec #5 probe error; disabling it...
Apr  7 20:01:33 ubuntu kernel: [   25.440006] ALSA hda_intel.c:1432: Codec #6 probe error; disabling it...
Apr  7 20:01:34 ubuntu kernel: [   26.480505] ALSA hda_intel.c:1432: Codec #7 probe error; disabling it...
Apr  7 20:01:35 ubuntu kernel: [   27.936106] HDMI hot plug event: Pin=5 Presence_Detect=1 ELD_Valid=0
Apr  7 20:01:35 ubuntu kernel: [   27.955225] HDMI hot plug event: Pin=5 Presence_Detect=1 ELD_Valid=1
Apr  7 20:01:36 ubuntu kernel: [   28.740009] HDMI: detected monitor Panasonic-TV at connection type HDMI
Apr  7 20:01:36 ubuntu kernel: [   28.740013] HDMI: supports coding type LPCM: channels = 2, rates = 44100 48000 88200, bits = 16
Apr  7 20:01:37 ubuntu kernel: [   29.536507] HDMI: detected monitor Panasonic-TV at connection type HDMI
Apr  7 20:01:37 ubuntu kernel: [   29.536512] HDMI: supports coding type LPCM: channels = 2, rates = 44100 48000 88200, bits = 16

To solve it i just simple alter the probe_mask (/etc/modprobe.d/sound.conf) from
Code:
options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2
to
Code:
options snd-hda-intel probe_mask=-1,0x2a

Everething works perferctly now. Thanks for the tip to inspect /var/log boot message.

I recomend this site http://http.download.nvidia.com/XFree86/...d_is_valid for everybody that have audio problems. It's very useful information.