LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2007, 06:11 AM   #1
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Rep: Reputation: 15
Sound problem


Hye to all
Iam not able to figure out my system sound .After booting my system ,system sound is coming but when iam increasing or decreasing the volume from volume control ,sound stops.
In real player same thing happens .sound is coming but if iam increasing or decreaasing the volume sound stops totally but player keep on playing the song.
I gave some of the commands
1:lspcii
Code:
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 82946GZ/PL/GL Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82946GZ/PL/GL PCI Express Root Port (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82946GZ/GL Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
04:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5786 Gigabit Ethernet PCI Express (rev 02)
2:when i gave command
alsaconf
bash: alsaconf: command not found

Code:
3:lsmod|grep snd
snd_hda_intel          21589  1 
snd_hda_codec         144321  1 snd_hda_intel
snd_seq_dummy           7877  0 
snd_seq_oss            32705  0 
snd_seq_midi_event     11073  1 snd_seq_oss
snd_seq                49841  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         11853  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            42849  0 
snd_mixer_oss          19137  1 snd_pcm_oss
snd_pcm                72005  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              25029  2 snd_seq,snd_pcm
snd                    52037  11 snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              13217  1 snd
snd_page_alloc         13769  2 snd_hda_intel,snd_pcm
Code:
4:apropos alsa
aconnect (1) - ALSA sequencer connection manager
alsactl (1) - advanced controls for ALSA soundcard driver
alsa-lib-devel (rpm) - Static libraries and header files from the ALSA library.
alsa-lib (rpm) - The Advanced Linux Sound Architecture (ALSA) library.
alsamixer (1) - soundcard mixer for ALSA soundcard driver, with ncurses interface
alsa-utils (rpm) - Advanced Linux Sound Architecture (ALSA) utilities
amidi (1) - read from and write to ALSA RawMIDI ports
amixer (1) - command-line mixer for ALSA soundcard driver
aplay (1) - command-line sound recorder and player for ALSA soundcard driver
arecord [aplay] (1) - command-line sound recorder and player for ALSA soundcard driver
aseqdump (1) - show the events received at an ALSA sequencer port
aseqnet (1) - ALSA sequencer connectors over network
speaker-test (1) - command-line speaker test tone generator for ALSA
DOes anyone has any solution for it
 
Old 10-25-2007, 09:04 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Could you download and run this script? It will post some information about your sound system to a website that I can use to help you debug your sound issue.

Thanks

Tobin
 
Old 10-26-2007, 01:01 AM   #3
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Original Poster
Rep: Reputation: 15
hye after opening this script i got :I have no idea aboout this
Code:
#!/bin/bash

SCRIPT_VERSION=0.4.34
CHANGELOG="http://bulletproof.servebeer.com/alsa/scripts/alsa-info.changelog"

#################################################################################
#Copyright (C) 2007 Free Software Foundation.

#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

##################################################################################

#The script was written for 2 main reasons:
# 1. Remove the need for the devs/helpers to ask several questions before we can easily help the user.
# 2. Allow newer/inexperienced ALSA users to give us all the info we need to help them.

#Change the PATH variable, so we can run lspci (needed for some distros)
PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin
BGTITLE="ALSA-Info v $SCRIPT_VERSION"
PASTEBINKEY="C9cRIO8m/9y8Cs0nVs0FraRx7U0pHsuc"
#Define some simple functions

update() {
	wget -O /tmp/alsa-info.sh http://bulletproof.servebeer.com/alsa/scripts/alsa-info.sh >/dev/null 2>&1
	REMOTE_VERSION=`grep SCRIPT_VERSION /tmp/alsa-info.sh |head -n1 |sed 's/.*=//'`
	if [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
		if [[ -n $DIALOG ]]
		then
			dialog --yesno "Newer version of ALSA-Info has been found\n\nDo you wish to install it?" 0 0
			DIALOG_EXIT_CODE=$?
			if [[ $DIALOG_EXIT_CODE = 0 ]]
			then
				cp /tmp/alsa-info.sh $0
				echo "ALSA-Info script has been updated to v $REMOTE_VERSION"
				echo "To view the ChangeLog, please visit $CHANGELOG"
				echo "Please re-run the script"
				exit
			fi
		else
			cp /tmp/alsa-info.sh $0
			echo "Newer version detected: $REMOTE_VERSION"
			echo "To view the ChangeLog, please visit $CHANGELOG"
			echo "ALSA-Info script has been updated. Please re-run it."

			exit
		fi
	fi
	rm /tmp/alsa-info.sh 2>/dev/null
}

cleanup() {
	rm -r $TEMPDIR 2>/dev/null
}

withaplay() {
        echo "!!Aplay/Arecord output" >> $FILE
        echo "!!------------" >> $FILE
        echo "" >> $FILE
       	echo "APLAY" >> $FILE
	echo "" >> $FILE 
	aplay -l >> $FILE
        echo "" >> $FILE
       	echo "ARECORD" >> $FILE
	echo "" >> $FILE
	arecord -l >> $FILE 
	echo "" >> $FILE
}

withlsmod() {
	echo "!!All Loaded Modules" >> $FILE
	echo "!!------------------" >> $FILE
	echo "" >> $FILE
	lsmod |awk {'print $1'} >> $FILE
	echo "" >> $FILE
	echo "" >> $FILE
}

withamixer() {
        echo "!!Amixer output" >> $FILE
        echo "!!-------------" >> $FILE
        echo "" >> $FILE
        for i in `seq 0 $LAST_CARD`;do
	CARD_NAME=`grep "^ $i" /tmp/alsainfo/alsacards.tmp|awk {'print $2'}`
	echo "!!-------Mixer controls for card $i $CARD_NAME]" >> $FILE
	echo "" >>$FILE
	amixer -c$i>> $FILE
        echo "" >> $FILE
	done
	echo "" >> $FILE
}

withdevices() {
        echo "!!ALSA Device nodes" >> $FILE
        echo "!!-----------------" >> $FILE
        echo "" >> $FILE
        ls -la /dev/snd/* >> $FILE
        echo "" >> $FILE
        echo "" >> $FILE
}

withconfigs() {
if [[ -e $HOME/.asoundrc ]] || [[ -e /etc/asound.conf ]] || [[ -e $HOME/.asoundrc.asoundconf ]]
then
        echo "!!ALSA configuration files" >> $FILE
        echo "!!------------------------" >> $FILE
        echo "" >> $FILE

        #Check for ~/.asoundrc
        if [[ -e $HOME/.asoundrc ]]
        then
                echo "!!User specific config file (~/.asoundrc)" >> $FILE
                echo "" >> $FILE
                cat $HOME/.asoundrc >> $FILE
                echo "" >> $FILE
                echo "" >> $FILE
        fi
	#Check for .asoundrc.asoundconf (seems to be Ubuntu specific)
	if [[ -e $HOME/.asoundrc.asoundconf ]]
	then
		echo "!!asoundconf-generated config file" >> $FILE
		echo "" >> $FILE
		cat $HOME/.asoundrc.asoundconf >> $FILE
		echo "" >> $FILE
		echo "" >> $FILE
	fi
        #Check for /etc/asound.conf
        if [[ -e /etc/asound.conf ]]
        then
                echo "!!System wide config file (/etc/asound.conf)" >> $FILE
                echo "" >> $FILE
                cat /etc/asound.conf >> $FILE
                echo "" >> $FILE
                echo "" >> $FILE
        fi
fi
}


#Run checks to make sure the programs we need are installed.
LSPCI=$(which lspci 2>/dev/null| sed 's|^[^/]*||' 2>/dev/null);
TPUT=$(which tput 2>/dev/null| sed 's|^[^/]*||' 2>/dev/null);
DIALOG=$(which dialog 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null);

#Check to see if sysfs is enabled in the kernel. We'll need this later on
SYSFS=$(mount |grep sysfs|awk {'print $3'});

#Check modprobe config files for sound related options
SNDOPTIONS=$(modprobe -c|sed -n 's/^options \(snd[-_][^ ]*\)/\1:/p')

#Script header output.
if [[ -n "$DIALOG" ]]
then
	dialog --backtitle "$BGTITLE" --title "ALSA-Info script v $SCRIPT_VERSION" --yesno "\nThis script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem\n\nDo you want to run this script?" 0 0
DIALOG_EXIT_CODE=$?
if [ $DIALOG_EXIT_CODE != 0 ]; then
echo "Thank you for using the ALSA-Info Script"
exit 0;
fi
else

echo "ALSA Information Script v $SCRIPT_VERSION"
echo "--------------------------------"
echo ""
echo "This script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem."
echo ""
if [[ -n "$TPUT" ]]; then
tput bold
echo "By default, the collected information will be AUTOMATICALLY uploaded to a pastebin site."
echo "If you do not wish for this to occur, run the script with the --no-upload argument"
tput sgr0
else
echo "By default, the collected information will be AUTOMATICALLY uploaded to a pastebin site."
echo "If you do not wish for this to occur, run the script with the --no-upload argument"
fi
echo ""
echo -n "Do you want to run this script? [y/n] : "
read -e CONFIRM
if [ $CONFIRM != "y" ]; then
echo ""
echo "Thank you for using the ALSA-Info Script"
exit 0;
fi
fi

if [[ -z "$LSPCI" ]] 
	then
	echo "This script requires lspci. Please install it, and re-run this script."
exit 0
fi

#Set the output file
TEMPDIR="/tmp/alsainfo/"
FILE="/tmp/alsa-info.txt"

#Create the temporary work dir.
mkdir $TEMPDIR 2>/dev/null

#Fetch the info and store in temp files/variables
DISTRO=`grep -ihs "buntu\|SUSE\|Fedora\|PCLinuxOS\|MEPIS\|Mandriva\|Debian\|Damn\|Sabayon\|Slackware\|KNOPPIX\|Gentoo\|Zenwalk\|Mint\|Kubuntu\|FreeBSD\|Puppy\|Freespire\|Vector\|Dreamlinux\|CentOS\|Arch\|Xandros\|Elive\|SLAX\|Red\|BSD\|KANOTIX\|Nexenta\|Foresight\|GeeXboX\|Frugalware\|64\|SystemRescue\|Novell\|Solaris\|BackTrack\|KateOS" /etc/{issue,*release,*version}`
KERNEL_VERSION=`uname -r`
KERNEL_PROCESSOR=`uname -p`
KERNEL_MACHINE=`uname -m`
KERNEL_OS=`uname -o`
[[ `uname -v |grep SMP`  ]] && KERNEL_SMP="Yes" || KERNEL_SMP="No" 
ALSA_DRIVER_VERSION=`cat /proc/asound/version |head -n1|awk {'print $7'} |sed 's/\.$//'`
ALSA_LIB_VERSION=`grep VERSION_STR /usr/include/alsa/version.h 2>/dev/null|awk {'print $3'}|sed 's/"//g'`
ALSA_UTILS_VERSION=`amixer -v |awk {'print $3'}`
VENDOR_ID=`lspci -vn |grep 040[1-3] | awk -F':' '{print $3}'|awk {'print substr($0, 2);}' >/tmp/alsainfo/vendor_id.tmp`
DEVICE_ID=`lspci -vn |grep 040[1-3] | awk -F':' '{print $4}'|awk {'print $1'} >/tmp/alsainfo/device_id.tmp`
LAST_CARD=$((`grep "]: " /proc/asound/cards | wc -l` - 1 ))
cat /proc/asound/modules 2>/dev/null|awk {'print $2'}>/tmp/alsainfo/alsamodules.tmp
cat /proc/asound/cards >/tmp/alsainfo/alsacards.tmp
lspci |grep -i "multi\|audio">/tmp/alsainfo/lspci.tmp

#Check for HDA-Intel cards codec#0
cat /proc/asound/card0/codec\#* > /tmp/alsainfo/alsa-hda-intel.tmp 2> /dev/null

#Fetch the info, and put it in $FILE in a nice readable format.
echo "name=$USER&type=33&description=/tmp/alsa-info.txt&expiry=&s=Submit+Post&content=" > $FILE
echo "!!################################" >> $FILE
echo "!!ALSA Information Script v $SCRIPT_VERSION" >> $FILE
echo "!!################################" >> $FILE
echo "" >> $FILE
echo "!!Script ran on: `date`" >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!Linux Distribution" >> $FILE
echo "!!------------------" >> $FILE
echo "" >> $FILE
echo $DISTRO >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!Kernel Information" >> $FILE
echo "!!------------------" >> $FILE
echo "" >> $FILE
echo "Kernel release:    $KERNEL_VERSION" >> $FILE
echo "Operating System:  $KERNEL_OS" >> $FILE
echo "Architecture:      $KERNEL_MACHINE" >> $FILE
echo "Processor:         $KERNEL_PROCESSOR" >> $FILE
echo "SMP Enabled:       $KERNEL_SMP" >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!ALSA Version" >> $FILE
echo "!!------------" >> $FILE
echo "" >> $FILE
echo "Driver version:     $ALSA_DRIVER_VERSION" >> $FILE
echo "Library version:    $ALSA_LIB_VERSION" >> $FILE
echo "Utilities version:  $ALSA_UTILS_VERSION" >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!Loaded ALSA modules" >> $FILE
echo "!!-------------------" >> $FILE
echo "" >> $FILE
cat /tmp/alsainfo/alsamodules.tmp >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!Soundcards recognised by ALSA" >> $FILE
echo "!!-----------------------------" >> $FILE
echo "" >> $FILE
cat /tmp/alsainfo/alsacards.tmp >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!PCI Soundcards installed in the system" >> $FILE
echo "!!--------------------------------------" >> $FILE
echo "" >> $FILE
cat /tmp/alsainfo/lspci.tmp >> $FILE
echo "" >> $FILE
echo "" >> $FILE
echo "!!Advanced information - PCI Vendor/Device/Susbsystem ID's" >> $FILE
echo "!!--------------------------------------------------------" >> $FILE
echo "" >> $FILE
lspci -vvn |grep -A1 040[1-3] >> $FILE
echo "" >> $FILE
echo "" >> $FILE

if [ "$SNDOPTIONS" ]
then
echo "!!Modprobe options (Sound related)" >> $FILE
echo "!!--------------------------------" >> $FILE
echo "" >> $FILE
modprobe -c|sed -n 's/^options \(snd[-_][^ ]*\)/\1:/p' >> $FILE
echo "" >> $FILE
echo "" >> $FILE
fi

if [ -d $SYSFS ]
then
echo "!!Loaded sound module options" >> $FILE
echo "!!--------------------------" >> $FILE
echo "" >> $FILE
for mod in `cat /proc/asound/modules|awk {'print $2'}`;do
echo "!!Module: $mod" >> $FILE
for params in `ls $SYSFS/module/$mod/parameters/*`; do /bin/echo -ne "\t";/bin/echo "$params : `cat $params`"|sed 's:.*/::' >> $FILE;done
echo "" >> $FILE
done
echo "" >> $FILE
fi

if [ -s "/tmp/alsainfo/alsa-hda-intel.tmp" ] 
then
	echo "!!HDA-Intel Codec information" >> $FILE
	echo "!!---------------------------" >> $FILE
	echo "" >> $FILE
	cat /tmp/alsainfo/alsa-hda-intel.tmp >> $FILE
	echo "" >> $FILE
	echo "" >> $FILE
fi

#If no command line options are specified, then run as though --with-all was specified
if [[ -z "$1" ]]
then
	update
	withdevices
	withconfigs
	withaplay
	withamixer
	withlsmod
	#Workaround, while we sort out pastebin location, since pastebin.ca blocked us.
	#NOUPLOAD="1"
	
fi

#loop through command line arguments, until none are left.
if [[ -n "$1" ]]
then
	until [ -z "$1" ]
	do
	case "$1" in
		--update)
			update
			exit
			;;
		--no-upload)
			NOUPLOAD="1"
			KEEP_FILES="yes"
			withdevices
			withconfigs
			withaplay
			withamixer
			withlsmod
			;;
		--debug)
			echo "Debugging enabled. $FILE and $TEMPDIR will not be deleted"
			KEEP_FILES="yes"
			echo ""
			withdevices
			withconfigs
			withaplay
			withamixer
			withlsmod
			;;
		--with-all)
			withdevices
			withconfigs
			withaplay
			withamixer
			withlsmod
			;;
		--with-aplay)
			withaplay
			;;
		--with-amixer)
			withamixer
			;;
		--with-devices)
			withdevices
			;;
		--with-configs)
			if [[ -e $HOME/.asoundrc ]] || [[ -e /etc/asound.conf ]]
			then
				echo "!!ALSA configuration files" >> $FILE
				echo "!!------------------------" >> $FILE
				echo "" >> $FILE

				#Check for ~/.asoundrc
				if [[ -e $HOME/.asoundrc ]]
				then
					echo "!!User specific config file ($HOME/.asoundrc)" >> $FILE
					echo "" >> $FILE
					cat $HOME/.asoundrc >> $FILE
					echo "" >> $FILE
					echo "" >> $FILE
				fi

				#Check for /etc/asound.conf
				if [[ -e /etc/asound.conf ]]
				then
					echo "!!System wide config file (/etc/asound.conf)" >> $FILE
					echo "" >> $FILE
					cat /etc/asound.conf >> $FILE
					echo "" >> $FILE
					echo "" >> $FILE
				fi
			fi
			;;
		--about)
			echo "Written/Tested by the following users of #alsa on irc.freenode.net:"
			echo ""
			echo "	wishie - Script author and developer / Testing"
			echo "	crimsun - Various script ideas / Testing"
			echo "	gnubien - Various script ideas / Testing"
			echo "	GrueMaster - HDA Intel specific items / Testing"
			echo "	olegfink - Script update function"
			cleanup
			exit 0
			;;
		*)
			echo ""
			echo "Available options:"
			echo "	--with-aplay (includes the output of aplay -l)"
			echo "	--with-amixer (includes the output of amixer)"
			echo "	--with-configs (includes the output of ~/.asoundrc and /etc/asound.conf if they exist)" 
			echo "	--with-devices (shows the device nodes in /dev/snd/)"
			echo ""
			echo "  --update (check server for script updates)"
			echo "	--about (show some information about the script)"
			echo "	--debug (will run the script as normal, but will not delete $FILE)"
			cleanup
			exit 0
			;;
	esac
	shift 1
	done
