[SOLVED] Sound completely messed up (Arch Linux with ALSA and pulseaudio)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sound completely messed up (Arch Linux with ALSA and pulseaudio)
I was trying to configure sound on my freshly installed Arch Linux PC. Now it looks like things got really messed up and I can't do anything. I know it is not a hardware issue.
Please take a look at the output of alsamixer for example:
Code:
[bertalanp99@watermelon ~]$ alsamixer
ALSA lib conf.c:1206:(parse_value) default is not a string
ALSA lib conf.c:1876:(snd_config_load1) _toplevel_:131:0:Invalid argument
ALSA lib conf.c:3636:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3558:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL default
cannot open mixer: Invalid argument
Result of aplay -l
Code:
[bertalanp99@watermelon ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:1206:(parse_value) default is not a string
ALSA lib conf.c:1876:(snd_config_load1) _toplevel_:131:0:Invalid argument
ALSA lib conf.c:3636:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3558:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:279: control open (0): Invalid argument
ALSA lib conf.c:1206:(parse_value) default is not a string
ALSA lib conf.c:1876:(snd_config_load1) _toplevel_:131:0:Invalid argument
ALSA lib conf.c:3636:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3558:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:1
aplay: device_list:279: control open (1): Invalid argument
ALSA lib conf.c:1206:(parse_value) default is not a string
ALSA lib conf.c:1876:(snd_config_load1) _toplevel_:131:0:Invalid argument
ALSA lib conf.c:3636:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3558:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:2
aplay: device_list:279: control open (2): Invalid argument
I also have pulseaudio installed.
I don't even know what else to post, everything related to sound gives me tons of these errors. Please help
Last edited by bertalanp99; 09-19-2017 at 01:29 PM.
Reason: improved formatting; added info
Would be the functional equivalent of hw:1,0. Where *.ctl.card is what you use for control (mixer settings), and *.pcm.card is the sound output (or input) device. The .device is the sub device, 0 for playback, 1 or 2 for capture, 3 is HDMI audio a lot of the time and why I keep the entry even though it's basically defaults to that if missing. Various more details (if you know how to read it) in /proc/asound/*.
You could also pass which soundcard to alsamixer.
$ alsamixer -c 1
To get a glimpse of what the number means and points at:
$ cat /proc/asound/cards
Otherwise (re)install the alsa stuff, to include libasound2, and alsa-utils.
Looks like you might have grabbed some pulseaudio stuff. I'm not sure if you were wanting that or not. Although modern web browsers seem to "require" it now (if you want sound).
Hello, thanks for your replies. Sorry for making a fuss; actually, I was able to solve the problem relatively easily an hour after posting. The error says clearly that I have some problem with my /etc/asound.conf. I removed the file and ran
Code:
sudo pacman -S pulseaudio-alsa
which regenerated the file. Then I had to fix a few things in my asoundrc (selected my correct sound card as default). Now sound works very well.
Last edited by bertalanp99; 09-18-2017 at 11:36 AM.
Reason: fixed package name
Please note that nowehere in my post did I mention not having pulseaudio.
exactly. you never mentioned it, talking about ALSA all the time...
but hey, i don't want to dis you!
just pointing out that the potential for misunderstanding was high, and that there's a reason why we always ask people to provide as much information as possible, because you simply cannot take things for granted.
exactly. you never mentioned it, talking about ALSA all the time...
but hey, i don't want to dis you!
just pointing out that the potential for misunderstanding was high, and that there's a reason why we always ask people to provide as much information as possible, because you simply cannot take things for granted.
I know you don't. And you are right, I added a bit of information about having pulseaudio as well to the original post/question for future reference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.