You are not logged in.

#1 2011-03-20 10:38:51

kradle
Member
Registered: 2010-07-21
Posts: 31

[SOLVED] No sound in ALSA after starting X.org

Hey,

Before launching X.org the sound and alsamixer work properly. After starting X.org, however, sound stops working and I get this from alsamixer:

cannot open mixer: No such file or directory

When trying to open an audio file with mplayer I get this:

MPlayer SVN-r32792-4.5.2 (C) 2000-2011 MPlayer Team
161 audio & 351 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 01 - Cristal.mp3.
Audio only file format detected.
Clip info:
 Title: Cristal
 Artist: Yo-Yo Ma
 Album: Obrigado Brazil
 Year: 2003
 Comment: 
 Track: 1
 Genre: Unknown
Load subtitles in ./
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 256.0 kbit/18.14% (ratio: 32000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
socket(): Address family not supported by protocol
AO: [pulse] Init failed: Connection refused
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
socket(): Address family not supported by protocol
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   8.6 (08.6) of 170.0 (02:50.0)  0.6% 

Exiting... (Quit)

What can I do?

EDIT: After shutting down X.org everything works again, and stops working when I start X.org. Maybe it's an X.org conflict? What should I do?

Last edited by kradle (2011-03-20 11:27:28)

Offline

#2 2011-03-20 11:25:15

jolinfire
Member
From: France
Registered: 2007-12-21
Posts: 176

Re: [SOLVED] No sound in ALSA after starting X.org

did you install alsa-utils and used alsamixer ?

Offline

#3 2011-03-20 11:26:59

kradle
Member
Registered: 2010-07-21
Posts: 31

Re: [SOLVED] No sound in ALSA after starting X.org

Okay, it worked after changing "exec xmonad" in ~/.xinitrc to "exec ck-launch-session xmonad". Problem solved.

Offline

Board footer

Powered by FluxBB