fi

#Test that wget is installed, and supports --post-file. Upload $FILE if it does, and prompt user to upload file if it doesnt. 
if
WGET=$(which wget 2>/dev/null| sed 's|^[^/]*||' 2>/dev/null); [[ -n "${WGET}" ]] && [[ -x "${WGET}" ]] && [[ `wget --help |grep post-file` ]]
then
if [[ -n "$DIALOG" ]]
then
	if [[ -z $NOUPLOAD ]]; then
	wget -O - --tries=5 --timeout=60 --post-file=/tmp/alsa-info.txt http://pastebin.ca/quiet-paste.php?api=$PASTEBINKEY &>/tmp/alsainfo/wget.tmp || echo "Upload failed; exit"
	{ for i in 10 20 30 40 50 60 70 80 90; do
		echo $i
		sleep 0.2
	done
	echo; } |dialog --backtitle "$BGTITLE" --guage "Uploading information to www.pastebin.ca ..." 6 70 0
	fi
else

	if [[ -z $NOUPLOAD ]]; then
	echo -n "Uploading information to www.pastebin.ca ... " 
	wget -O - --tries=5 --timeout=60 --post-file=/tmp/alsa-info.txt http://pastebin.ca/quiet-paste.php?api=$PASTEBINKEY &>/tmp/alsainfo/wget.tmp &
	fi
