Linux Audio Troubleshooting

Posted on November 1, 2012

0



Imagine I had Linux Mint 12 and I connected my headphone to my linux machine, after disconnecting it I have lost my sound!?! I have alarm sounds in my monitoring system for many  companies and it was just silence, no alarms…
I had to check the settings with the alsamixer gui (alsamixer command) and something was muted automatically..
I have read many forums and wiki sites before I have found the easy solution, unmute everything. I made a script to collect my actual working audio settings for troubleshooting purposes. If it later goes wrong again, I run the script once more and I will compare the 2 outputs. If there is a difference, I will know at least what has changed, in which way should I go forward.

Do you have audio problems? Here you can start your troubleshooting:
https://help.ubuntu.com/community/SoundTroubleshooting
https://wiki.ubuntu.com/DebuggingSoundProblems

The commands used in my script:

output of the /etc/modprobe.d/alsa-base.conf file. For more info see http://alsa.opensrc.org/MultipleCards
output of the inxi -SAxc 0 command. inxi is a full featured system information script. It gives information about the audio drivers, cards. More info on http://code.google.com/p/inxi/
output of dpkg -l *pulse* and dpkg -l *alsa* commands to see what and which version is installed.
output of ps axfu | grep pulse and ps axfu | grep alsa command to see what runs actually.
output if aplay -l command. aplay is a command-line sound recorder and player for ALSA soundcard driver. It can list the soundcards and digital audio devices (here only the playback hardware devices).
output of lspci -v command. It lists all PCI devices inclusive the audio devices.
output of cat /proc/asound/version command. Shows the version of the audio driver.
output of head -n 1 /proc/asound/card0/codec* command.
output of amixer command. it is a command-line mixer for ALSA soundcard driver. With no arguments will display the current mixer settings for the default soundcard and device.
output of amixer controls command. It shows a complete list of card controls.

The script is here (rename it to sound_info.sh, it a bash script):

sound_info.sh

and my output is here:

audio_info.txt

Advertisements