Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36193

No audio in 2nd Xserver (F17)

$
0
0
Hi all!

After installing F17 and graphical login audio works as expected, but when starting a second X-Server, then it's not possible to hear audio. Here are the steps to reproduce the problem:

1. Test audio playback in first X-server

a) aplay someaudiofile.wav
b) aplay -D hw:1,0,0 someaudiofile.wav

result: both command are working fine in the first X-server, means you can hear the expected audio.

2. Start a second X-server

xinit /usr/bin/fvwm -- :1

result: a second X-server show up
(you can also do something like "xinit /usr/bin/xterm -- :1"

3. Try audio playback as in 1.

results:
a) aplay executes and appears to pump out audio somewhere, but there's no audio comming out from the speakers
b) aplay aborts with the followng error:
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
aplay: main:696: audio open error: Permission denied


When switching to a text-console (ALT+CTRL+F2), then the aplay examples are working as expected, again.

I guess this has something to do with console permissions. Any feedback is highly appreciated

regards

Bernhard

---------- Post added at 07:25 PM ---------- Previous post was at 07:04 PM ----------

Hi all!

I figured out that i just needed to add the user to group "audio".

regards

Bernhard

Viewing all articles
Browse latest Browse all 36193

Trending Articles