fi
#Progess spinner for wget transfer.
if [[ -z "$DIALOG" ]]	
then
	i=1
	sp="/-\|"
	echo -n ' '
	while pgrep wget &>/dev/null
	do
	echo -en "\b${sp:i++%${#sp}:1}"
	done
fi

#See if tput is available, and use it if it is.	
if [[ -z $NOUPLOAD ]]; then
	if [[ -n "$TPUT" ]]
	then
		FINAL_URL=`tput setaf 1; grep "SUCCESS:" /tmp/alsainfo/wget.tmp |sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p';tput sgr0`
	else
		FINAL_URL=`grep "SUCCESS:" /tmp/alsainfo/wget.tmp |sed -n 's/.*\:\([0-9]\+\).*/http:\/\/pastebin.ca\/\1/p'`
	fi
fi
#Output the URL of the uploaded file.	
if [[ -z $DIALOG ]]
then
	echo -e "\b Done!"
	echo ""
	if [[ -n $NOUPLOAD ]]; then
		echo "You requested that your information was NOT automatically uploaded to the pastebin"
		echo ""
		echo "Your ALSA information can be seen by looking in $FILE"
		echo ""
	else
		echo "Your ALSA information is located at $FINAL_URL"
		echo "Please inform the person helping you."
		echo ""
	fi
