LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-13-2005, 02:35 AM   #1
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Rep: Reputation: 0
Newbie on Linux : pb with AC97 !?


Hello,

It's the first time I succeed installation on my laptop with linux mandriva limited edition. I am happy and I am excited to use it.

The only problem I have is that I have no sound at all.
When I look the tips given by the troubleshooting button, I find that the step 2 in inspecting the modules.conf file, this file is empty ! But the installation of linux was good ?

Do I have to do something special to fill it ? Or do I have miss some step in the installation ?

Somebody can help me because I don't know what I have to do to get some sound .

Thanks,

Dominique
 
Old 08-13-2005, 02:48 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there and welcome to LQ,
please post your hardware specifications. it helps a lot.
post the output of
Code:
lsmod
and also try to run
Code:
alsaconf
there are a lot of threads about that here. try a search.
regards
slackie1000
 
Old 08-13-2005, 03:01 AM   #3
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Here is the result of lsmod :

----------------------------------------
Module Size Used by
sg 34268 0
scsi_mod 115784 1 sg
raw 6720 1
ipt_TOS 1888 12
ipt_REJECT 5600 4
ipt_pkttype 1248 4
ipt_LOG 6208 8
ipt_state 1376 14
ipt_multiport 2144 0
ipt_conntrack 1984 0
iptable_mangle 2080 1
ip_nat_irc 1568 0
ip_nat_tftp 1280 0
ip_nat_ftp 2272 0
iptable_nat 19068 3 ip_nat_irc,ip_nat_tftp,ip_nat_ftp
ip_conntrack_irc 70384 1 ip_nat_irc
ip_conntrack_tftp 3056 1 ip_nat_tftp
radeon 74464 1
drm 58388 2 radeon
ip_conntrack_ftp 71344 1 ip_nat_ftp
ip_conntrack 37400 9 ipt_state,ipt_conntrack,ip_nat_irc,ip_nat_tftp,ip_nat_ftp,iptable_nat,ip_conntrack_irc,ip_conntrack_ tftp,ip_conntrack_ftp
iptable_filter 2144 1
ip_tables 18176 10 ipt_TOS,ipt_REJECT,ipt_pkttype,ipt_LOG,ipt_state,ipt_multiport,ipt_conntrack,iptable_mangle,iptable_ nat,iptable_filter
md5 3648 1
ipv6 232320 14
rfcomm 33692 0
l2cap 20644 5 rfcomm
bluetooth 41380 4 rfcomm,l2cap
snd-seq-dummy 2596 0
snd-seq-oss 31584 0
snd-seq-midi-event 6208 1 snd-seq-oss
snd-seq 47472 5 snd-seq-dummy,snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 49056 0
snd-mixer-oss 17248 1 snd-pcm-oss
snd-via82xx 23040 1
snd-ac97-codec 75256 1 snd-via82xx
snd-pcm 80776 3 snd-pcm-oss,snd-via82xx,snd-ac97-codec
snd-timer 20324 2 snd-seq,snd-pcm
snd-page-alloc 7588 2 snd-via82xx,snd-pcm
gameport 3328 1 snd-via82xx
snd-mpu401-uart 5920 1 snd-via82xx
snd-rawmidi 19648 1 snd-mpu401-uart
snd-seq-device 6796 4 snd-seq-dummy,snd-seq-oss,snd-seq,snd-rawmidi
snd 46980 13 snd-seq-oss,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 7104 1 snd
af_packet 16232 2
floppy 54736 0
rt2500 170592 1
pcmcia 18632 4
yenta_socket 19720 3
rsrc_nonstatic 9056 1 yenta_socket
pcmcia_core 41504 3 pcmcia,yenta_socket,rsrc_nonstatic
tulip 47840 0
eth1394 17160 0
ide-cd 36772 0
ohci1394 31076 0
ieee1394 292152 2 eth1394,ohci1394
loop 13544 0
nls_iso8859-15 4288 2
ntfs 205368 2
supermount 32660 1
via-agp 7424 1
agpgart 28264 2 drm,via-agp
nvram 6984 0
tsdev 6016 0
evdev 7744 1
usbmouse 4640 0
usbhid 43712 0
uhci-hcd 28944 0
usbcore 106008 4 usbmouse,usbhid,uhci-hcd
ext3 123304 2
jbd 48344 1 ext3
----------------------------------------

