You are not logged in.

#1 2014-06-05 16:23:55

bond0087
Member
Registered: 2013-06-02
Posts: 10

[SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

I have a Dell XPS14 running Arch, which has worked fine for a while, but now has suddenly stopped detecting the internal speakers and headphones, so it will not play sound.   I have tried a few things to narrow down the problem, but I've had no luck so far.  In GNOME shell, when I press the physical volume up/down buttons on my laptop, it displays a sound icon with "HDMI / DisplayPort" underneath . When I go into the gnome shell audio settings menu, everything is greyed out, and no output devices are listed. 

If anyone has any suggestions as to what the problem might be or how I might go about troubleshooting it from here, I would appreciate it.

One thing that struck me was that I had installed a music player, Clementine, recently, and I'm not sure if I did or did not ever have sound after that. I installed Clementine and two optional gstreamer0.10 plugins (bad and ugly). Since this seemed like it would be possibly related, I've since removed Clementine, the new gstreamer plugins, and all of their dependencies not needed by any other package. So I now don't think that is likely to be the problem. Just to be thorough, though, here are the packages which were installed:

 [2014-06-03 15:22] [PACMAN] Running 'pacman --color auto -S community/clementine'
[2014-06-03 15:22] [PACMAN] installed mutagen (1.23-1)
[2014-06-03 15:22] [PACMAN] installed sg3_utils (1.38-1)
[2014-06-03 15:22] [PACMAN] installed libgpod (0.8.3-2)
[2014-06-03 15:22] [PACMAN] installed liblastfm (1.0.8-1)
[2014-06-03 15:22] [PACMAN] installed libmtp (1.1.6-6)
[2014-06-03 15:22] [PACMAN] installed qjson (0.8.1-2)
[2014-06-03 15:22] [PACMAN] installed libmygpo-qt (1.0.7-1)
[2014-06-03 15:22] [PACMAN] installed protobuf (2.5.0-3)
[2014-06-03 15:22] [PACMAN] installed qca-ossl (2.0.0-7)
[2014-06-03 15:22] [PACMAN] installed clementine (1.2.3-1)
[2014-06-03 15:23] [PACMAN] Running 'pacman -S gstreamer0.10-bad-plugins gstreamer0.10-ugly-plugins'
[2014-06-03 15:23] [PACMAN] installed libdc1394 (2.2.1-2)
[2014-06-03 15:23] [PACMAN] installed musicbrainz (2.1.5-6)
[2014-06-03 15:23] [PACMAN] installed libcdaudio (0.99.12-7)
[2014-06-03 15:23] [PACMAN] installed ladspa (1.13-4)
[2014-06-03 15:23] [PACMAN] installed liblrdf (0.5.0-2)
[2014-06-03 15:23] [PACMAN] installed gstreamer0.10-bad-plugins (0.10.23-8)
[2014-06-03 15:23] [PACMAN] installed gstreamer0.10-ugly-plugins (0.10.19-11)
 

Anyway, on to the diagnostics that I have done:

Running

 aplay -l 

returns:

 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

running

 #lspci -vvv | grep -A 40 -i audio 

returns:

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
	Subsystem: Dell Device 054c
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 47
	Region 0: Memory at c0610000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee003f8  Data: 0000
	Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
		DevCap:	MaxPayload 128 bytes, PhantFunc 0
			ExtTag- RBE-
		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
			RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
			MaxPayload 128 bytes, MaxReadReq 128 bytes
		DevSta:	CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
	Capabilities: [100 v1] Virtual Channel
		Caps:	LPEVC=0 RefClk=100ns PATEntryBits=1
		Arb:	Fixed- WRR32- WRR64- WRR128-
		Ctrl:	ArbSelect=Fixed
		Status:	InProgress-
		VC0:	Caps:	PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
			Arb:	Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
			Ctrl:	Enable+ ID=0 ArbSelect=Fixed TC/VC=01
			Status:	NegoPending- InProgress-
		VC1:	Caps:	PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
			Arb:	Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
			Ctrl:	Enable+ ID=1 ArbSelect=Fixed TC/VC=22
			Status:	NegoPending- InProgress-
	Capabilities: [130 v1] Root Complex Link
		Desc:	PortNumber=0f ComponentID=00 EltType=Config
		Link0:	Desc:	TargetPort=00 TargetComponent=00 AssocRCRB- LinkType=MemMapped LinkValid+
			Addr:	00000000fed1c000
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_inte 

and running

 dmesg | grep snd_hda_intel 

returns

 [    3.405522] snd_hda_intel 0000:00:1b.0: irq 47 for MSI/MSI-X 

Any ideas?

Last edited by bond0087 (2014-06-09 02:06:08)

Offline

#2 2014-06-05 20:07:08

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Use instead:

lspci -nn | grep -i audio
#and
dmesg | egrep -i 'snd|intel|hda|hdmi|audio|sound|err'
#also
speaker-test -c 2 -t wav

Does the gpu have a hdmi output? Seems like a mixup.

Last edited by emeres (2014-06-05 20:09:01)

Offline

#3 2014-06-05 21:28:47

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Thanks for the response. I hadn't thought to widen the dmesg search like that.
The GPU is an integrated Intel HD4000, and the laptop has both an HDMI and mini displayport output.  I have checked, and sound does work through HDMI. When connected to a TV with HDMI, the GNOME audio settings GUI shows the HDMI / DisplayPort audio as a device for sound output, and running speaker-test works as expected.

Anyway, the output from

 lspci -nn | grep -i audio 

is

   00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04) 