fi
if [[ -n $DIALOG ]]
then
	if [[ -n $NOUPLOAD ]]; then
		dialog --backtitle "$BGTITLE" --title "Information collected" --msgbox "You requested that your information was NOT automatically uploaded to the pastebin\n\nYour ALSA information can be seen by looking in $FILE" 10 100
	else
		dialog --backtitle "$BGTITLE" --title "Information uploaded" --yesno "Would you like to see the uploaded information?" 5 100 
		DIALOG_EXIT_CODE=$?
	if [ $DIALOG_EXIT_CODE = 0 ]; then
		grep -v "alsa-info.txt" /tmp/alsa-info.txt >/tmp/alsainfo/uploaded.txt
		dialog --backtitle "$BGTITLE" --textbox /tmp/alsainfo/uploaded.txt 0 0
	fi
	fi
clear
if [[ -z $NOUPLOAD ]]; then
echo "Your ALSA information is located at $FINAL_URL"
echo "Please inform the person helping you."
echo ""
fi
fi 
	#We posted the file to pastebin.ca , so we dont need it anymore. delete it.
	if [ -z $KEEP_FILES ]
	then
		rm $FILE 
	fi

#We couldnt find a suitable wget, so tell the user to upload manually.
else
	if [[ -z $DIALOG ]]
	then
		echo ""
		echo "Could not automatically upload output to http://www.pastebin.ca"
		echo "Possible reasons are:"
		echo "    1. Couldnt find 'wget' in your PATH"
		echo "    2. Your version of wget is less than 1.8.2"
		echo ""
		echo "Please manually upload $FILE to http://www.pastebin.ca/upload.php and submit your post."
		echo ""
	fi
	if [[ -n $DIALOG ]]
	then
		dialog --backtitle "$BGTITLE" --msgbox "Could not automatically upload output to http://www.pastebin.ca.\nPossible reasons are:\n\n    1. Couldn't find 'wget' in your PATH\n    2. Your version of wget is less than 1.8.2\n\nPlease manually upload $FILE to http://www.pastebin.ca/upload.php and submit your post." 25 100
	fi
