From alsa-user-owner@alsa.jcu.cz  Thu Jul 23 15:37:29 1998
Received: from ale.physics.sunysb.edu (root@ale.physics.sunysb.edu [129.49.30.117])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id PAA29216
	for <alsa-user@JCU.CZ>; Thu, 23 Jul 1998 15:36:07 +0200
Received: from fatman.physics.sunysb.edu (really [129.49.30.155]) by superk.physics.sunysb.edu
	via in.smtpd with esmtp (ident root using rfc1413)
	id <m0yzLXD-000PoIC@ale.physics.sunysb.edu> (Debian Smail3.2.0.101)
	for <alsa-user@jcu.cz>; Thu, 23 Jul 1998 09:35:51 -0400 (EDT) 
Received: from fatman.physics.sunysb.edu (really [127.0.0.1]) by superk.physics.sunysb.edu
	via in.smtpd with esmtp (ident sharkey using rfc1413)
	id <m0yzLXX-0000XZC@fatman.physics.sunysb.edu> (Debian Smail3.2.0.101)
	for <alsa-user@jcu.cz>; Thu, 23 Jul 1998 09:36:11 -0400 (EDT) 
Message-Id: <m0yzLXX-0000XZC@fatman.physics.sunysb.edu>
To: alsa-user@JCU.CZ
cc: Bill C Riemers <bcr@feynman.com>
Subject: Re: Annoying, but minor problem 
In-reply-to: Your message of "Thu, 23 Jul 1998 08:55:17 EDT."
             <35B732B5.8C4058E5@feynman.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 23 Jul 1998 09:36:11 -0400
From: Eric Sharkey <sharkey@fatman.physics.sunysb.edu>
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list


> Now for the problem.  I have the kernel configured to
> automatically load modules when they are needed.  It seems
> this means the sound modules also get unloaded after a very
> short period of none use...  The problem is when the sound
> module is loaded, all the volume levels are re-initialized
> to zero volume.  So when I'm web browsing, and I come across
> a page that needs sound I don't hear anything.  Once I realize
> it, I typically have to do BACK on my browser, run 'amixer',
> and then go back to the page again.  (I could just run 'amixer'
> but I hate starting songs in the middle...)
> 
> Right now, the hack I use to avoid problems is I have a crontab
> job that does 'amixer -r' every minute.

Essentially, what you are doing is keeping the module loaded by making sure
an application is using it at least once a minute.  It's probably better
to just load the module permanently.

If you run "modprobe snd-<your-card-type-here>" it will load the module
and not unload it.  This will eliminate the need for a cron job and
you'll only need to set the volume the first time you load the module.

Eric


