From alsa-user-owner@alsa.jcu.cz  Mon Nov 16 06:34:49 1998
Received: from knot.iegroup.com (ns.iegroup.com [24.124.2.253])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id GAA21211
	for <alsa-user@jcu.cz>; Mon, 16 Nov 1998 06:34:09 +0100
Received: from knot.iegroup.com (root@localhost)
	by knot.iegroup.com with ESMTP id XAA00158
	for <alsa-user@jcu.cz>; Sun, 15 Nov 1998 23:34:07 -0600 (CST)
Received: from iegroup.com (pulsar.iegroup.com [10.0.1.5])
	by knot.iegroup.com with ESMTP id XAA00153
	for <alsa-user@jcu.cz>; Sun, 15 Nov 1998 23:34:07 -0600 (CST)
Received: from localhost by iegroup.com (8.8.8+Sun/SMI-SVR4)
	id XAA25513; Sun, 15 Nov 1998 23:34:07 -0600 (CST)
Date: Sun, 15 Nov 1998 23:34:06 -0600 (CST)
From: John Fulmer <jfulmer@iegroup.com>
To: alsa-user@jcu.cz
Subject: Re: gus pnp
In-Reply-To: <364F3638.A3BBB214@westbrabant.net>
Message-ID: <Pine.GSO.3.96.981115231516.25431A-100000@pulsar.iegroup.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list



On Sun, 15 Nov 1998, Richard Kroonen wrote:

> > 
> >  First of al when i now just play an mp3, it sounds not louder than
> >  before i think, but when i look in my wmscope (a scope for windowmaker,
> >  it when real harder than before it was. Is this ok or not, now i must
> >  set the volume back of my , but i want to keep it hard open and my
> >  amplifier much lower. Is there a solution for this?

I'm sorry, I didn't understand this questions at all. Could you repeat?


> > 
> >  Question 2: i am using windowmaker, and i wanne know how i can activate
> >  the driver before windowmaker is on, because it must be loaded else my
> >  dock mixer won't do it. I had in pre 8, aplay -l, but now he don't load
> >  the driver, is there a better way to do it?


There is a script, in alsa-driver/utils called 'alsasound'. It was
designed for RedHat/SysV type startup scripts. On a RedHat system, I copy
'alsasound' to /etc/rc.d/init.d, and then go to the control-panel in X, go
to the runlevel editor, and tell the system to start the alsasound script
in runlevels 3 and 5 (console mode and X window mode).

If this was gobely-gook to you, compile and install the alsa-driver
package, alsa-lib, and alsa-util; and do this from the alsa-driver
directory:


(Note that this is pretty much for just Redhat 5.x. Other distributions
differ. Type in the commands verbatim, and but not instructions in <> )
<Begin>

cp utils/alsasound /etc/rc.d/init.d		(Puts script in place)
cd /etc/rc.d/rc3.d
ln -s ../init.d/alsasound S99alsasound		(Start alsa in RL 3)
ln -s ../init.d/alsasound K10alsasound		(Stop alsa during stop)
cd ../rc5.d
ln -s ../init.d/alsasound S99alsasound		(Start alsa in RL 5)
ln -s ../init.d/alsasound K10alsasound		(Stop alsa during stop)

/etc/rc.d/init.d/alsasound start		(starts drivers)

alsamixer					(Run mixer)

<Unmute the Master and PCM channels (arrows and 'M' key). This varies from
card to card. Esc to save>

/usr/sbin/alsactl store				(Saves mixer settings)

<END>

Note that "RL 3" and "RL 5" means "Runlevel 3" and "Runlevel 5". Runlevel
3 is normal console mode, Runlevel 5 boots into X.


Anyway, this will start ALSA during boot, and stop and store mixer
settings during shutdown. And it always works. 

Other distributions have similar ways of running boot scripts, and you can
adapt the alsasound script to suit your needs. "/bin/sh alsasound start"
is all it takes to run the script.


Hope this helps some..


