After update microphone and sometimes speaker are not working

Hi, I hope someone can help me.
Yesterday I did an update and after that my microphone and speaker don’t work.
If I go to Google Meet for example, I can listen the people or in youtube the videos but If I go to zoom or slack is not working.

In google meet the people cannot hear me either. I have checked everything and I don’t know what I need to do. Everything is like always:

I have an script that always I was using when my laptop is locked and because loose the sound and doing this, is recovering again

#!/bin/bash

# Variables
PRIMARY_MONITOR="DP-1-0"  # Primary monitor
RESOLUTION="3440x1440"
LOWER_RESOLUTION="1920x1080"  # Temporary lower resolution
AUDIO_OUTPUT="alsa_output.pci-0000_01_00.1.hdmi-stereo"  # Primary monitor's audio device

# Switch to a lower resolution
xrandr --output $PRIMARY_MONITOR --mode $LOWER_RESOLUTION
# sleep 2  # Wait 2 seconds

# Switch back to the desired resolution
xrandr --output $PRIMARY_MONITOR --mode $RESOLUTION
echo "Resolution changed to $RESOLUTION for $PRIMARY_MONITOR"

# Change the audio output
pactl set-default-sink $AUDIO_OUTPUT

# Move all current applications to the new audio output
for INPUT in $(pactl list short sink-inputs | cut -f1); do
    pactl move-sink-input $INPUT $AUDIO_OUTPUT
done

echo "Audio output changed to $AUDIO_OUTPUT"

Using this script, I can hear everything in youtube but the microphone and the rest of the things are not working :frowning:

If someone can guide me or tell me what is happening or if you need more information let me know.

Thanks

I solved the problem commenting the line adding a # in the file /etc/pulse/default.pa

### Automatically suspend sinks/sources that become idle for too long
# load-module module-suspend-on-idle

I don’t know if this is the best solution but at the moment it is working and I have read here Audio not working after recent update - #4 by empy

I don’t have the file in question - so there is the question on how it appeared in the first place - I think because I have only pipewire packages.

Did you get any .pacnew for default.pa ? If you did you may investigate the changes - most notably the default settings.

I don’t know about your question. I didn’t touch anything. I only update the system. Sorry If I cannot help, my knowledge is not high in Linux and I posted the “possible” solution that I found in another post

Any time you post a possible solution from another topic, please reference that topic with a link to ensure due credit is given.

Regards.


Welcome to the Manjaro community

As a new or infrequent forum user, please take some time to familiarise yourself with Forum requirements, and the many ways to use the forum to your benefit:


Update Announcements

The Update Announcements contain important information and a Known Issues and Solutions section that should generally be checked before posting a request for support.

System Information

Output of this command (formatted according to forum requirements) may be useful for those wishing to help:

inxi --filter --verbosity=8

or the short form:

inxi -zv8

Be prepared to provide more information and outputs from other commands whenever asked.

Required reading
Resources

Regards.

Better solution would be to create a custom default.pa configuration for PulseAudio in home folder

cp /etc/pulse/default.pa ~/.config/pulse/default.pa

and comment out module-suspend-on-idle in custom configuration

sed -i '/load-module module-suspend-on-idle/s/^/#/' ~/.config/pulse/default.pa

Then this topic is waste of time and resources.

Noted. Closed and unlisted.