fi
#Clean up the temp files
if [ -z $KEEP_FILES ]
then
	cleanup
fi
 
Old 10-26-2007, 01:33 AM   #4
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
You need to save it and then run it. Save it to your home directory, then open a terminal window and type "sh alsa-info.sh". It will do the rest. After it runs, it will post the data to a website, and provide a link. I need that link.

Thanks,

Tobin
 
Old 10-26-2007, 02:24 AM   #5
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Original Poster
Rep: Reputation: 15
sh alsa-info.sh
ALSA Information Script v 0.4.34
--------------------------------

This script will collect information about your ALSA installation and sound related hardware, to help diagnose your problem.

By default, the collected information will be AUTOMATICALLY uploaded to a pastebin site.
If you do not wish for this to occur, run the script with the --no-upload argument

Do you want to run this script? [y/n] : y
Uploading information to www.pastebin.ca ... Done!

Your ALSA information is located at http://pastebin.ca/750109

Please inform the person helping you.
 
Old 10-26-2007, 08:46 AM   #6
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Ok, that last link is what I needed. Based on that information, I can tell that you need to upgrade your driver first. You are running 1.0.12rc1 (very old). You can download the latest from http://alsa-project.org. If you have problems building the drivers from the source, let me know. I have a build environment that will create a set of rpm files for your distribution.

