Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I run the audio configuration I get:
The following audio device was detected:
Vendor: nVidia
Model Coporation GF100 High Definition Audio Controller
Module snd-hda-intel
but I do not hear sound.
The ALSA driver version is 1.0.14rc3
Lib package is: 1.0.17.-1.e15
Utils package is: 1.0.17-1.e15
------ System Config Soundcard Log --------
Tue Feb 15 17:15:00 CST 2011
aplay: main:583: audio open error: No such file or directory
/etc/modprobe.conf file has:
alias eth0 tg3
alias scsi_hostadapter ata_piix
alias scsi_hostadapter1 ahci
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
options snd-hda-intel index=0
remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel
The audio configuration sound test and the answer to the question No returns a message that says: automatic detection of sound card did not work. I am not sure what else is needed to diagnose the problem.
Thanks for your help.
=========================================
Info
=========================================
Thank you all.
When one is new, even what to search for is an overwhelming process. I looked around but got lost. Anyway, I do not see alsa running:
alsamixer
No mixer elems found
and I did not find alsaconf (found a directory but nothing to run).
So I downloaded the alsa-driver-1.0.9rc4a, alsa-lib-1.0.24.1 and alsa-utils-1.0.24.2 and following the instructions, I was trying <make> and ran into the problem below. I could not locate a modversions.h anywhere in the system and I did not find a way to create it. Am I on the right track, shall I pursue this path or I am in the wrong direction?
Thanks for your help again.
make[1]: Entering directory `/usr/share/alsa-driver-1.0.9rc4a/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/usr/share/alsa-driver-1.0.9rc4a/include -I/lib/modules/2.6.18-238.el5/build/include -I/lib/modules/2.6.18-238.el5/source/include -O2 -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -fno-strength-reduce -finline-limit=2000 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include /lib/modules/2.6.18-238.el5/source/include/linux/modversions.h -DKBUILD_BASENAME=hpetimer -c -o hpetimer.o hpetimer.c
cc1: error: /lib/modules/2.6.18-238.el5/source/include/linux/modversions.h: No such file or directory
In file included from /usr/share/alsa-driver-1.0.9rc4a/include/sound/driver.h:29,
from hpetimer.c:22:
/lib/modules/2.6.18-238.el5/build/include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
In file included from /lib/modules/2.6.18-238.el5/build/include/linux/spinlock.h:86,
from /lib/modules/2.6.18-238.el5/build/include/linux/capability.h:45,
from /lib/modules/2.6.18-238.el5/build/include/linux/sched.h:44,
from /lib/modules/2.6.18-238.el5/build/include/linux/module.h:9,
from /usr/share/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /usr/share/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.18-238.el5/build/include/asm/spinlock.h: In function ‘__raw_spin_lock’:
/lib/modules/2.6.18-238.el5/build/include/asm/spinlock.h:43: error: expected ‘:’ or ‘)’ before ‘hpetimer’
In file included from /lib/modules/2.6.18-238.el5/build/include/linux/sched.h:57,
from /lib/modules/2.6.18-238.el5/build/include/linux/module.h:9,
from /usr/share/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /usr/share/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h: In function ‘down’:
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h:112: error: expected ‘:’ or ‘)’ before ‘hpetimer’
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h: In function ‘down_interruptible’:
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h:137: error: expected ‘:’ or ‘)’ before ‘hpetimer’
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h: In function ‘down_trylock’:
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h:161: error: expected ‘:’ or ‘)’ before ‘hpetimer’
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h: In function ‘up’:
/lib/modules/2.6.18-238.el5/build/include/asm/semaphore.h:184: error: expected ‘:’ or ‘)’ before ‘hpetimer’
In file included from /usr/share/alsa-driver-1.0.9rc4a/include/adriver.h:674,
from /usr/share/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.18-238.el5/build/include/linux/pci.h: At top level:
/lib/modules/2.6.18-238.el5/build/include/linux/pci.h:625: error: expected identifier or ‘(’ before numeric constant
make[1]: *** [hpetimer.o] Error 1
make[1]: Leaving directory `/usr/share/alsa-driver-1.0.9rc4a/acore'
make: *** [compile] Error 1
That's a very OLD version of ALSA. And snd-hda-intel is fairly new. 1.0.14 -> 1.0.15 -> 1.0.16 had some pretty major snd-hda-intel changes. 1.0.24 just got released. Your version is like two plus years old.
In either case, alsa probably isn't running.
$ cat /proc/asound/cards
$ lsmod | grep -i "snd"
If no hits, no sound, or anything that might resemble sound drivers in use. Baring some form of actual OSS and the likes. (rare)
I'd reinstall the driver, firmware, libraries, plugins, utilities, and tools from http://www.alsa-project.org/main/index.php/Download. Then run alsaconf. Then after that run alsamixer as root. Set your volume levels, then run alsactl store to save the volume settings permanently. That should do it.
/proc/asound/cards shows that it's working and assigned.
alsamixer should let you set the levels. F1 for help on that one. ESC to exit. And be sure to unmute the channels you want to use. You should have sound according to what you posted.
It could be that hda-intel is with your graphics card and not your integrated soundcard. i.e. audio over HDMI. Or other things.
If you have sox installed.
$ play -n synth 5 sine 440 gain -1
That should play a sine wave at pitch 440Hz for 5 seconds at near, but not at max volume.
You could have things running interference. Pulse audio, artsd, esd, jackd, and other things that can take over audio responsibilities and block access depending on what is trying to use the soundcard and how. Many players let you select the output device / method, but not all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.