fixsnd

Submitted scripts and programs
Forum rules
Your own work only.
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

fixsnd

Unread post by machinebacon » Tue Jul 30, 2013 7:29 am

Fixes the soundcard, at least it tries to reset it, get new values, and store them.

Code: Select all


#!/bin/bash
clear
echo "Your audio device is:"
lspci | grep Audio
echo
echo "If your soundcard is a ESS Technology or Maestro,"
echo "please run Fix ESS Soundcards in the BBQfix menu"
echo "Plug in your speakers and headphones, they will be tested."
echo
read -p "Press any key to continue... " -n1 -s
#aplay -l
echo
echo "Restarting ALSA...."
sudo alsactl init
sleep 5s
echo
echo "Opening alsamixer - please adjust the volume levels using
the cursor (arrow) keys. If you see 'M' under the mixer it means 
that the channel is muted. Unmute the channel using the 'm' key. 
When finished press [Esc]"
echo
read -p "Press any key to continue... " -n1 -s
alsamixer
clear
echo "Testing default jack on four channels, twice."
echo
speaker-test -t wav -c 2 -l 2
sudo alsactl store
echo
echo "ALSA driver setup stored and all tests finished."
sleep 3s 
exit 0
..gnutella..

Post Reply