You are not logged in.

#1 2015-02-04 08:51:46

xanb
Member
Registered: 2012-07-24
Posts: 418

[solved] no sound in HDMI

Hi,

I have Arch linux installed in Intel NUC DC3217IYE which has only hdmi output, no jack. I get no sound from HDMI and I can not triage why. The aplay output is:

[xan@cinezzin ~]$ 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
[xan@cinezzin ~]$

Thanks in advance,

Last edited by xanb (2015-02-12 14:36:58)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2015-02-04 09:20:43

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [solved] no sound in HDMI

I had the same issue and I fixed by setting up the followig line on my .xinitrc:

pactl set-sink-volume 1 -- -0%

Hope it helps to you smile

Offline

#3 2015-02-04 10:06:50

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

As root in tty2, it gives me

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

Same result with regular user

Last edited by xanb (2015-02-04 10:08:19)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#4 2015-02-04 10:18:53

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [solved] no sound in HDMI

Yes, as far as I know, only works with X started

Offline

#5 2015-02-04 10:36:14

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

thearcherblog wrote:

Yes, as far as I know, only works with X started

No, even in X.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#6 2015-02-04 10:44:08

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Re: [solved] no sound in HDMI

Ooops then maybe there is something else that I do not know.

Can you select the output with pavucontrol manually and check if works?

Offline

#7 2015-02-04 11:14:33

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [solved] no sound in HDMI

Are you using pure ALSA or do you have pulseaudio as well?

Which desktop environment/window manager are you using?

You appear to have two cards, both assigned to index "0" (==default card) -- they must be conflicting.

You can attempt to force the indexing by using /etc/modprobe.d/alsa-base.conf:
https://wiki.archlinux.org/index.php/AL … sound_card

If both devices are using the same module, you can set the order using the vendor ID & product ID.

Find out the values using:

lspci -knn|grep -iA2 audio

The VID & PID are found in the square brackets separated by a colon:

[vendor ID:product ID]

You can then index these in the config file:

options <module name> index=0 vid=<vendor ID> pid=<product ID>
options <module name> index=1 vid=<vendor ID> pid=<product ID>

You will need to (re)move any other sound configuration files (~/.asoundrc, /etc/asound.conf, etc) for this to work and it may not work at at all if the cards are using the "snd_hda_intel" module.

Last edited by Head_on_a_Stick (2015-02-04 11:15:19)

Offline

#8 2015-02-04 12:22:03

mukl
Member
From: Vienna, Austria
Registered: 2008-01-30
Posts: 52

Re: [solved] no sound in HDMI

No, having multiple devices on the same card should be fine and is normal for HDMI.

Offline

#9 2015-02-04 14:46:11

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

I have only ALSA installed. The Intel NUC has has two hdmi outputs. The output:

[xan@cinezzin ~]$ lspci -knn|grep -iA2 audio
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
	DeviceName:  Intel(R) High Definition Audio Device
	Subsystem: Intel Corporation Device [8086:2044]
	Kernel driver in use: snd_hda_intel
[xan@cinezzin ~]$ 

Owning one OpenRC (artoo way) and other three systemd machines

Offline

#10 2015-02-07 19:27:39

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Any hint so?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#11 2015-02-07 20:15:13

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [solved] no sound in HDMI

Read my post above and particularly the ArchWiki link I have provided (I don't think the [VID:PID] method works with that module).

Offline

#12 2015-02-08 10:06:02

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Did you read my previous post. This is my output. How can I do with that? I have only one device soundcard, I think.

Last edited by xanb (2015-02-08 10:12:19)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#13 2015-02-08 10:26:42

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Intel says that

Intel® NUC Kits and Boards
Audio Driver Readme


The audio solution on Intel® NUC kits and boards is provided via the Intel® High Definition Audio via the HDMI v1.4a interface and/or the DisplayPort 1.1a interface through the PCH (depending on your model).

HDMI audio drivers are included with the graphics driver available for your Intel NUC product.

Is it belong to my problem?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#14 2015-02-08 12:01:15

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

I found this in debian forums and that. Perhaps the second could be the solution. Another trick is to upgrade de BIOS

Last edited by xanb (2015-02-08 12:04:56)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#15 2015-02-10 13:52:00

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Partial progress: following this guide, I got this:

[xan@cinezzin ~]$ 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
[xan@cinezzin ~]$

Then, I created the .asoundrc file:

xan@cinezzin ~]$ cat .asoundrc 
defaults.pcm.card 0
defaults.pcm.device 7
defaults.ctl.card 0
[xan@cinezzin ~]$

and with

speaker-test -D plughw:0,3 # for slot 1

I get sound [that is the HDMI output works]. With

speaker-test -D plughw:0,7

I get no sound.

But I cannot play any sound at all. If I reproduce a wav file, then I get no sound.

Any thought.

Thanks,