Thanks for your help.
 
Old 08-13-2005, 03:22 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
$su -
$alsamixer
Configure bars with arrows, enable or disable service with "m" key.
When done ESC
#alsactl store

If you have 5.1 speaker system, be sure that LFE channels bars are all way down and [off]. LFE channel is to generate 5.1 emulation matrix on 4 speaker systems.


P.S. KEEP IN MIND THAT SOUND SYSTEM WON'T WORK AFTER THAT PROCEDURE. REBOOT NEEDED!
 
Old 08-13-2005, 09:59 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
Quote:
Originally posted by SlackerLX
P.S. KEEP IN MIND THAT SOUND SYSTEM WON'T WORK AFTER THAT PROCEDURE. REBOOT NEEDED! [/B]
nope.. you can "modprobe -r" and "modprobe" again.
this will reload the sound modules and set the volumes.
in theory, you only need to reboot if you changed something with the kernel...
regards
slackie1000
 
Old 08-14-2005, 05:36 PM   #6
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Original Poster
Rep: Reputation: 0
$ su -
# alsamixer
give me this result :
-----
alsamixer: function snd_ctl_open failed for default: No such file or directory
-----

What does it mean ?

And modprobe -r build something but modprobe without argument give me only the usage of thid commaznd !
 
Old 08-14-2005, 05:43 PM   #7
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
1. Go to http://www.alsa-project.org/
2. Download ALSA driver source, library source, alsa-oss, utils, and tools.
3. Unpack all as root in /usr/src
4. Go to directory /usr/src/alsa-driver-*
5. ./configure --with-sequencer=yes;make;make install
6. chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi
7. Go into alsa-lib
8. ./configure;make;make install
9. Go into alsa-utils
10. ./configure;make;make install
11. Go into alsa-oss
12. ./configure;make;make install
13. modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
14. alsaconf
15. alsamixer #set the volume
16. alsactl -store

- - This manual made by member shashir - -
 
Old 08-15-2005, 02:14 AM   #8
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your help SlakerLX.

Here is the result of what you tell me yo do :

------
[root@pir44-1-82-231-147-65 alsa-driver-1.0.9rc4a]# ./configure --with-sequencer=yes;make;make install
checking for gcc... gcc
checking for C compiler default output... 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 ANSI C... 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 egrep... 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-driver-1.0.9rc4a
checking cross compile...
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel version... The file /usr/src/linux/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 /usr/src/linux).
make all-deps
make[1]: Entering directory `/usr/src/alsa-driver-1.0.9rc4a'
make[1]: Rien à faire pour « all-deps ».
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.9rc4a'

Please, run the configure script as first...

rm -f /snd*.*o /persist.o /isapnp.o
make[1]: Entering directory `/usr/src/alsa-driver-1.0.9rc4a/acore'
Makefile:6: /usr/src/alsa-driver-1.0.9rc4a/Makefile.conf: No such file or directory
make[1]: *** Pas de règle pour fabriquer la cible « /usr/src/alsa-driver-1.0.9rc4a/Makefile.conf ». Arrêt.
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.9rc4a/acore'
make: *** [install-modules] Erreur 1
----

What's wrong with that ?
 
Old 08-15-2005, 06:28 AM   #9
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
Quote:
Originally posted by domiq
checking for directory with kernel source... /usr/src/linux
checking for directory with kernel build...
checking for kernel version... The file /usr/src/linux/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 /usr/src/linux).
that is your problem.. give the correct kernel path or install the sources..
regards
slackie1000
 
Old 08-15-2005, 11:04 AM   #10
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Lightbulb

Quote
--------------------------------------------------------------\
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).
--------------------------------------------------------------\

Here is the fish. I believe when you installed OS, you missed kernel sources package
BTW, also grab some C/C++ compilers, just in case if you missed some of them too
G'luck
 
Old 08-15-2005, 11:43 AM   #11
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Quote:
Originally posted by SlackerLX
Quote
--------------------------------------------------------------\
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).
--------------------------------------------------------------\

Here is the fish. I believe when you installed OS, you missed kernel sources package
BTW, also grab some C/C++ compilers, just in case if you missed some of them too
G'luck

and what i wrote?
SlackerLX, did you read the configure file of the alsa-driver? show me where it states that you need a C++ compiler...
did you read the output of ./configure command that domiq
gave... checking c compiler.. yes...so.. what is up? what is the meaning of your post?
regards
slackie1000
 
Old 08-15-2005, 12:05 PM   #12
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Your message wasn't there when I was writing. We probably did it at the same time
And yours got first. What's your problem?! It doen't matter who'a first. It's not a competition. What metters ir to help a guy
who's stuck. right?
 
Old 08-16-2005, 02:29 AM   #13
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks to all

How can I see if source kernel are installed?
I have done a "find / -name version.h" as root and here is what I got :

-----
/usr/src/alsa-driver-1.0.9rc4a/alsa-kernel/include/version.h
/usr/src/alsa-driver-1.0.9rc4a/include/version.h
/usr/src/alsa-lib-1.0.9rc4/include/version.h
/usr/src/alsa-tools-1.0.9rc4/ld10k1/include/version.h
/usr/src/alsa-utils-1.0.9rc4a/include/version.h
/usr/include/linux/dvb/version.h
/usr/include/linux/version.h
/usr/include/sound/version.h
/usr/include/alsa/version.h
-----

The version.h file seems to be in "/usr/include/linux/" directory !
What can I do to now to succeed the configure command?
 
Old 08-16-2005, 03:28 AM   #14
Ygarl
Member
 
Registered: Mar 2004
Location: London, UK
Distribution: Ubuntu Breezy and Dyne:Bolic
Posts: 64

Rep: Reputation: 15
Easy way to see if Kernel sources installed:
Run Configure System (or Drakconf) and look at the Package Management Section...

Look at the bit about 'Unistalling packages'... It'll list everything you have installed (search for 'kernel' if you have probs finding it).
Just don't uninstall, and it's an easy way to browse what you have installed. Excellect for that 'Now I know I have a network app - now what was that called, I can't run it!' moment!)
 
Old 08-16-2005, 07:53 AM   #15
domiq
LQ Newbie
 
Registered: Aug 2005
Distribution: Mandriva Limited Edition 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I got an error message when building alsa-utils :

./configure give me :
------
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No suchfile or directory
done
checking whether NLS is requested... yes
-----

And make give me :
-----
[root@pir44-1-82-231-147-65 alsa-utils-1.0.9rc4a]# make
µMaking all in include
make[1]: Entering directory `/usr/src/alsa-utils-1.0.9rc4a/include'
make all-am
make[2]: Entering directory `/usr/src/alsa-utils-1.0.9rc4a/include'
make[2]: Leaving directory `/usr/src/alsa-utils-1.0.9rc4a/include'
make[1]: Leaving directory `/usr/src/alsa-utils-1.0.9rc4a/include'
Making all in alsactl
make[1]: Entering directory `/usr/src/alsa-utils-1.0.9rc4a/alsactl'
make[1]: Rien à faire pour « all ».
make[1]: Leaving directory `/usr/src/alsa-utils-1.0.9rc4a/alsactl'
Making all in alsaconf
make[1]: Entering directory `/usr/src/alsa-utils-1.0.9rc4a/alsaconf'
Making all in po
make[2]: Entering directory `/usr/src/alsa-utils-1.0.9rc4a/alsaconf/po'
mv: ne peut évaluer `t-ja.gmo': No such file or directory
make[2]: *** [ja.gmo] Erreur 1
make[2]: Leaving directory `/usr/src/alsa-utils-1.0.9rc4a/alsaconf/po'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/src/alsa-utils-1.0.9rc4a/alsaconf'
make: *** [all-recursive] Erreur 1
-----

when I run alsamixer, I get an error message like that : "alsamixer: function snd_ctl_open failed for default: No such file or directory"
 
  


Reply



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
Newbie HELP!! - No Sound on Epox 8rda3+ c media ac97 chip ilottl Mandriva 1 05-16-2004 03:49 AM
ac97 codec help needed (from a newbie) linuxlinus Linux - Hardware 4 01-28-2004 08:26 PM
VT8233 AC97 codec hangs linux ahmetaa Linux - General 0 07-18-2003 12:09 AM
AC97 sound hard for a Newbie sulzla Linux - Newbie 13 06-25-2003 08:07 PM
ac97 mandrake linux Aphix Linux - Hardware 6 10-01-2002 09:23 AM

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

All times are GMT -5. The time now is 08:47 PM.

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