[arch-general] HDMI Alsa sound problem from flashplayer 64 bit
I have a machine which has an HDMI monitor and which has sound coming through the monitor via HDMI just fine when playing music from Amarok and login system sounds play fine too. I had selected the appropriate hdmi channel in kmix for all the available audio playback devices. Also I can get sound coming out of the monitor speakers with: aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav However if I run chrome and play a flash video the video I can see fine - but there is no sound. I have read all the available arch wiki articles about hdmi sound including that at https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_... as soon as I make a ~/.asound file with either of the suggested contents KDE immediately tells me that the hdmi sound for that output has been selected to be removed and offers me to make that permanent! This is for an x86_64 arch system all up to date - and I have flashplayer installed. Can anyone guide me as to where to look for a solution that will get this particular system playing sound from flash content on web pages in chrome? I have several other (non-hdmi) systems which have no problem with sound from web pages playing flash content. Thanks -- mike c
Am 06.02.2013 19:48, schrieb Mike Cloaked:
I have a machine which has an HDMI monitor and which has sound coming through the monitor via HDMI just fine when playing music from Amarok and login system sounds play fine too. I had selected the appropriate hdmi channel in kmix for all the available audio playback devices.
Short story: Use pulseaudio, not alsa - you can then configure (default) outputs on the fly for all applications.
Yes I guess that is worth a shot! Thanks. On Thu, Feb 7, 2013 at 8:57 AM, Thomas Bächler <thomas@archlinux.org> wrote:
Am 06.02.2013 19:48, schrieb Mike Cloaked:
I have a machine which has an HDMI monitor and which has sound coming through the monitor via HDMI just fine when playing music from Amarok and login system sounds play fine too. I had selected the appropriate hdmi channel in kmix for all the available audio playback devices.
Short story: Use pulseaudio, not alsa - you can then configure (default) outputs on the fly for all applications.
-- mike c
On Wed, Feb 6, 2013 at 7:48 PM, Mike Cloaked wrote:
Also I can get sound coming out of the monitor speakers with:
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav
However if I run chrome and play a flash video the video I can see fine - but there is no sound.
I have read all the available arch wiki articles about hdmi sound including that at
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_... as soon as I make a ~/.asound file with either of the suggested contents KDE immediately tells me that the hdmi sound for that output has been selected to be removed and offers me to make that permanent!
I would suggest first to try without KDE on the way. The solution provided on the wiki should definitively work. In your case, the device number should be 7. Once setup, make new tests with speaker-test or aplay, without setting the device you want to use (what you try to do is to setup your hdmi device to be the default). Then, only, add KDE on the top. You will probably need to reconfigure kmix as your devices have changed. Regards, -- Cédric Girard
On Thu, 7 Feb 2013 10:16:23 +0100 Cédric Girard <girard.cedric@gmail.com> wrote:
On Wed, Feb 6, 2013 at 7:48 PM, Mike Cloaked wrote:
Also I can get sound coming out of the monitor speakers with:
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav
However if I run chrome and play a flash video the video I can see fine - but there is no sound.
I have read all the available arch wiki articles about hdmi sound including that at
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_... as soon as I make a ~/.asound file with either of the suggested contents KDE immediately tells me that the hdmi sound for that output has been selected to be removed and offers me to make that permanent!
I would suggest first to try without KDE on the way. The solution provided on the wiki should definitively work. In your case, the device number should be 7. Once setup, make new tests with speaker-test or aplay, without setting the device you want to use (what you try to do is to setup your hdmi device to be the default). Then, only, add KDE on the top. You will probably need to reconfigure kmix as your devices have changed.
of course it should work, but there's several possible reasons why it might not. since he's using KDE anyway, why not use pulseaudio instead? it's the default for the big DEs, and in my experience it doesn't screw up one's system anymore, as it used to in the beginning. mostly, at least for me, it simply works. specially if you install pavucontrol, an interface for all hard- and software audio channelsl on your machine. -- phani.
On Thu, Feb 7, 2013 at 12:25 PM, phanisvara das wrote:
since he's using KDE anyway, why not use pulseaudio instead? it's the default for the big DEs, and in my experience it doesn't screw up one's system anymore, as it used to in the beginning.
mostly, at least for me, it simply works. specially if you install pavucontrol, an interface for all hard- and software audio channelsl on your machine.
Yes probably. But as he is not using pulseaudio and I have no experience with it, I was only speaking of what I know and what works for me. I am not sure if adding an extra layer which happens to bring new useful features is always the best solution to a problem. Anyway Mike has now two solutions to try, either with or without PA. What works for him and fits him at the end of the day is only what should matter. Regards, -- Cédric Girard
On Thu, Feb 7, 2013 at 12:25 PM, phanisvara das wrote:
since he's using KDE anyway, why not use pulseaudio instead? it's the default for the big DEs, and in my experience it doesn't screw up one's system anymore, as it used to in the beginning.
mostly, at least for me, it simply works. specially if you install pavucontrol, an interface for all hard- and software audio channelsl on your machine.
Yes probably. But as he is not using pulseaudio and I have no experience with it, I was only speaking of what I know and what works for me.
I am not sure if adding an extra layer which happens to bring new useful features is always the best solution to a problem.
Anyway Mike has now two solutions to try, either with or without PA. What works for him and fits him at the end of the day is only what should matter.
Regards,
I was unsure what was meant by trying to set up without KDE in the way? I
On Thu, Feb 7, 2013 at 2:47 PM, Cédric Girard <girard.cedric@gmail.com>wrote: presumed that I could only run the chrome browser within a D.E. in order to test the problem of flashplayer running a video with sound output? It was not clear to me how to do that unless I had a different D.E. running (i.e. not KDE) or window manager within which to test it? Presumably I can't test from a text console, or can I? - apart from the command which works from a Konsole terminal within KDE as I originally posted: aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav So presumably I need to set this into either ~/.sound or /etc/alsa.conf and try to test from a text console as: aplay -D /usr/share/sounds/alsa/Front_Center.wav and if that works then the default channel will have been set as the HDMI channel and then switch back to trying from KDE ? Certainly if I can't get that to work as a solution and re-enable KDE then of course I can follow the wiki advice on setting up pulseaudio and testing that route for a possible solution. I will report back on how I get a working solution if that will help others with this kind of problem. As I said in my original post I can get sound output for everything else except flash output from the browser. Anyway thank you for the suggestions which I will follow up. -- mike c
I was unsure what was meant by trying to set up without KDE in the way? I presumed that I could only run the chrome browser within a D.E. in order to test the problem of flashplayer running a video with sound output? It was not clear to me how to do that unless I had a different D.E. running (i.e. not KDE) or window manager within which to test it? Presumably I can't test from a text console, or can I? - apart from the command which works from a Konsole terminal within KDE as I originally posted:
Mike, I cannot think what would stop you from running a browser without any DE or WM. Just edit your ~/.xinitrc. Just add firefox to it. then startx It will run fullscreen with no title bar and the usual window frame. man xinit if you want to know a little bit the role of .xinitrc file in relation with the X server execution scope. ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
On Thu, Feb 7, 2013 at 11:35 PM, LANGLOIS Olivier PIS -EXT < olivier.pis.langlois@transport.alstom.com> wrote:
Mike,
I cannot think what would stop you from running a browser without any DE or WM. Just edit your ~/.xinitrc.
Just add firefox to it.
then
startx
It will run fullscreen with no title bar and the usual window frame.
man xinit
if you want to know a little bit the role of .xinitrc file in relation with the X server execution scope.
Thank you for this tip about running a browser without a D.E. - despite a decade running linux this issue concerning setting up sound is a hole in my knowledge which I need to do some learning on. Following the suggestions in your post plus the previous replies to my question I will now go and work on this. In the past I have never had any sound issues and the defaults have always just worked without adjustment (in recent years at least). The machine I have the issue with is rather new, and this is the first time I have needed to work with HDMI sound. Once I get things working I will post what works with this system. I guess that as time passes more people will have monitors connected with HDMI and Displayport and perhaps move away from having sound via the analogue sound port which is what I have always done until now. -- mike c
On Thu, Feb 7, 2013 at 11:12 PM, Mike Cloaked wrote:
So presumably I need to set this into either ~/.sound or /etc/alsa.conf
and
try to test from a text console as:
aplay -D /usr/share/sounds/alsa/Front_Center.wav
and if that works then the default channel will have been set as the HDMI channel and then switch back to trying from KDE ?
That's right. Put this in your ~/.asoundrc: pcm.!default { type hw card 0 device 7 } And "aplay /usr/share/sounds/alsa/Front_Center.wav" should work (without -D because you do not want to specify the device). Once this is secure, fire KDE, update your kmix conf to use the default device and everything should work. What is happening is that flash use your default sound device, bypassing kmix. This is why you need to put your HDMI as default. -- Cédric Girard
On Fri, Feb 8, 2013 at 12:57 PM, Cédric Girard <girard.cedric@gmail.com>wrote:
On Thu, Feb 7, 2013 at 11:12 PM, Mike Cloaked wrote:
So presumably I need to set this into either ~/.sound or /etc/alsa.conf
and
try to test from a text console as:
aplay -D /usr/share/sounds/alsa/Front_Center.wav
and if that works then the default channel will have been set as the HDMI channel and then switch back to trying from KDE ?
That's right. Put this in your ~/.asoundrc:
pcm.!default { type hw card 0 device 7 }
And "aplay /usr/share/sounds/alsa/Front_Center.wav" should work (without -D because you do not want to specify the device).
Once this is secure, fire KDE, update your kmix conf to use the default device and everything should work.
What is happening is that flash use your default sound device, bypassing kmix. This is why you need to put your HDMI as default.
Thank you Cédric - I have it working now.
-- mike c
On Thu, 7 Feb 2013 15:47:24 +0100 Cédric Girard <girard.cedric@gmail.com> wrote:
I am not sure if adding an extra layer which happens to bring new useful features is always the best solution to a problem.
certainly not; depends on priorities. i found it easier to go with the flow, using KDE's default instead of working around it. if i don't like it anymore i'll have to invest some time to go the other way. at the moment everything works though, and i'm fine with accepting a little bloat for convenience sake. -- phani.
Didn't lib32-libflashsupport used to be required in order to have full support on 64 systems?
On Thu, Feb 7, 2013 at 9:16 AM, Cédric Girard <girard.cedric@gmail.com>wrote:
On Wed, Feb 6, 2013 at 7:48 PM, Mike Cloaked wrote:
Also I can get sound coming out of the monitor speakers with:
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav
However if I run chrome and play a flash video the video I can see fine - but there is no sound.
I have read all the available arch wiki articles about hdmi sound including that at
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_...
as soon as I make a ~/.asound file with either of the suggested contents KDE immediately tells me that the hdmi sound for that output has been selected to be removed and offers me to make that permanent!
I would suggest first to try without KDE on the way. The solution provided on the wiki should definitively work. In your case, the device number should be 7. Once setup, make new tests with speaker-test or aplay, without setting the device you want to use (what you try to do is to setup your hdmi device to be the default). Then, only, add KDE on the top. You will probably need to reconfigure kmix as your devices have changed.
I have already used kmix to select the 0,7 HDMI device and all channels work as expected in the test from kmix within KDE. I think the problem stems from the alsa default going to a different output channel and I could not fathom out from the wiki how to change alsa to use the correct channel apart from the suggestion to add a few lines to ~/.asound but when I used either of the two suggested sets of contents for that file then KDE became unhappy - so if there is a way to get alsa to default to the hdmi output channel (0,7) in a different way then that would likely give me a working solution. It "should" be possible but I don't know enough about the intricacies of alsa to know how to do it - and it seems the wiki does not contain enough info for me to work towards that (or I am too stupid to understand the wiki!)
I could try pulseaudio - and if I can't get a solution with pure alsa then I will go that route - I have used pavucontrol in the past to run sound - but it is still a challenge to solve this within alsa - and it "should" surely be possible? -- mike c
participants (6)
-
Cédric Girard
-
German Cabarcas
-
LANGLOIS Olivier PIS -EXT
-
Mike Cloaked
-
phanisvara das
-
Thomas Bächler