LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-11-2022, 08:06 AM   #1
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
ALSA has lost its ability to unmute the sound


After a recent upgrade, I find that the sound comes up muted on two of my three machines. I have to run
Code:
pactl set-sink-mute 0 0
to unmute the sound.

My setup is: my programs call ALSA. asound.conf does not route the sound through PulseAudio. The sound state is restored from /etc/asound.state on boot. PulseAudio is never invoked. This worked fine for years.

Now, it seems that there is some sound state that only PulseAudio can control. However, once unmuted via pactl, the sound works with just ALSA.

This is a minor inconvenience. I am not sure if there is a way to get the old behavior back.

ETA: I see that the additional state is saved to /etc/asound.state by "alsactl store". Only alsamixer is missing the settings. This reduces the problem to once-per-install.
Ed

Last edited by EdGr; 06-11-2022 at 12:30 PM.
 
Old 06-12-2022, 04:08 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,834

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Which distro/version? If you're using alsa, why is pulse active to begin with? That is likely impacting here.
 
Old 06-12-2022, 08:41 AM   #3
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
The problem occurs on the Slackware64-current base system (A, AP, D, L, N, T, TCL, X, and XAP). Standalone ALSA used to work, but the recent ALSA mixer does not have all the settings needed to unmute the sound. This configuration can also use PulseAudio if a program like Firefox calls it.

I suspect that very few users run ALSA without routing the sound through PulseAudio. I am marking the thread as solved since a workaround exists (run pactl before "alsactl store").
Ed
 
1 members found this post helpful.
Old 06-12-2022, 09:34 AM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
If you don't like pulse, check out pipewire. I switched over to it a week ago, and I'm liking it. I haven't noticed any problems, that is. (I do need to rebuild it for jack, but I'm a bit lazy in that regard.)
 
1 members found this post helpful.
Old 06-12-2022, 09:40 AM   #5
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,000

Original Poster
Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Thanks, but I don't need or want a sound daemon.
Ed
 
Old 06-13-2022, 01:07 AM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by EdGr View Post
recent ALSA mixer does not have all the settings needed to unmute the sound.
That is interesting. I don't use current, but I think amixer set Master unmute should be able to unmute.
If it's not able to do that without pactl, then it's a bug/regression in alsa lib which breaks amixer.
 
Old 06-13-2022, 01:47 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,834

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by elcore View Post
That is interesting. I don't use current, but I think amixer set Master unmute should be able to unmute.
If it's not able to do that without pactl, then it's a bug/regression in alsa lib which breaks amixer.
I agree, but I think this is due to the behaviour of pulseaudio, and not alsa itself. If PA is muting all channels, then the 'amixer set Master unmute' won't be sufficient. Easy enough to check though.
 
Old 06-13-2022, 02:04 AM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Easy enough to check though.
Following current is too much work for me, may be easy enough but not enough time.
FWIW, alsa-lib compiled with no libpulse works fine on 15.0 here, mutes/unmutes fine via amixer and saves/restores fine via alsactl.
So the OP problem looks like regression to me.
 
  


Reply



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
Sound from external DAC not detected; can't unmute devices in pavucontrol Mintonite Linux Mint 9 05-23-2015 07:55 AM
[SOLVED] have to run alsamixer to unmute sound after reboot newonlinux Linux - Newbie 10 01-15-2011 10:43 AM
CD sound silent, cannot unmute noid Linux - Newbie 8 07-24-2005 05:57 AM
Sound Problems (suspect I must unmute some channels) Mr.Ampersand() Linux - Software 0 02-14-2005 06:27 PM
How to Unmute sound using OSS?? shazam75 Mandriva 3 10-15-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:54 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