Problem on my Sony Vaio runnin Mandrake 8
Latest news, Help & Support, or discuss issues with *nix and Linspire systems.

Moderators: Management, Forum Experts

Postby lilwip on Mon Jan 20, 2003 7:01 pm

k, got OPL3.o.tgz, OPL3sa.0.tgz and OPL3sa2.o.tgz...

So we are in good fortune. What next?
=====

Image
User avatar
lilwip
PROfessional Member
 
Posts: 1419
Joined: Thu Aug 08, 2002 1:15 pm
Location: Independence, Missouri

Postby Weaver on Mon Jan 20, 2003 7:28 pm

Now is where the fun stuff comes in.

Before we start probing modules. We need to learn a few commands.

The first one is "lsmod" This lists all current modules loaded, you can do it at any time to see all modules currently loaded.

The second command is "rmmod" This removes (unloads) a loaded module.

The last one is "modprobe" This is a high-level way to load modules, it checks dependencies (relieving you of this task) and tries tries to load the module and any modules it depends on, in a sane matter.

One very important thing about modules are their dependencies. For example, a lot of sound cards/chips etc are AC 97 complaint. So let's say my ESS Allegro is AC 97 complaint. Well, when I "modprobe essallegro" it will load the ESS Allegro, but it depends on the ac_97 module as well, so that will also be loaded.

The only reason I say this is because when doing an "lsmod" you may see more modules than you actually modprobed, this is because the depended modules are being loaded as well. If a module doesn't work, you can just rmmod it and try again.

You said your card was an OPL3saX, let's start with OPL3sa.o.tgz

$ modprobe OPL3sa

Notice I did not use .o or the .tgz, when loading modules you just nix the extensions, as a matter of fact they will not work with the extensions.

If you get a lot of garbage when you try to modprobe, chances are something is not right. In this case, just "lsmod" and "rmmod" the modules that may or may not have been loaded (sometimes they will load even if they don't work).

Go down the line until one works (doesn't spit a whole bunch of text at you).

How do actually know it works? Well, most modules mount themselves on the device /dev/mixer Actually I haven't ever seen anything else. Other possibilities, depending on kernel version and distro are /dev/dsp /dev/sound But I have never run into these.

Back to the game, when you get one that "seems" to work try and play some audio (I use command line mp3 players like mpg321) A nice command line mixer is rexima. You may or may not have it.

Hopefully that works for you. Sorry for the length, let me know if you have any more questions or problems. I am going to go get something to eat...

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
User avatar
Weaver
PROfessional Member
 
Posts: 2240
Joined: Tue Jun 18, 2002 8:05 pm
Location: /home/weaver/

Postby lilwip on Mon Jan 20, 2003 10:07 pm

Weaver, you are SUCH the man! Awesome... sound is working like a charm now. :) Thank you so much for your assistance!
=====

Image
User avatar
lilwip
PROfessional Member
 
Posts: 1419
Joined: Thu Aug 08, 2002 1:15 pm
Location: Independence, Missouri

Postby Weaver on Mon Jan 20, 2003 10:29 pm

Glad to hear it is working, now you are going to want to add the appropriate lines to your startup configs to make sure the proper module gets loaded everytime the machine boots.

Since I have really never used Mandrake, I have no idea where their configs are stored. I would assume in /etc/rc.d/ You need to find your rc.local and put the command in there.

So open up your /etc/rc.d/rc.local and insert the line

modprobe OPL3sa

Then write the file and save it, this will make sure that the module gets loaded everytime.

-Weaver

PS Side note: You could have gone into rc.modules (if you can find it) and just uncomment the appropriate line as well. Pot8o/Potato.
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
User avatar
Weaver
PROfessional Member
 
Posts: 2240
Joined: Tue Jun 18, 2002 8:05 pm
Location: /home/weaver/

Previous

Return to Unix & Linux

Who is online

Users browsing this forum: No registered users and 0 guests