Let me start by saying my audio is working fine.
However I like my (build-in) microphone to be muted at all times and I only unmute it if I have, e.g., a conference call.
The last 3 Manjaro updates presented me with an undesired, desired and the last update again an undesired result. Meaning that the update before the last, the pulseadio setting where kept. so when I had the microphone muted at shutdown the system would startup with the microphone muted.
But currently the system will always startup with the microphone unmuted.
So can anyone help me to find the configuration setting that will, once and for all, always mute my (build-in) microphone at startup?
Thanks.
>> uname -a
Linux HOSTNAME 6.1.67-2-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Dec 12 00:54:25 UTC 2023 x86_64 GNU/Linux
>> inxi -A
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio driver: snd_hda_intel
API: ALSA v: k6.1.67-2-MANJARO status: kernel-api
Server-1: PipeWire v: 1.0.0 status: active
Server-2: PulseAudio v: 16.1 status: active
Not a sollution to your pulseaudio problem butâŠ
Unless pulseaudio is a demand on your side I recommend switching to pipewire.
Edit
Nvm. Not sure why you have both installed and use pulseaudio. I guess if you have a reason for it you can ignore my message here.
But that might be the reason, disable it in pipewire and see if it fixes it.
Or disable pipewire.
I would only use one or the other though.
pulseadio = legacy
pipewire = new (things just work)
I think pipewire will be very useful/required with wayland too, whenever you have to move over.
@bedna
If pacmd command works OP must be using PulseAudio as default audio server
PipeWire media server is not likely to be causing a problem with microphone mute state
@Ben amixer commands would be another option if changing the mute state via pacmd does not persist
amixer sset Capture nocap
But OP would probably have to turn audio capture on to use microphone because ALSA capture state cannot be changed in pavucontrol or VOIP audio controls
does mute my microphone but it doesnât persist after a reboot.
Neither does the:
amixer sset Capture nocap
@bedna
I do not know why both PipeWire and PulseAudio are installed, I installed Manjaro 6-7 years ago and updated it ever since. So maybe PulseAudio is there because it is legacy and still supported and PipeWire is probably there because it is a dependency for one of the packages I installed (most likely osb-studio).
Adding your suggestion to ~/.config/pulse/default.pa doesnât work. After a reboot the microphone gets unmuted.
BUT masking the PipeWire systemd units (socket, service) does work.
Even if I remove the ~/.config/pulse/default.pa file the system boots with the choice I made at shutdown (mute/unmute).
So I guess pipewire does have an effect on the state of the microphone.
BTW: I donât have pipewire-pulse installed. Only pipewire, libpipewire, pipewire-audio, pipewire-jack and pipewite-media-sessions
Looking at the ~/.config/pipewire-media-sessios/default-routes I see:
Changing all the mute:0 to mute:1 doesnât do the trick either, only masking the systemd units work at this point.
It solves my issue for now but it doesnât feel like a solid solution in the long run.
Yeah, thatâs what I thought too, but was told otherwise.
On KDE, I just have pipewire though, the state of the muted/unmuted stays after reboot so I assumed it was the same on xfce.
Why not just TRY pipewire instead?
What confuses me is that you have pipewire installed. I thought that only would happen on new installs OR if you manually installed it.
If you use the package manjaro-pipewire it removes pulse and installs pipe.
There is also a package called manjaro-pulse witch I assume does it in the opposite direction.
And yes, Iâm almost sure the issue of âmute not stayingâ would have been solved if you installed manjaro-pipewire
FYI, screencapture with pipewire does not work with OBS in the repos anyway, you need the flatpak for that.
Have fun setting up sinks and whatnot for the output with pulse btw.
I preferred to just click âcapture application sound (pipewire)â and be done. xD
pipewire-media-session is the deprecated pipewire session manager. Pipewire users are recommended to use wireplumber instead. pipewire-media-session provides a systemd unit pipewire-media-session.service that might cause a problem with setting microphone mute state but I have never had this package installed to confirm this
I have also never had pipewire-audio installed. This package has systemd unit filter-chain.service that might cause a problem with microphone mute state
Both of those packages could probably be removed
But pipewire-jack cannot be removed. obs-studio requires at least one JACK package installed, so pipewire-jack must be replaced by jack2 to keep obs-studio dependencies satisfied pipewire-jack does not have a systemd unit, but AFAIK it is always running in the background and might cause issues with PulseAudio
I have never had pipewire-jack installed because I have been using âjackâ and âjack2â to produce live audio content for many years
screencapture with pipewire does not work with OBS in the repos anyway
I have used obs-studio from extra repository to mix audio from ALSA, PulseAudio and JACK
and never had a problem with audio or screen capture on Xfce
(not including user error and misconfigurations )
If a user uninstalls either jack2 or pipewire-jack imitation service, package manger will also request removal of any packages that require jack as a dependency
But pipewire-jack is not tied in with dependencies to other pipewire packages
so even pipewire-pulse users can replace pipewire-jack with jack2
I think my issue is solved. I installed manjaro-pipewire and therefore removed pulseaudio, never a good idea to have 2 packages installed that can interfere with each other.
All audio function seam to work as I use them and my microphone keeps muted at startup.
It took me a while to get pipewire working but as soon as I remembered I had some systemd unit masked from my previous attempts to debug I had audio again .
If I run into issues with pipewire Iâll open a new thread. Thanks all for your help and suggestions.