Page 2 of 2
Re: Enable HDMI audio output
Posted: 14. Jul 2014, 07:33
by djemos
wackpanther wrote:Whoa you're on to something!
I did enter the command with lower case -d, which played the file through laptop speakers.
Entering the same with capital -D works! Output through HDMI.
Now how do I use that?
Install smplayer from repos or vlc.
For smplayer go to "choices" on menus or press ctrl-p to go there at once and from "sound" can pick-up hdmi. For my system (alsa 0.3 HDA intel MID) and play your sound or video even on tv.
Re: Enable HDMI audio output
Posted: 14. Jul 2014, 07:57
by gapan
wackpanther wrote:Whoa you're on to something!
I did enter the command with lower case -d, which played the file through laptop speakers.
Entering the same with capital -D works! Output through HDMI.
Now how do I use that?
Next step would be to create an ~/.asoundrc file with the following contents:
Code: Select all
pcm.!default {
type hw
card 0
device 3
}
You might need to restart your session for the changes to take effect.
Re: Enable HDMI audio output
Posted: 15. Jul 2014, 06:48
by wackpanther
Thanks again! This is really helpful.
smplayer does work with HDMI- so does exaile.
Is there a web browser that will get along with HDMI audio?
Firefox or midori don't seem to do it. Or do I need to change flash settings?
Creation of an ~/.asoundrc file with the following contents:
Code: Select all
pcm.!default {
type hw
card 0
device 3
}
Didn't seem to change anything on my system.
Does it have to be worked out application by application?
Re: Enable HDMI audio output
Posted: 15. Jul 2014, 08:11
by gapan
Did you actually put a line in there that reads:
Code: Select all
Re: Enable HDMI audio output
Posted: 19. Jul 2014, 07:27
by wackpanther
No I put only the code in the text box that you provided for me, nothing else in that file.
It seems to have made my media players get along with the HDMI audio output.
But I still can't get HDMI audio from any of my web browsers.
How can I change those settings?
Re: Enable HDMI audio output
Posted: 21. Jul 2014, 09:25
by gapan
Is it firefox in general, or is it only flash played back in firefox? For example, does the video in this page play through HDMI?
http://html5video.org/
Re: Enable HDMI audio output
Posted: 22. Jul 2014, 17:33
by wackpanther
Hmmm I don't know what I changed, but its totally working now.
I have HDMI audio from media players (clementine, mplayer) & browser on most websites (pandora, youtube)
Is there a way I can modify my .asoundrc file to detect HDMI and default to PC speakers only when not plugged in?
Thanks so much this forum is so helpful
Re: Enable HDMI audio output
Posted: 24. Jul 2014, 21:14
by gapan
I'm not sure if when connecting an HDMI cable a udev signal is sent. If it doesn't you could have an ~/.asoundrc.hdmi file for example and when detecting the connection, you could copy it to ~/.asoundrc with a udev rule. And also another rule for disconnecting which would remove it, or replace it with another. But the simplest solution would be to do that manually I guess. You could even create two launchers in the panel, one that enables hdmi by copying the file to ~/.asoundrc and another for removing it.
Re: Enable HDMI audio output
Posted: 27. Oct 2014, 00:42
by wackpanther
Well after all that work to enable HDMI output, I want to undo it for a while.
But I can't seem to figure out how!
I had ended up creating a ~/.asoundrc file to specify output to the HDMI card.
I tried removing the ~/.asoundrc file- that didn't work.
I tried changing it from 0,3 to 0,0, that didn't work
Changing my selection in ALSA doesn't do it either.
Does anyone know what I'm missing?
thanks