Once you have the new drivers installed, there are a couple of model entries you should try. They are:

laptop
3stack
laptop_automute

To change the model, edit /etc/modprobe.d/options, and add the following line:

option snd-hda-intel model="<model>" # replace <model> with one of the three above.

Let me know which of these works best for your system. Test all of the outputs and the mic lines. Once we have established which is the best, I can add it to the alsa-driver for future use.

Tobin
 
Old 10-26-2007, 11:00 PM   #7
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Original Poster
Rep: Reputation: 15
hi
I have download all the packages from the net but iam facing problem in installing them
kindly help me out
 
Old 10-27-2007, 01:22 PM   #8
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Ok, the easiest thing would be for you to download this file. It contains my build environment for rebuilding driver, libs, and utils packages for rpm based distributions. Once you have downloaded the file, make sure you have the tools needed for building programs and kernel drivers. Usually, installing kernel-devel and rpmbuild is enough (most distros will get any other needed packages based on these selections). Now, just follow this procedure (comments begin with #):

tar -jxvf my-build.tar.bz2 # this will expand the build environment
cd my-build
sudo su # need root access at this point.
make # this will take ~3-7 minutes depending on system speed and other running applications - go refill your coffee
lsof /dev/snd/* # check for programs that are using the sound system - shutdown any programs listed
./audio_install # this will install everything you just built. Need the "./" because most systems won't search in the current working directory for executables


That's it. Sound should be installed now. The last thing to do is follow my previous instructions on testing which model setting works. Let me know if you have problems.
 
Old 10-28-2007, 11:14 PM   #9
utkarshrawat
Member
 
Registered: Jul 2007
Posts: 120

Original Poster
Rep: Reputation: 15
As per your saying when i run make command

Code:
make # this will take ~3-7 minutes depending on system speed and other running applications - go refill your coffee
I finded out some errors

Code:
checking for directory with kernel source... /lib/modules/2.6.18-8.el5xen/source
checking for directory with kernel build... /lib/modules/2.6.18-8.el5xen/build
checking for kernel linux/version.h... no
The file /lib/modules/2.6.18-8.el5xen/source/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/2.6.18-8.el5xen/source).
error: Bad exit status from /var/tmp/rpm-tmp.925 (%build)


RPM build errors:
    user tobind does not exist - using root
    group tobind does not exist - using root
    user tobind does not exist - using root
    group tobind does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.925 (%build)
make: *** [alsa-driver-1.0.15-rh5-2.6.18-8.el5xen.i386.rpm] Error 1
Even when i individually tried to installed rpm's ,i got error

Code:
 rpm -i alsa-driver-1.0.15-1.src.rpm 
warning: user tobind does not exist - using root
warning: group tobind does not exist - using root
warning: user tobind does not exist - using root
warning: group tobind does not exist - using root
 
Old 10-29-2007, 01:07 AM   #10
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Quote:
checking for kernel linux/version.h... no
The file /lib/modules/2.6.18-8.el5xen/source/include/linux/version.h does not exist.
Please install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /lib/modules/2.6.18-8.el5xen/source).
error: Bad exit status from /var/tmp/rpm-tmp.925 (%build)
The error you see has nothing to do with file ownership or permissions. You need to install the kernel development package (kernel-devel, kernel-source, kernel-headers). I'm not sure which package has the kernel source for RHEL5.
 
Old 10-29-2007, 11:29 AM   #11
BeePee007
LQ Newbie
 
Registered: Oct 2007
Posts: 17

Rep: Reputation: 0
@ utkarshrawat,

Can you please have a look at my thread since I'm stuck with a very similar problem. Many, many thanks
 
Old 11-01-2007, 07:55 PM   #12
BeePee007
LQ Newbie
 
Registered: Oct 2007
Posts: 17

Rep: Reputation: 0
Solved my problem
Created a /etc/modprobe.d/options:
Code:
options snd-hda-intel model="3stack"
That "s" threw me off track at first...
 
Old 11-03-2007, 08:16 AM   #13
adamboy007
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
I have a problem with alsa. After reinstalling my mandriva 2008 and after setting that up it's playing back my sound sissly (not clean),and now i have two digital channel, but i can select just one of them. I don't know if the new packeges would do this? (installing alsaconf package it's also download tvtime television viewer, I think the second digital is for this packet but after uninstall it there is still 2 digital channel).With 1 digital the sound was perfect. Thanks for any help.
(sorry my english)
 
Old 11-03-2007, 09:18 AM   #14
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
adamboy007: I don't know anything about your system. Run the script I posted earlier, and post the link it generates so I can look at your information.
 
Old 11-03-2007, 01:58 PM   #15
adamboy007
LQ Newbie
 
Registered: Nov 2007
Posts: 10

Rep: Reputation: 0
I send it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound problem at openSuSE 10.2. Sound card unidentified perfectly Fakhri Linux - Hardware 0 04-29-2007 10:01 PM
Sound problem - choppy sound - skype and gizmo robertpolson Linux - Hardware 0 01-29-2007 09:53 AM
i have problem with sound in ATI SB600 chipset,i not hear sound on it jodiedupri Linux - Hardware 0 01-26-2007 08:30 AM
Other problem with the sound in Mandrake - onboard sound card Swetko Linux - Hardware 24 06-19-2006 03:27 PM
Sound problem after installing/uninstalling JACK sound server bastupungen Linux - Software 1 02-28-2004 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration