Know Your System, Focusing on Audio
I love listening to music.
A linux without sound is killing me.
After all this linux years,
I am still curious about this sound thing.
Altough I’m using openSUSE.
This article can be a reference to other linux as well.
I mostly pour my daily linux troubleshooting in a blog,
so I can find the solution easily,
if I have similar issue another day.
The Operating System Part
Before getting into detail
on how the sound works perfectly or no sound at all,
first we should examine the system wide setting,
that is provided by the operating system.
The Hardware Information
I always use
lspci as my starting point.
Well, I’m not an expert. I could be wrong.
Other people mught have different starting point.
Now that we have this
we can have a more verbose information.
It is crazy. This command know that I have realtek ALC887.
Note with this suspicious access denied message,
my sound card still works perfectly.
Now, how about lsmod.
dmesg (display message) command.
And filter it with grep looking for text contining snd.
Or you can issue a more specific filter.
But this is useless.
I mean, please be careful on filtering.
You might lose important message that you are searching for.
Device is listed on
/dev/snd directory is not the only place to go.
We can use this later to get the codec.
User and Group
One said that most the important aspect is the permission.
The Audio Part
Now it is depend on the driver and audio handler in your system.
Mine could be difference with yours.
My openSUSE as
pulseaudio set by default.
aplay: List Devices
You must have been heard about this
aplay -l command.
However, be aware of lowercase argument.
Now it is time to test if the audio works.
You should hear something from your speaker by now.
aplay: List PCM
aplay -L command.
However, be aware of uppercase argument.
PCM: Pulse Code Modulation
Now you can djust volume by issue
And press ESC to quit.
If you wish for GUI, you can use
xfce4-mixer as well.
Or more eleganly for pulseaudio, you can use
Volume Control: amixer
Volume Control: pactl
That’s not all. Not at all.
There are still a lot of things to explore with audio sound.
But I have only limited knowledge.
Thank you for reading