LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-16-2017, 03:09 PM   #1
bertalanp99
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
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
 
Old 09-16-2017, 04:28 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,513

Rep: Reputation: Disabled
Is there a tool in Arch to verify the integrity of installed packages (like qcheck in Gentoo)? I suspect file corruption.
 
Old 09-16-2017, 05:56 PM   #3
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 196

Rep: Reputation: Disabled
what version of Arch?
Code:
uname -a
here is a clue also:
Code:
ALSA lib conf.c:3636:(config_file_open) /etc/asound.conf may be old or corrupted: consider to remove or fix it

Last edited by WFV; 09-16-2017 at 05:58 PM.
 
Old 09-17-2017, 12:43 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
^ i am using archlinux with plain alsa.
there is no /etc/asound.conf on my system:

Code:
pacman -Qo /etc/asound.conf
error: failed to read file '/etc/asound.conf': No such file or directory
i suggest you move it out of the way and reboot.

if that doesn't help, try re-installing.

Code:
pacman -Ss alsa | grep installed
will give you a list.
 
1 members found this post helpful.
Old 09-17-2017, 02:41 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Or create a $HOME/.asoundrc so it doesn't even look for /etc/asound.conf.

FILE: $HOME/.asoundrc
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
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.

# pacman -Sy alsa-lib alsa-plugins alsa-utils alsa-firmware
 
Old 09-17-2017, 02:42 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
$ pkgfile -s -g *asound.conf*
extra/pulseaudio-alsa

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).
 
Old 09-17-2017, 03:34 AM   #7
bertalanp99
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Solved

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
 
Old 09-18-2017, 12:51 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
i thought you meant you don't have pulseaudio.


...and there's no package alsa-pulseaudio.

Last edited by ondoho; 09-18-2017 at 12:52 AM.
 
Old 09-18-2017, 11:38 AM   #9
bertalanp99
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
i thought you meant you don't have pulseaudio.


...and there's no package alsa-pulseaudio.
Please note that nowehere in my post did I mention not having pulseaudio. I should have mentioned that I had that installed though.

And thanks for pointing that out; of course the package name is pulseaudio-alsa. I edited my last reply.

Last edited by bertalanp99; 09-18-2017 at 11:39 AM. Reason: better phrasing; better formatting
 
Old 09-18-2017, 01:59 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Quote:
Originally Posted by bertalanp99 View Post
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.
 
Old 09-19-2017, 01:30 PM   #11
bertalanp99
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 09-20-2017, 12:44 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
nice.
btw, pulseaudio implies alsa; it is always built on top of alsa.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arch - Virtualbox - Alsa - No Sound ajwats81 Arch 2 07-20-2013 09:56 PM
Arch Linux messed something up with my HDD? theif519 Arch 3 06-01-2011 09:36 PM
Arch linux networking completely gone shadogamon Linux - Networking 2 05-16-2011 02:09 PM
Linux completely messed something up... gates_2 Linux - General 7 07-12-2005 09:41 PM
swaret upgrade has messed up alsa sound Vincent Slackware 3 12-06-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration