Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4303 - alsasound init script does not proceed if drivers already loaded
Summary: alsasound init script does not proceed if drivers already loaded
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Arcady Genkin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 19:56 UTC by Glen Coates
Modified: 2004-02-11 05:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glen Coates 2002-06-28 19:56:20 UTC
The alsasound init script presently fails at the start of the start() subroutine
if the alsa-drivers have been insmod'ed.  At present, the Gentoo desktop HOWTO
instructs users to add snd-emu10k1 (or whatever card you use) and snd-pcm-oss to
/etc/modules.autoload, which of course means that the alsasound init script will
always fail at that point, which also means that while the drivers will be
loaded just fine, mixer settings are not restored, sequencer modules will not be
loaded, and card-specific scripts are not run.

Perhaps, the eerror() statement should be changed to an non-fatal ewarn()?
Comment 1 Arcady Genkin (RETIRED) gentoo-dev 2002-06-29 01:16:20 UTC
You probably have alsasound init script in your 'default' runlevel.  If you
added it to 'boot' runlevel instead, it should be started before the modules
from modules.autoload get loaded.

That said, the desktop howto needs to be updated.  Could you open a separate bug
report for that, assigning it to me?

The right way to load the alsa modules is to edit /etc/modules.d/alsa file and
then run `update-modules'.

Thanks.
Comment 2 M Grundman 2004-02-11 05:47:13 UTC
The alsasound script does not work correctly with hotplug if started during boot.
If alsasound is in default section and if I add "after hotplug" it seems to work correctly with hotplug.