and the output of

 dmesg | egrep -i 'snd|intel|hda|hdmi|audio|sound|err' 

is

 
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.096182] smpboot: CPU0: Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz (fam: 06, model: 3a, stepping: 09)
[    0.096205] Performance Events: PEBS fmt1+, 16-deep LBR, IvyBridge events, full-width counters, Intel PMU driver.
[    0.275773] ACPI: Using IOAPIC for interrupt routing
[    0.501001] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[    0.588624] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 10 11 12 14 15) *7
[    0.588688] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[    0.588747] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[    0.588805] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[    0.588863] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[    0.588922] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[    0.588981] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[    0.589039] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 10 11 12 14 15) *7
[    0.825040] intel_idle: MWAIT substates: 0x21120
[    0.825042] intel_idle: v0.4 model 0x3A
[    0.825043] intel_idle: lapic_timer_reliable_states 0xffffffff
[    0.826039] Intel P-state driver initializing.
[    0.826049] Intel pstate controlling: cpu 0
[    0.826066] Intel pstate controlling: cpu 1
[    0.826088] Intel pstate controlling: cpu 2
[    0.826110] Intel pstate controlling: cpu 3
[    0.845747] fb: conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver
[    1.013889] fbcon: inteldrmfb (fb0) is primary device
[    1.808400] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[    2.288999] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
[    2.289913] ata1.00: ACPI cmd 00/00:00:00:00:00:a0 (NOP) rejected by device (Stat=0x51 Err=0x04)
[    2.969980] usb 4-1.5: string descriptor 0 read error: -22
[    3.145969] snd_hda_intel 0000:00:1b.0: irq 47 for MSI/MSI-X
[    3.167195] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[    3.167289] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[    3.315626] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10

Running the speaker test only played sound when HDMI was connected, and it gave no error messages.

Unfortunately, I didn't see anything in those test outputs which seem related to the sound issue to me. Then again, I have very little experience troubleshooting sound issues, so am I missing something?

Thanks for any input.

Last edited by bond0087 (2014-06-05 21:29:46)

Offline

#4 2014-06-05 21:49:22

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Dmesg unfortunately does not show anything useful. Please post:

amixer

You could try using snoop parameter (look up vid and pid from 'lspci -nn' output in $sources/sound/pci/hda/hda_intel.c and then quirks it refers to) with modprobe (/etc/modprobe.d/);

options snd-hda-intel vid=8086 pid=1e20 snoop=1

It may be already loaded though:

systool -v -m snd_hda_intel

Did 'aplay -l' always show only this one card?

Last edited by emeres (2014-06-05 21:50:35)

Offline

