If you are using the Linux operating system on your desktop, you might have faced some audio issues before. Like when you're trying to get sound in your speakers when your headphones are connected to the audio jack.
If so, no worries! It is a pretty common issue that you can resolve quickly. In this article, I am going to help you solve the issue completely. I'll be using a well known distro called Manjaro Linux, but I believe that the same method is applicable for all Linux distributions.
Step 1 – Open the terminal / console
Step 2 – Open Alsamixer
We will use alsamixer to tweak the audio settings. Type
alsamixer and press the Enter key on your keyboard.
Alsamixer will open in your terminal.
Step 3 – Set Preferred Sound Card
Now you need to select your preferred sound card. For that, simply press the
F6 key on your keyboard. Select the sound card appropriate for you.
If you are not sure, then you can simply select one of them at a time (press the Enter key after selecting the sound card) and try the rest of the methods to see whether that sound card was appropriate or not. For me, it is default:1 HD-Audio Generic.
The AlsaMixer window will change depending on your selected sound card.
Then press the right arrow (
➜) key until you find Auto-Mute Mode.
You will see that it is currently ENABLED.
We need to change it back to DISABLED. You have to press the down arrow (
↓) key to disable it.
Then press the
Esc key to exit AlsaMixer.
Step 4 – Save Settings
Now we need to save the settings that we just tweaked in AlsaMixer. For that, type
sudo alsactl store. Now press the Enter key.
Now you are good to go!
If you want to check whether the audio is working in your speakers or not, then you can go to Settings.
Then go to Sound.
If you change your Output Device, then you should see that the speaker audio is working perfectly. I am using the Line Out option here for my workstation.
Now you should see that the audio issue has been fixed!
BONUS: I have also made a complete video tutorial about this and published the video on my new YouTube channel.
I hope this trick helps you if you also face this kind of audio issue in your speakers. Thanks a lot for reading the entire article till now. If it helps you then you can also check out other articles of mine at freeCodeCamp.
If you want to get in touch with me, then you can do so using Twitter, LinkedIn, and GitHub.
You can also SUBSCRIBE to my YouTube channel (Code With FahimFBA) if you want to learn various kinds of programming languages with a lot of practical examples regularly.
If you want to check out my highlights, then you can do so at my Polywork timeline.
You can also visit my website to learn more about me and what I'm working on.
Thanks a bunch!