Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62091 - /etc/init.d/aumix should run 'after hotplug'?
Summary: /etc/init.d/aumix should run 'after hotplug'?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-29 04:59 UTC by Decado
Modified: 2004-11-20 14:22 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 Decado 2004-08-29 04:59:07 UTC
Like apparently many other people I had trouble getting sound to work. The mixer wouldn't set the right volume levels because /dev/mixer didn't exist. Running /etc/init.d/aumix by hand would get everything running.
   This gave me the impression that /etc/init.d/aumix was running too early. Specifically, it was running before /etc/init.d/hotplug which (presumably) "creates" the various sound devices. After adding 'after hotplug' in the depend() function of /etc/init.d/aumix everything booted smoothly and sound worked right away.
(*) I may have just avoided some sort of race condition by moving the execution of /etc/init.d/aumix to a later point (i.e. maybe hotplug has nothing to do with all of this).
(*) Is 'after hotplug' safe if a user doesn't use hotplug?

Reproducible: Always
Steps to Reproduce:
1. Install a simple system (no KDE, GNOME, ..., but e.g. waimea)
2. Install aumix :-) (I actually forgot that...)
3. Start system

Actual Results:  
Sound only possible after manually running '/etc/init.d/aumix start'.

Expected Results:  
The sound should have worked right away.

Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-ck4)
=================================================================
System uname: 2.6.8-ck4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mcpu=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://212.219.247.17/sites/www.ibiblio.org/gentoo/
http://212.219.247.16/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86"

media-sound/aumix-2.8-r1  -gpm -gtk +gtk2 -nls
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-01 00:51:31 UTC
in portage
Comment 2 Robert Jämmrich 2004-11-20 14:22:32 UTC
1. Using "coldplug" seems to fix this
2. You need to replace the "use hotplug" statement in /etc/init.d/aumix (depend function) by "use coldplug"

(Works for me)