Solved No sound in gotham
#1
After upgrading to Gotham I don't have sound anymore. I'm coming from the previous version of xbmcbuntu and upgraded to gotham (no reinstallation of xbmcbuntu). I've tried a few solutions found here on the forum (like deleting asound.conf) but nothing helped.

My pc is a Intel NUC D34010WYKH and I want to play the audio over HDMI to my TV speakers. Everything worked fine on previous version of XBMC.

It looks like XBMC detects my audio device randomly. Sometimes HDMI is available but most time it's not. No matter what I select, there is no audio.
Here is my debug log: http://paste.ubuntu.com/7436058/

Currently I have 'Default Output Device (PULSEAUDIO)' and 'Dummy Output (PULSEAUDIO)' available in XBMC.
Code:
root@*****-xbmc:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
I don't have any asound.conf or .asoundrc files.

Code:
root@******-xbmc:~# speaker-test -D plughw:0,3 -c 2

speaker-test 1.0.25

Playback device is plughw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Operation not permitted
This command did not play any sound.

Code:
*****@*****-xbmc:/root$ pactl list sinks
Sink #1
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 20
        Mute: no
        Volume: 0:  46% 1:  46%
                0: -20.25 dB 1: -20.25 dB
                balance 0.00
        Base Volume: 100%
                     0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC283 Analog"
                alsa.id = "ALC283 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "1"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf7c30000 irq 60"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.name = "Lynx Point-LP HD Audio Controller"
                device.form_factor = "internal"
                device.string = "front:1"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Realtek ALC283"
                alsa.components = "HDA:10ec0283,80862054,00100003"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-headphones: Headphones (priority: 9000, not available)
        Active Port: analog-output-headphones
        Formats:
                pcm

Sink #2
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_03.0.hdmi-stereo
        Description: Built-in Audio Digital Stereo (HDMI)
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 21
        Mute: no
        Volume: 0: 100% 1: 100%
                0: 0.00 dB 1: 0.00 dB
                balance 0.00
        Base Volume: 100%
                     0.00 dB
        Monitor Source: alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xf7c34000 irq 60"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:03.0"
                sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.form_factor = "internal"
                device.string = "hdmi:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo"
                device.profile.description = "Digital Stereo (HDMI)"
                device.description = "Built-in Audio Digital Stereo (HDMI)"
                alsa.mixer_name = "Intel Haswell HDMI"
                alsa.components = "HDA:80862807,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
        Active Port: hdmi-output-0
        Formats:
                pcm

Thanks in advance for every reply.
Reply
#2
That input / output error is a sever problem and not related to xbmc, as ALSA fails. I need a full dmesg.

Can you please try to install kernel 3.15-rc5? via

Code:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc5-utopic/linux-headers-3.15.0-031500rc5-generic_3.15.0-031500rc5.201405091635_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc5-utopic/linux-headers-3.15.0-031500rc5_3.15.0-031500rc5.201405091635_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-rc5-utopic/linux-image-3.15.0-031500rc5-generic_3.15.0-031500rc5.201405091635_amd64.deb
sudo dpkg -i *3.15.5*deb

As you are still running Ubuntu 12.10 that is most likely a much too old kernel (hopefully the above kernel boots) It should fix that.

Edit: I would suggest you upgrade to a "supported" Ubuntu version like 14.04
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Uh, well.. This is kind of awkward. I didn't even notice that I'm still on 12.10. I upgraded to 14.04 with
Code:
apt-get install update-manager-core
do-release-upgrade

Now everything works.
Reply
#4
If you run into tearing, make sure to search to forum for howto disable backing store.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
I ran into this problem upgrading as well. My issue may have been slightly different but found a solution. After the upgrade I had no analog sound from the line out/speaker. I'm sure XBMC settings were correct displaying Pulseaudio. When I switched to HDMI however, the audio would play through TV (for those wondering why choose analog over digital, I have older stereo that doesn't have digital inputs...maybe upgrade one day the kids leave the house).

So my scenario is audio worked fine via digital source through HDMI, but not via sound card through line out. Figured it must be OS or driver related.

What I discovered was that the upgrade added the Pulseaudio server as the default audio engine. Apparently that works better and certainly won't argue that fact, but I couldn't figure out how to easily configure it via terminal. So instead I remove it. After a reboot, ASLA was the default audio engine and everything worked as it did before using analog out. Perhaps there is an easy way to configure Pulseaudio from the terminal I didn't find, but my solution worked and sticking with it.

After more hours than I care to admit, audio was fixed with this command in the terminal and then a reboot:

Code:
sudo apt-get autoremove pulseaudio


Hope this may help those that have slightly older hardware.
Reply

Logout Mark Read Team Forum Stats Members Help
No sound in gotham0