#5 2014-06-05 21:57:47

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Thanks for following up.  Here is the amixer and aplay -l outputs.  I believe that aplay shows two outputs, both digital, one for HDMI, and the other for mini displayport (although I don't have a converter to test that output).  I am going to read up more on the snoop parameter and give it a shot, but since that might take me a little bit to understand, here's this for now.

 [ray@CaliforniaChrome ~]$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 65536 [100%] [on]
  Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 65536 [100%] [on]
  Front Right: Capture 65536 [100%] [on]
[ray@CaliforniaChrome ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline

#6 2014-06-05 22:01:20

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

I didn't realize the snoop parameter would be such a quick check, it is currently set to "Y" according to the recommended systool output. 

Also, while I don't know for sure that aplay -l always showed only the digital outputs, the analog outputs (both speaker and headphones) worked fine for a while until randomly stopping this time.

Offline

#7 2014-06-05 22:16:24

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

To read more about module parameters for snd-hda-intel look here. It is one sound card (card 0) and it has two devices (3 and 7). Are power saving options enabled (again systool)? What modules are loaded?

lsmod | grep ^snd
#Show information on the codec
cat /proc/asound/card*/codec*

#also check the kernel
pacman -Qi linux
uname -a

The output of amixer is very humble. You never had more than one control in alsamixer?

Offline

#8 2014-06-08 04:47:50

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Thanks again for the info and suggestions.  I thought the same thing regarding the sparse output of alsamixer, but since I never had trouble with the sound before, I don't know how much would have shown up when everything was working well. 

I still haven't really found a smoking gun here, unfortunately.  As far as I can tell, the power saving settings look about right, because the power saving settings for the HDMI audio (which works) looks to be the same as the others.

Thanks for the link with more information regarding the module options for the intel sound driver.  I'm going to dig into those when I have time next week.  The thing that makes me less optimistic that I'm going to fix it with module options is that I can't figure out how those module options would suddenly change.

I'm also going to try out the linux-lts kernel to see if it behaves any differently, and then maybe boot another distro with a usb key to see if it works, and if so, what looks different.

Here's what I get from the suggested tests. Let me know if anyone sees something strange that I missed.

$ lsmod | grep ^snd
snd_hda_codec_hdmi     36716  1 
snd_hda_intel          38728  2 
snd_hda_codec         101816  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               6396  1 snd_hda_codec
snd_pcm                81607  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer              19038  1 snd_pcm
snd                    60086  10 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel

$ cat /proc/asound/card*/codec*
Codec: Intel PantherPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862806
Subsystem Id: 0x1028054c
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Device: name="HDMI 0", type="HDMI", device=3
  Converter: stream=8, channel=0
  Digital: Enabled GenLevel
  Digital category: 0x2
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="ELD", index=0, device=3
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="HDMI/DP,pcm=7 Jack", index=0, device=0
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Control: name="ELD", index=0, device=7
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560020: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x03
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x80]
  Pincap 0x09000094: OUT Detect HBR HDMI DP
  Pin Default 0x58560030: [N/A] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono

$ pacman -Qi linux
Name           : linux
Version        : 3.14.5-1
Description    : The Linux kernel and modules
Architecture   : x86_64
URL            : http://www.kernel.org/
Licenses       : GPL2
Groups         : base
Provides       : kernel26=3.14.5
Depends On     : coreutils  linux-firmware  kmod  mkinitcpio>=0.7
Optional Deps  : crda: to set the correct wireless channels of your country
Required By    : virtualbox-host-modules
Optional For   : None
Conflicts With : kernel26
Replaces       : kernel26
Installed Size : 71950.00 KiB
Packager       : Tobias Powalowski <tpowa@archlinux.org>
Build Date     : Sun 01 Jun 2014 01:40:01 AM EDT
Install Date   : Thu 05 Jun 2014 12:30:36 AM EDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

$ uname -a
Linux CaliforniaChrome 3.14.5-1-ARCH #1 SMP PREEMPT Sun Jun 1 07:36:23 CEST 2014 x86_64 GNU/Linux

Offline

#9 2014-06-08 05:26:08

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Well, I went ahead and installed linux-lts kernel, no change in the symptoms. I then booted Ubuntu off of a USB stick, still no joy. I then discovered that the pre-boot diagnostics for my laptop has a feature to test the audio subsystems, so I ran that, and didn't hear a thing.

So it looks like a hardware problem. Thanks for the help anyway; I learned a few tricks from your suggestions and I'll be better equipped to diagnose this sort of problem in the future.

Now I'll probably have to swap hard drives and boot f*ing windows 8 to get Dell to repair the laptop on warranty hmm .

Offline

#10 2014-06-08 11:28:29

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

You could run hdajackrestask to see if jack mappings are correct, although in your case it might be difficult to tell. If you can disable the sound in BIOS/UEFI do it, boot, then shutdown, boot and enable it. If that does not help, it may be a hardware failure. The question is why, what were you doing last time it worked and so on. Either way, good luck.

Offline

#11 2014-06-09 02:08:26

bond0087
Member
Registered: 2013-06-02
Posts: 10

Re: [SOLVED] Only HDMI/Displayport audio outputs; no sound from speakers

Well, I finally figured it out and fixed it.  It was a hardware issue; the ribbon cable going to the board with the audio controller was loose. Removing and reinstalling the cable fixed the problem. Thanks for the help! I'll need to remember to run pre-boot diagnostics before going too crazy with the software troubleshooting.

Offline

Board footer

Powered by FluxBB