You are not logged in.

#1 2014-08-02 17:44:49

tcr
Member
Registered: 2014-08-02
Posts: 18

Archlinux - Sound (alsamixer not working)

Hey guys,

I have installed arch linux, and alsa-utils but i don't have any sound.

The alsamixer finds the proper device, but nou sound available. I've tried things that i've seen in arch linux old topics, but couldn't solve the problem.

I would appreciate some help.

lspci -nn | grep -i audio

00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Controller [8086:293e] (rev 03)

Offline

#2 2014-08-02 17:54:42

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

What exactly have you tried? Please use code tags for commands output and post these:

aplay -lL;
lsmod | grep ^snd;
systool -v -m snd_hda_intel;
amixer;
axmier -c 1;

Last edited by emeres (2014-08-02 17:59:08)

Offline

#3 2014-08-02 18:11:14

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

>>aplay -lL

>>null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, CX20561 Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, CX20561 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, CX20561 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
    HDA Intel, HDMI 0
    HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CX20561 Analog [CX20561 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
>>lsmod | grep ^snd 

>>snd_hda_codec_hdmi     40396  1 
snd_hda_codec_conexant    11123  1 
snd_hda_codec_generic    56366  1 snd_hda_codec_conexant
snd_hda_intel          22831  0 
snd_hda_controller     22975  1 snd_hda_intel
snd_hda_codec         104665  5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep               6652  1 snd_hda_codec
snd_pcm                83207  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              19294  1 snd_pcm
snd                    61276  8 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
 >>systool -v -m snd_hda_intel;

>>Module = "snd_hda_intel"

  Attributes:
    coresize            = "22831"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "0"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    align_buffer_size   = "-1"
    bdl_pos_adj         = "1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    beep_mode           = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    enable_msi          = "-1"
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index               = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    jackpoll_ms         = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    model               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    patch               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    position_fix        = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    power_save          = "0"
    power_save_controller= "Y"
    probe_mask          = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    probe_only          = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    single_cmd          = "N"
    snoop               = "Y"

  Sections:
    .bss                = "0xffffffffa053cdc0"
    .data               = "0xffffffffa053c340"
    .data.unlikely      = "0xffffffffa053cb10"
    .exit.text          = "0xffffffffa053a950"
    .gnu.linkonce.this_module= "0xffffffffa053cb40"
    .init.text          = "0xffffffffa053f000"
    .note.gnu.build-id  = "0xffffffffa053a964"
    .rodata             = "0xffffffffa053a9c0"
    .rodata.str1.1      = "0xffffffffa053b882"
    .rodata.str1.8      = "0xffffffffa053bc60"
    .smp_locks          = "0xffffffffa053bf98"
    .strtab             = "0xffffffffa0541558"
    .symtab             = "0xffffffffa053f020"
    .text               = "0xffffffffa0538000"
    __mcount_loc        = "0xffffffffa053c1c8"
    __param             = "0xffffffffa053bfa8"
    __verbose           = "0xffffffffa053c980"
>>amixer;

>>Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 74
  Mono: Playback 74 [100%] [0.00dB] [off]

Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB] [on]
  Front Right: Playback 0 [0%] [-99999.99dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB] [on]
  Front Right: Playback 0 [0%] [-99999.99dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 239 [94%] [-3.20dB]
  Front Right: Playback 239 [94%] [-3.20dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 1 [33%] [-12.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB]
  Front Right: Capture 80 [100%] [6.00dB]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 4 [100%] [40.00dB]
  Front Right: 4 [100%] [40.00dB]
>>amixer -c 0;

>>Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 74
  Mono: Playback 74 [100%] [0.00dB] [off]

Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB] [on]
  Front Right: Playback 0 [0%] [-99999.99dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB] [on]
  Front Right: Playback 0 [0%] [-99999.99dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 239 [94%] [-3.20dB]
  Front Right: Playback 239 [94%] [-3.20dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 1 [33%] [-12.00dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB]
  Front Right: Capture 80 [100%] [6.00dB]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 4
  Front Left: 4 [100%] [40.00dB]
  Front Right: 4 [100%] [40.00dB]

I put

amixer -c 0

because there is no card with number one.

Last edited by tcr (2014-08-02 18:11:36)

Offline

#4 2014-08-02 18:24:57

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Amixer calls '-c 0', ergo the default sound card, by default so this was not necessary. Follow the alsa wiki how to set up your default sound card, the CX20561. Read the whole chapter, use vid and pid. Either this is a mix up with modules or you have a very particular setup. Is this a laptop or a desktop?

Offline

#5 2014-08-02 18:33:03

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

emeres wrote:

Amixer calls '-c 0', ergo the default sound card, by default so this was not necessary. Follow the alsa wiki how to set up your default sound card, the CX20561. Read the whole chapter, use vid and pid. Either this is a mix up with modules or you have a very particular setup. Is this a laptop or a desktop?


Is for a laptop.

I will try what you suggest.

Thanks.

Offline

#6 2014-08-02 18:52:44

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

I've created the following file:

>>less /etc/modprobe.d/alsa-base.conf

>># SB [HDA]
options snd_hda_intel index=0 model=auto vid=8086 pid=293e

pcm.!default {
    type plug
    slave.pcm {
        @func getenv
        vars [ ALSAPCM ]
        default "snd_hda_intel"
    }
}
/etc/modprobe.d/alsa-base.conf (END)

I've checked the modules, they are loaded.
No sound yet.

I'm doing something wrong?

Offline

#7 2014-08-02 19:00:58

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Delete part of that content. Use modprobe modules as stated on the wiki. Tale your time reading it. You need only add modules with vid and pid options. You should have something like this inside alsa-base.conf:

options snd-hda-intel vid=8086 pid=293e index=0

So you additionally posted what normally goes into ~/.asoundrc and used the module in there. The first part of the file is correct.

Edit: Missed a part of your post.

You need to reboot afterwards. This configuration however, assumes the HDMI and PCH are different cards. Should you still have problems, post the output of

speaker-test -c 2 -t wav
speaker-test -c 2 -t wav -D plug:dmix
speaker-test -c 2 -t wav -D plughw:0,0
speaker-test -c 2 -t wav -D plughw:0,3

Last edited by emeres (2014-08-02 19:05:18)

Offline

#8 2014-08-02 19:19:34

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: Archlinux - Sound (alsamixer not working)

Maybe it is stupid, but if i remember correctly, default alsa setting has muted sound. Have you tried unmute it?

alsamixer

in terminal, than show all and check all checkbox and volume panels. After that do a

alsactl store

.

Last edited by firekage (2014-08-02 19:20:14)

Offline

#9 2014-08-02 19:32:12

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

firekage wrote:

Maybe it is stupid, but if i remember correctly, default alsa setting has muted sound.

Do you have any reference for that? Or is it just your sound card/setup? Using 'alsactl store' as root/with sudo would make settings global. Remember, there are also systemd services for alsactl with two different schemes on how to handle settings.

I personally use an alias, which stores settings in home directory:

alsactl-store=alsactl -f "/home/user/.asound.state" store
alsactl-restore=alsactl -f "/home/user/.asound.state" restore

Offline

#10 2014-08-02 19:32:18

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

>>speaker-test -c 2 -t wav

>>speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busy
>>speaker-test -c 2 -t wav -D plug:dmix

>>speaker-test 1.0.28

Playback device is plug:dmix
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy
speaker-test -c 2 -t wav -D plughw:0,0

speaker-test 1.0.28

Playback device is plughw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busy
>>speaker-test -c 2 -t wav -D plughw:0,3

>>speaker-test 1.0.28

Playback device is plughw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10.935768
 0 - Front Left
 1 - Front Right
Time per period = 10.939314
 0 - Front Left
 1 - Front Right

in alsa mixer when i try to chose sound card, the only device name recognized is "hw:0".

Offline

#11 2014-08-02 19:33:54

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

firekage wrote:

Maybe it is stupid, but if i remember correctly, default alsa setting has muted sound. Have you tried unmute it?

alsamixer

in terminal, than show all and check all checkbox and volume panels. After that do a

alsactl store

.

auto-mute is disabled.

Offline

#12 2014-08-02 19:49:09

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Are you running pulseaudio? Post

fuser -v /dev/snd/* /dev/dsp*

Offline

#13 2014-08-02 20:05:02

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

>>fuser -v /dev/snd/* /dev/dsp*
>>Specified filename /dev/dsp* does not exist.

What this means?

Offline

#14 2014-08-02 20:06:19

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Then run only 'fuser -v /dev/snd/*'

Offline

#15 2014-08-02 20:08:47

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

emeres wrote:

Then run only 'fuser -v /dev/snd/*'

It doesn't has output.

Offline

#16 2014-08-02 20:11:08

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

What exactly did you run and what exactly is the output? What is the content of your alsa-base.conf now? Are you running pulseaudio or not? You have to help out a little.

Offline

#17 2014-08-02 20:13:52

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

emeres wrote:

What exactly did you run and what exactly is the output? What is the content of your alsa-base.conf now? Are you running pulseaudio or not? You have to help out a little.

[root@localhost ~]# fuser -v /dev/snd/*
[root@localhost ~]# fuser -v /dev/snd/
[root@localhost ~]# fuser -v /dev/snd/*
[root@localhost ~]# fuser -v /dev/snd/*
[root@localhost ~]# fuser -v /dev/snd/*
[root@localhost ~]# 
>>ps aux | grep pulse
root       998  0.0  0.0   9004   820 pts/0    S+   22:12   0:00 grep pulse

It is not running.  Need to install it?

alsa-base.conf

options hw:0 vid=8086 pid=293e index=0

Last edited by tcr (2014-08-02 20:15:02)

Offline

#18 2014-08-02 20:19:55

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Why are you logged in and running this as root?

tcr wrote:
options hw:0 vid=8086 pid=293e index=0

What is that? I posted what you need in alsa-base.conf already, you are mixing up alsa configuration with modprobes.

And no, leave pulseaudio alone for now. We have enough problems already.

If fuser still outputs nothing, it means the device should be ready, so try 'speaker-test -c 2 -t wav' again, you should have sound.

Last edited by emeres (2014-08-02 20:22:44)

Offline

#19 2014-08-02 20:27:04

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

emeres wrote:

Why are you logged in and running this as root?

tcr wrote:
options hw:0 vid=8086 pid=293e index=0

What is that? I posted what you need in alsa-base.conf already, you are mixing up alsa configuration with modprobes.

And no, leave pulseaudio alone for now. We have enough problems already.

If fuser still outputs nothing, it means the device should be ready, so try 'speaker-test -c 2 -t wav' again, you should have sound.

I have installed arch linux, and i've not created any user yet.

In alsa-base.conf is already as you said it should be.

Thanks for your patiente.

>>speaker-test -c 2 -t wav

>speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -16,Device or resource busy

It is possible that another process is using the device?

Offline

#20 2014-08-02 20:35:48

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

tcr wrote:

It is possible that another process is using the device?

Yes, that is the reason for running fuser. Finish your install first. For the record, 'hw:0' must not be inside alsa-base.conf, in your case 'snd-hda-intel' should take its place.

Offline

#21 2014-08-02 22:21:17

mianka
Member
From: BE LEUVEN
Registered: 2006-05-30
Posts: 229

Re: Archlinux - Sound (alsamixer not working)

I had also problems with alsa, and nothing I tried worked I found this :If you install pulseaudio, pulseaudio-alsa and then unmute pulseaudio in alsamixer,everything works like a doddle.

Offline

#22 2014-08-02 22:38:40

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

Worked out well for him, did it? PA runs on top of alsa, so if alsa has problems with simple sound tests, pulseaudio might as well. Adding complexity at this stage is probably highly inefficient, but of course it might work and it might now work as well.

Offline

#23 2014-08-04 21:55:39

tcr
Member
Registered: 2014-08-02
Posts: 18

Re: Archlinux - Sound (alsamixer not working)

After my first installation I've made a few experiments (that's also why I've chose arch linux) as root, before creating a usr account.

I made a fresh installation and alsa-mixer worked perfectly smile.

Thanks emeres for all your patience smile
Arch linux seems to have a nice community here, thank you all smile

Offline

#24 2014-08-04 22:11:44

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Archlinux - Sound (alsamixer not working)

I am glad you got it sorted out and you are welcome.

Offline

#25 2014-08-04 22:57:26

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: Archlinux - Sound (alsamixer not working)

Please don't forget to mark as solved by editing your first post, just read thru all of this...


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

Board footer

Powered by FluxBB