Last edited by xanb (2015-02-10 14:14:33)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#16 2015-02-10 15:12:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,750

Re: [solved] no sound in HDMI

so set the defaults.pcm.device to 3 then if that's the port you use? I don't really get what the problem is anymore if you say it works with 0,3.

Offline

#17 2015-02-10 15:15:56

Calibanio
Member
From: Sweden
Registered: 2011-02-19
Posts: 14

Re: [solved] no sound in HDMI

xanb wrote:

Partial progress: following this guide, I got this:

[xan@cinezzin ~]$ 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
[xan@cinezzin ~]$

Then, I created the .asoundrc file:

xan@cinezzin ~]$ cat .asoundrc 
defaults.pcm.card 0
defaults.pcm.device 7
defaults.ctl.card 0
[xan@cinezzin ~]$

and with

speaker-test -D plughw:0,3 # for slot 1

I get sound [that is the HDMI output works]. With

speaker-test -D plughw:0,7

I get no sound.

But I cannot play any sound at all. If I reproduce a wav file, then I get no sound.

Any thought.

Thanks,

I had similar issues the first time I tried to get HDMI sound to work. The issue is that these cards come with multiple devices so alsa/pulseaudio seem to have issues determining which one is actually used, and more often than not the incorrect one ends up being the default.

From your post it is quite obvious that you are attempting to default the one device which does not work, device 7. The device you report getting sound from is the third one so naturally that's the one you want to attempt defaulting to.

In pulseaudio you can edit /etc/default.pa and add the following entry at an appropriate place:

load-module module-alsa-sink device=hw:0,3

Restarting pulseaudio and choosing your device from something like pavucontrol should then do the trick. You could of course find some similar method of making the change permanent using just alsa, but since I never bothered using alsa directly I will leave that part to you.

Offline

#18 2015-02-10 16:38:21

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Calibanio wrote:

I had similar issues the first time I tried to get HDMI sound to work. The issue is that these cards come with multiple devices so alsa/pulseaudio seem to have issues determining which one is actually used, and more often than not the incorrect one ends up being the default.

From your post it is quite obvious that you are attempting to default the one device which does not work, device 7. The device you report getting sound from is the third one so naturally that's the one you want to attempt defaulting to.

In pulseaudio you can edit /etc/default.pa and add the following entry at an appropriate place:

load-module module-alsa-sink device=hw:0,3

Restarting pulseaudio and choosing your device from something like pavucontrol should then do the trick. You could of course find some similar method of making the change permanent using just alsa, but since I never bothered using alsa directly I will leave that part to you.

I have no pulseaudio installed.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#19 2015-02-12 07:52:41

Calibanio
Member
From: Sweden
Registered: 2011-02-19
Posts: 14

Re: [solved] no sound in HDMI

xanb wrote:
Calibanio wrote:

I had similar issues the first time I tried to get HDMI sound to work. The issue is that these cards come with multiple devices so alsa/pulseaudio seem to have issues determining which one is actually used, and more often than not the incorrect one ends up being the default.

From your post it is quite obvious that you are attempting to default the one device which does not work, device 7. The device you report getting sound from is the third one so naturally that's the one you want to attempt defaulting to.

In pulseaudio you can edit /etc/default.pa and add the following entry at an appropriate place:

load-module module-alsa-sink device=hw:0,3

Restarting pulseaudio and choosing your device from something like pavucontrol should then do the trick. You could of course find some similar method of making the change permanent using just alsa, but since I never bothered using alsa directly I will leave that part to you.

I have no pulseaudio installed.

Well, I gave you the most possible cause of the issue. If you aren't willing to figure out how to do certain things on your own then Arch is probably not a very good choice for you.

Offline

#20 2015-02-12 08:01:00

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

Calibanio wrote:

Well, I gave you the most possible cause of the issue. If you aren't willing to figure out how to do certain things on your own then Arch is probably not a very good choice for you.

I'm willing. If I weren't, then I wouldn't ask. If I ask is because I'm worried about my issues and I try to solve them. On the other hand, people are not be able to be experts in every feature of OS. Have I got the right to be non-expert in HDMI and sound? The newbie corner is for non-experts users, isn't? Should we remove it?

Returning to my original question, it's not necessary to have pulseaudio installed to have sound works properly, isn't? So what's wrong here? Why

speaker-test -D plughw:0,3 # for slot 1

works well, but there is no sound if I try to reproduce audio files in my browser or in Thunar?

Thanks,


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#21 2015-02-12 08:29:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,750

Re: [solved] no sound in HDMI

You should have the following in your .asoundrc

defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

you are on the right track, you simply have to switch your sounddevice to the one that actually produces sound (notice that there is a 3 now in defaults.pcm.device instead of a 7)

Offline

#22 2015-02-12 14:36:32

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] no sound in HDMI

At V1del, thanks _a lot_ for your help. This makes this threat solved. I will be in debt with you all my life.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB