LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-23-2003, 04:07 AM   #1
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Rep: Reputation: 15
Into what directory does the sound driver go? And then what?


As a disclaimer, I have read and read and read, including the Sound-HOWTO, numerous threads and the driver README file and I can't figure this one out.

So, here I am. When I upgraded my kernel in RH9, I lost sound. I ran <<sndconfig>> to no avail, but my soundcard manufacturer provides a driver for Linux.

Thus, I downloaded it, gunzipped it, tar -xvf'ed it and I have a folder with numerous driver-related files in it. The README says to make; make install; and then adjust modules.conf.

But, what directory should the driver files reside in?
What about <<./configure>>?
When is the source code compiled?
Is further configuration required?
By doing this, am I creating a module?
What's all that stuff about "building sound into the kernel"?
Will it work?
Will it wreck my system, rendering it unstable?

Last question, is this over a 's head?
 
Old 05-23-2003, 04:20 AM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
Don't worry, your manurfacturer is being nice (who are they) in giving you a driver.

Basically, it is a module, which by performing the configure, make, make install commands will be configured, compiled and installed to the relevant place.

The configure makes sure you have the relevant stuff installed on the system to compile the driver.
make, does the compilation and linking that is required.
make install has to be as root (just type 'su' sans quotes to become the super user) and installs the module into the correct folder (and may do other installation steps).

So in answer to your other qusetions, just have faith that the make file (the configuration file for the make and make install steps) is correct and will install the relevant stuff where it needs to go.

Once its installed you will have to adjust /etc/modules.conf so that it will load the new sound driver. This should be told to you by either the documentation or by the driver compilation process. There may be a helpful little message at the end to tell you the next step.

After all that you should be singing along to kylie in no time :S

HTH

Alex

P.S. post back with any more questions, its what we're all here for.....
 
Old 05-23-2003, 05:18 AM   #3
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks, Alex

Ugh.

I typed in:

./configure
make
make install
make clean

Then, I edited modules.conf with the following changes:

#alias sound-slot-0 via82cxxx_audio
alias sound-slot-0 cmaudio

I commented out the via82cxxx_audio (to remember what it was in case I had to go back; and added the second line, per the README instructions. As you asked (and can see) it's a C Media sound card (onboard, in my case).

But, it worked not:

I get this error at KDE login:

"ERROR_aRtsmessage

Sound server fatal error:

AudioSubSystem : : handle 10 : write failed

len=168, can_write=4096, ermo=17 (file exists)

This might be a sound hardware/driver specific problem (see aRts FAQ)"

What does this error message mean?
Can it be fixed?
Can I back out to where I was?
 
Old 05-23-2003, 05:47 AM   #4
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
You can back out just by undoing what you were doing in the modules.conf file (good boy, kept his old settings....)

Anyway, looks like its just the aRts daemon from KDE throwing a strop. Once you get into KDE go to the control thingy, then sound and then disable it. Then restart X and hopefull things should be fine.

If not then we'll have to rethink (or do some searching).

I'm assuming that the problem has arisen because the aRts daemon doesn't know how to handle the drivers that you have (they;re not alsa drivers or the ones in the kernel).

HTH

Alex

P.S. try checking whether the sound works, at a console, try mpg123 an_mp3.mp3 see if it works. You may need to be in multi user console mode, not X. or atleast not in kde...

Last edited by webtoe; 05-23-2003 at 05:48 AM.
 
Old 05-26-2003, 03:36 PM   #5
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Original Poster
Rep: Reputation: 15
Bringing this one back up (I took a few days off from the problem), the introduction of the C Media sound driver has destablized my system to some degree, causing some boot operations to lag and a few quirks in desktop operation.

I started sniffing around at http://www.arts-project.org and learned at least a few things:

1. When I enter <<artsd>>, I get:

"Error while initializing the sound driver:
device /dev/dsp can't be opened (Resource temporarily unavailable)"

2. In the KDE Control Center, in the Sound tab, I get:

"No information available about Soundcard!"

3. It also appears that modules.conf reset itself to use:

alias sound-slot-0 via82cxxx_audio

rather than:

alias sound-slot-0 cmaudio

As a result, the error I posted in Post #3 has stopped coming up. However, the reference to the latter entry I made is completely gone.

4. In my /etc directory, I also have 3 modules.conf related files:

modules.conf
modules.conf~
modules.conf.bak

Can anyone tell me the difference among the 3 files?

5. Any thoughts?
 
Old 05-26-2003, 05:08 PM   #6
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
try
Code:
ls -l /dev/dsp
what does it output? your user has to be able to read/write to this file.

Does the sound work when you're root?

The three modules.conf look like backups. files with a ~ at the end are created by certain text editors (I know that Vi and derivatives do as well as pico/nano). One of them should contain your old file.

Alex
 
Old 05-26-2003, 05:21 PM   #7
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Original Poster
Rep: Reputation: 15
1. #ls - /dev/dep
crw------- 1 sab root 14, 3 Jan 30 02:24 /dev/dsp

2. There's no sound in root.

3. Interestingly, the modules.conf files only contain the old file. The system appears to have eliminated the change I made to the conf file.

4. And then, there's this (what I think intuitively is the root of the problem):

#cat /proc/pci |grep audio
Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio Controller (rev 80).

Now, I am a noob after all, but isn't this an indication that RH/KDE/Linux thinks I have a VIA card
 
Old 05-26-2003, 05:30 PM   #8
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
yes, what sort of card do you think that you have? its possible that your card actually runs a via chip, or that its a knock off or that linux is just stupid. not sure which is right.........

you could try searching on the net for info on that device, see what turns up.

sorry that that wasn't much use.

Alex
 
Old 05-26-2003, 05:45 PM   #9
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Original Poster
Rep: Reputation: 15
It's a C Media CMI9739/A onboard.

Actually, it was C Media that got me into the mess I'm in. They offer a driver for Linux and instructions at their site http://www.cmedia.com.tw on how to install the driver.

Clearly, they were inadequate !

I haven't the slightest idea how to do it, but it would seem to me that I need to teach my system the identity of my soundcard...

Thanks, Alex, for your help. I'll probably be back soon to work on it some more.
 
  


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
ATI driver/Sound Blaster Audigy 2 ZS driver help reldogz Linux - Newbie 0 09-05-2005 10:08 PM
Sound server informational message: Error while initializing the sound driver... LA004 Linux - Hardware 4 08-21-2005 09:25 PM
Redhat Nvidia driver, need access to CD-ROM directory russ lea Linux - Software 1 08-06-2005 02:12 PM
JMF detect sound driver and capture sound shan0004 Programming 0 01-10-2005 11:58 PM
Driver Directory cmrdrv Linux - General 1 10-30-2003 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration