You are not logged in.
Pages: 1
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
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
>>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
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
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
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
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
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
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
>>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
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
Are you running pulseaudio? Post
fuser -v /dev/snd/* /dev/dsp*
Offline
>>fuser -v /dev/snd/* /dev/dsp*
>>Specified filename /dev/dsp* does not exist.
What this means?
Offline
Then run only 'fuser -v /dev/snd/*'
Offline
Then run only 'fuser -v /dev/snd/*'
It doesn't has output.
Offline
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
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
Why are you logged in and running this as root?
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
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
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
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
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
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 .
Thanks emeres for all your patience
Arch linux seems to have a nice community here, thank you all
Offline
I am glad you got it sorted out and you are welcome.
Offline
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
Pages: 1