LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   No sound in Debian Etch 4 with Realtek Ac97 (https://www.linuxquestions.org/questions/linux-hardware-18/no-sound-in-debian-etch-4-with-realtek-ac97-590280/)

funalien 10-08-2007 10:01 AM

No sound in Debian Etch 4 with Realtek Ac97
 
Hi all,
I have a problem with sound in Debian Etch. Some time ago I installed Debian, and the sound hasn't been working since that time. I have a built-in soundcard Realtek AC97.

I tried to run "alsaconf", but nothing changed after this. At the end it only displays "Thanks, now you'll hear a sound", but still no sound.
I have been reading posts about this problem, however I have found any helpful tips.

Here can be found more information about the causes sound not to being heard.

dmesg:


Code:

# lsmod|grep snd
snd_intel8x0          30620  0
snd_ac97_codec        83360  1 snd_intel8x0
snd_ac97_bus            2688  1 snd_ac97_codec
snd_pcm_oss            39200  0
snd_mixer_oss          15552  1 snd_pcm_oss
snd_pcm                68996  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              21316  1 snd_pcm
snd                    47524  6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              9568  1 snd
snd_page_alloc          9928  2 snd_intel8x0,snd_pcm


Code:

# lspci -vv
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
        Subsystem: EPoX Computer Co., Ltd. Unknown device 1008
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 0 (500ns min, 1250ns max)
        Interrupt: pin A routed to IRQ 185
        Region 0: I/O ports at d800 [size=256]
        Region 1: I/O ports at dc00 [size=128]
        Region 2: Memory at e2002000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-


kaz2100 10-08-2007 03:03 PM

Hya,

AC97 may (or may not) need options. Read kernel document (Documentation/sound/ALSA-Configuration-txt)

Happy Penguins!

funalien 10-09-2007 10:28 AM

Any other suggestions?

jeenam 10-09-2007 11:55 AM

Is the volume unmuted or turned up? Use 'alsamixer' to adjust the volume.

After the volume level is set use 'alsactl store' to save the settings.

funalien 10-09-2007 12:37 PM

Yes, sound in alsamixer have been always turned to 100%

Matz 10-09-2007 02:51 PM

Follow the suggestion made by kaz2100. In the ALSA home page you find detailed instruction for installing ALSA latest source
This is likely to fix your issue.

If compiling the source is too difficult for you, you can find a .deb version of alsa source to install, for example

http://debian.mirror.inra.fr/debian/...0.14-2_all.deb

Hope this helps

Jack_The_Nimble 10-10-2007 01:54 AM

What type of computer do you use? I have a gateway mx3228 laptop and am having the exact same problem with the same sound card. Just to let you know others are having the same problem. As for the things I've tried: various and sundry combinations of mute and unmute in alsa mixer, alsaconf, and various options under KDE control center. If anything has worked for you please help. As far as alsaconf goes it recognizes two separate sound cards, neither of which are mine. I'm heading over to the alsa home page to read their stuff now. Thanks for the expedient reply.

funalien 10-10-2007 10:41 AM

Quote:

What type of computer do you use? I have a gateway mx3228 laptop and am having the exact same problem with the same sound card. Just to let you know others are having the same problem. As for the things I've tried: various and sundry combinations of mute and unmute in alsa mixer, alsaconf, and various options under KDE control center. If anything has worked for you please help. As far as alsaconf goes it recognizes two separate sound cards, neither of which are mine. I'm heading over to the alsa home page to read their stuff now. Thanks for the expedient reply.
I use a desktop computer with nvidia with REALTEK AC97 soundcard intergrated into motherboard. As I've alredy said, anything hasn't worked since I have installed linux. In windows is everything OK with sound. Unfortunatelly I haven't got the answer to this problem, yet.

funalien 10-10-2007 11:33 AM

While I was installing official Realtek sound drivers based on ALSA, a message was shown. It writes me to select my soundcard (snd_mpu_401 and legacy Probe legacy ISA).

If I select snd_mpu_401, then it's written
Code:

Loading driver...
FATAL: Error inserting snd_mpu401 (/lib/modules/2.6.18-5-k7/kernel/sound/drivers/mpu401/snd-mpu401.ko): No such device
FATAL: Error running install command for snd_mpu401
Setting default volumes...


ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
aplay: main:550: audio open error: Device or resource busy

What can I do?

Jack_The_Nimble 10-10-2007 11:56 AM

To be honest I just installed etch myself having not used Linux in about a year and everything is still real foggy. I'm looking for help just like you. Where did you get the driver for AC 97?

funalien 10-10-2007 01:14 PM

I have downloaded driver from this site

Jack_The_Nimble 10-10-2007 01:48 PM

Which link did you use, I see that the drivers available are for the 2.2 and the 2.4 kernal, it is unlikely, yet possible, that they are not supported in the 2.6 kernal that Etch uses. Was the driver you downloaded was binary, source or a .deb package?

Matz 10-11-2007 02:08 AM

funalien, did you try to compile the alsa source? Follow the instruction you find in this page and if you have problems report them here

Jack_The_Nimble 10-11-2007 02:32 AM

I know I'm not Funalien, but I'm having a problem too.... I am trying to compile the alsa module but I get stuck, on the how to after you type " modinfo soundcore " and it gives you the output it says to type ./configure. I was in my /home directory when I did this, so as I'm sure you can guess it did nothing. What directory should I be under? Here's the output from mondinfo:

debian-Killa:/home/jamison# modinfo soundcore
filename: /lib/modules/2.6.18-5-686/kernel/sound/soundcore.ko
description: Core sound module
author: Alan Cox
license: GPL
alias: char-major-14-*
vermagic: 2.6.18-5-686 SMP mod_unload 686 REGPARM gcc-4.1
depends:
debian-Killa:/home/jamison# ./configure
bash: ./configure: No such file or directory

funalien 10-11-2007 05:11 AM

Quote:

Which link did you use, I see that the drivers available are for the 2.2 and the 2.4 kernal, it is unlikely, yet possible, that they are not supported in the 2.6 kernal that Etch uses. Was the driver you downloaded was binary, source or a .deb package?
Yes, you are right! I have downloaded the driver's source for 2.6 kernel. However, I think it is not causes hardware not to be found.
Now I'll try to compile alsa driver manually from source.
Quote:

funalien, did you try to compile the alsa source? Follow the instruction you find in this page and if you have problems report them here
No, I don't. So I will try now.

funalien 10-11-2007 06:48 AM

I tryed to install alsa from source, but it writes that I can't install additional ALSA driver, while I have build-in kernel. So, I installed alsa from .deb packages from repo.

Matz 10-11-2007 07:34 AM

Quote:

Originally Posted by funalien (Post 2920696)
I tryed to install alsa from source, but it writes that I can't install additional ALSA driver, while I have build-in kernel. So, I installed alsa from .deb packages from repo.

???? What does it means? If you can't install an additional driver why should you be able to install it from repository? Can you post the exact output you get? Unless you fixed your issue by installing from repo

@Jack

Maybe from alsa website it is not entirely clear that you first have to download the sources from http://www.alsa-project.org/main/index.php/Main_Page. Download the latest version of alsa-driver, alsa-lib, and alsa-utils (latest version is 1.0.14)

Then unzip the sources into proper directories. The suggestion from the alsa page is
Code:

     
cd /usr/src
mkdir alsa
cd alsa
cp /downloads/alsa-* .

(/download is the directory where you are supposed have downloaded the sources)

..then follow the instruction from "Now unzip and install the alsa-driver package:"

Jack_The_Nimble 10-12-2007 01:44 AM

I'm having the same problem as Funalien, my output is as follows

Code:

debian-Killa:/usr/src/alsa/alsa-driver-1.0.15rc3# ./configure
 --with-cards=intel8x0 --with-sequencer=yes ; make ; make ins
tall
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included..
. yes
checking whether gcc needs -traditional... no
checking for current directory... /usr/src/alsa/alsa-driver-1
.0.15rc3
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel linux/version.h... no
The file /usr/src/linux/include/linux/version.h does not exis                                        t.
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 /usr/src/linux).
make all-deps
make[1]: Entering directory `/usr/src/alsa/alsa-driver-1.0.15                                        rc3'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/usr/src/alsa/alsa-driver-1.0.15r                                        c3'

Please, run the configure script as first...

if [ -L /include/sound ]; then \
                rm -f /include/sound; \
                ln -sf /usr/src/alsa/alsa-driver-1.0.15rc3/in                                        clude/sound /include/sound; \
        else \
                rm -rf /include/sound; \
                install -d -m 755 -g root -o root /include/so                                        und; \
                for f in include/sound/*.h; do \
                        install -m 644 -g root -o root $f /in                                        clude/sound; \
                done \
        fi
install: cannot stat `include/sound/*.h': No such file or dir                                        ectory
make: *** [install-headers] Error 1

Edit: I understand what this is saying, that I just need to use the --with-kernal=directory, but I can't find the thing... I know that is the most ridiculous thing you've ever heard, but I don't know where it is. Funalien and myself are both using Debian Etch and he is probably having the same problem I am with this, so if you could just tell where the kernal is, obviously not /usr/src/linux, I'm sure the problem will be resolved.

Matz 10-14-2007 03:22 AM

You likely need to install linux-headers. Also install "build-essential"
Code:

apt-get install linux-headers-`uname -r` build-essential
and then try again

Jack_The_Nimble 10-15-2007 10:46 PM

Okay, I got the sound working the other day if funalien is still out there this is what I did. I started by compiling a new kernel because there was no file in the root directory linking my kernel, this could be because I chose to have a separate partition for my boot files, there is a great how to at http://newbiedoc.sourceforge.net/system/kernel-pkg.html that you how to use the Debian tools, these really help. Then once you compile your kernel the alsa compilation will run smoothly. ll you have to do is run alsaconf and roll and, alsaconf should see your card this time so just unmute everything and you'll have sound.

LoxDon 01-31-2008 07:15 AM

Possible Hardware Conflict?
 
I am new to openSUSE (trying to abandon Windows). I had similar audio problems after trying several fixes. Then, I noticed a problem with a memory buffer size in the startup log. I have Phoenix BIOS and went to BIOS Setup:Advanced Chipset Features. I changed the iGPU Frame Buffer Control to [MANUAL] and increased the Frame Buffer Size[128M]. It may be coincidence but my sound worked OK even after several re-boots. I then installed the NVIDIA video drivers and lost my sound again. Suspecting a hardware conflict, I disabled 3D acceleration and my sound works again. It may be coincidence but it's worth trying increasing your BIOS frame buffer size and disabling 3D acceleration.

New info: Automatic software update installed a new kernal and killed my sound. Now, I cannot turn 3D-acceleration off or install my original alsa drivers because of conflicts. This is too much for one day; I think I will go mow the grass and think about it for a while.

More Info: I have a conflict between alsa-driver-kmp-default and x11-video-nvidiaG01. After the new kernel was installed, I had no sound. Installing alsa driver deleted nvidia, installed a new kernal, and I had sound. Installing nvidia video deleted alsa driver, installed a new kernel, and I lost sound again.

After re-installing alsa, running alsaconf, sax2 -r, and turning up the volume I have sound after several re-boots (wav, mp3, midi, kar, avi, divx, & dvd all work.) I lost some of my video capabilities but I can get 1280x1024 with no 3D which is all I need.

Software update wants to install a new security update (kernel 4943-0) but I think I will wait for a while. I am not quite ready to compile & maintain the kernel myself...


All times are GMT -5. The time now is 10:43 AM.