You are not logged in.

#1 2016-09-27 18:31:50

Severus Tux
Banned
Registered: 2016-06-25
Posts: 35

[SOLVED] No Audio in Arch Linux (xmonad)

I am using Arch Linux with xmonad Window Manager. I have installed `alsa-utils`  and As per my knowledge , alsa drivers should installed by default.

But when I try open any media file with cvlc, I get this error :

    ┌─(severus)──(~) 
    └─> $ cvlc /run/media/severus/Entertainment/Barton\ Springs\ -\ Bird\ Creek-qIKD169VDy0.opus 
    VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
    [0000000001624e78] pulse audio output error: PulseAudio server connection failure: Connection refused
    [000000000166cf38] dummy interface: using the dummy interface module...
    ALSA lib pcm_dmix.c:1041:(snd_pcm_dmix_open) unable to open slave
    [0000000001624e78] alsa audio output error: cannot open ALSA device "default": No such file or directory
    [0000000001624e78] core audio output error: Audio output failed
    [0000000001624e78] core audio output error: The audio device "default" could not be used:
    No such file or directory.
    [0000000001624e78] core audio output error: module not functional
    [00007f3318c0ebe8] core decoder error: failed to create audio output
    [00007f3318c0ebe8] opus decoder error: Oops: No new buffer was returned!
    ^C
    ┌─(severus)──(~) 
    └─> $ 

Output of `alsamixer` :

http://i.stack.imgur.com/zeQog.png

http://i.stack.imgur.com/4wAVS.png


Output of `lspci -k|  grep -A 3 -i audio`:

    ┌─(severus)──(~) 
    └─> $ lspci -k|  grep -A 3 -i audio
    00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
    	Subsystem: Hewlett-Packard Company Device 2212
    	Kernel driver in use: snd_hda_intel
    	Kernel modules: snd_hda_intel
    --
    00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
    	Subsystem: Hewlett-Packard Company Device 2212
    	Kernel driver in use: snd_hda_intel
    	Kernel modules: snd_hda_intel
    ┌─(severus)──(~) 
    └─> $ 

Please help me resolve this issue.

Moderator edit. Converted two moderately sized images to url tags https://wiki.archlinux.org/index.php/Co … s_and_code

Last edited by Severus Tux (2016-09-27 20:36:10)

Offline

#2 2016-09-27 19:54:30

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] No Audio in Arch Linux (xmonad)

Use speaker-test for testing, to make sure vlc isn't causing the issue, and to make sure you'er using correct alsa device: https://wiki.archlinux.org/index.php/Ad … ur_changes

Offline

#3 2016-09-27 19:59:26

Severus Tux
Banned
Registered: 2016-06-25
Posts: 35

Re: [SOLVED] No Audio in Arch Linux (xmonad)

speater-test produces no sound sad

┌─(severus)──(~) 
└─> $ speaker-test 

speaker-test 1.1.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1041:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

And vlc is not the issue because No sound in youtube too.

Offline

#4 2016-09-27 20:22:25

Severus Tux
Banned
Registered: 2016-06-25
Posts: 35

Re: [SOLVED] No Audio in Arch Linux (xmonad)

I am getting pink noise for

speaker-test -D default:PCH -c 8

So , the sound is being output to wrong device, how can I correct it ?

Offline

#5 2016-09-27 20:35:47

Severus Tux
Banned
Registered: 2016-06-25
Posts: 35

Re: [SOLVED] No Audio in Arch Linux (xmonad)

Solved smile : https://wiki.archlinux.org/index.php/Ad … sound_card

I created a file /etc/modprobe.d/alsa-base.conf

with the following contents

options snd_hda_codec_realtek=0
options snd_hda_intel index=1

Offline

Board footer

Powered by FluxBB