You are not logged in.

#1 2014-11-19 20:22:48

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

[SOLVED] No sound, possibly something regard "default device"

Hello everyone
I am very new to Arch Linux and have some problems getting the sound working. I have installed ALSA and the alsa-utils and unmuted the channels using alsamixer.
When I run a speaker-test it says>

[alexander@arch ~]$ speaker-test

speaker-test 1.0.28

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

My sound modules are:

[alexander@arch ~]$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel

I tried setting them as default by adding:

options snd_hda_intel index=0
options snd_hda_intel index=1

to

[alexander@arch ~]$ sudo nano /etc/modprobe.d/alsa-base.conf

------------
This is what it says when I run "lsmod | grep '^snd' | column -t"

[alexander@arch ~]$ lsmod | grep '^snd' | column -t
snd_hda_codec_hdmi     49213   1
snd_hda_codec_realtek  67469   1
snd_hda_codec_generic  63126   1   snd_hda_codec_realtek
snd_hda_intel          26387   2
snd_hda_controller     26938   1   snd_hda_intel
snd_hda_codec          108536  5   snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              17244   1   snd_hda_codec
snd_pcm                88487   4   snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614   1   snd_pcm
snd                    73436   12  snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel

And it says this when I run "ls -l /dev/snd"

[alexander@arch ~]$ ls -l /dev/snd
total 0
drwxr-xr-x  2 root root       80 Nov 19 20:56 by-path
crw-rw----+ 1 root audio 116,  6 Nov 19 20:56 controlC0
crw-rw----+ 1 root audio 116,  2 Nov 19 20:56 controlC1
crw-rw----+ 1 root audio 116, 10 Nov 19 20:56 hwC0D0
crw-rw----+ 1 root audio 116,  5 Nov 19 20:56 hwC1D0
crw-rw----+ 1 root audio 116,  7 Nov 19 20:56 pcmC0D3p
crw-rw----+ 1 root audio 116,  8 Nov 19 20:56 pcmC0D7p
crw-rw----+ 1 root audio 116,  9 Nov 19 20:56 pcmC0D8p
crw-rw----+ 1 root audio 116,  4 Nov 19 20:56 pcmC1D0c
crw-rw----+ 1 root audio 116,  3 Nov 19 20:56 pcmC1D0p
crw-rw----+ 1 root audio 116,  1 Nov 19 20:56 seq
crw-rw----+ 1 root audio 116, 33 Nov 19 20:56 timer

--------------

I also tried the instructions specified in this section:

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

I have searched the forum and the internet a lot for more suggestions on the issue, but cant seem to find anymore. Does anyone have some ideas of what to do from here? Would be greatly appreciated!!
Please help! :)

Last edited by AlexanderHolmgaard (2014-11-20 12:16:24)

Offline

#2 2014-11-19 21:19:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [SOLVED] No sound, possibly something regard "default device"

First, Welcome to Arch Linux.
Second <Moderator>Please go back and edit your posts to use BBCode code tags around program output.  Your readers will appreciate it ;P </moderator>

Now,  Do you have PulseAudio installed, and is it running?
What is the output of amixer
If you have PulseAudio installed, what is the output of pactl list


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2014-11-20 11:43:49

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] No sound, possibly something regard "default device"

Okay, so apparently I forgot to install PulseAudio. Got it now, and sound is working! Thank you so much!, I honestly don't know how I missed that..

Offline

#4 2014-11-20 12:05:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,558

Re: [SOLVED] No sound, possibly something regard "default device"

AlexanderHolmgaard,

you don't NEED pulseaudio to have a working sound system (i'm running pure alsa since i started using linux on all my systems and those i help maintain).

Your problem was likely caused by incorrect settings in /etc/asound.conf or ~/.asoundrc .

Pulseaudio changes those files in order to ensure pulse and alsa work together as intended.

In short, you didn't solve your problem but just got lucky pulseaudio works OOTB on your system.
(troubleshooting pulseaudio tends to be much harder then troubleshooting alsa)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2014-11-20 12:13:16

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] No sound, possibly something regard "default device"

I see. Sound is working now, so I am happy. smile

Offline

Board footer

Powered by FluxBB