Your message dated Wed, 14 Nov 2007 19:11:36 +0100
with message-id <[EMAIL PROTECTED]>
and subject line [Pkg-alsa-devel] Bug#451244: Bug#451244: Bug#451244:
alsa-utils: init script should call alsactl restore with -F option
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: alsa-utils
Version: 1.0.15-1
Severity: minor
In response to a kernel bug report where I mentioned that I got some
errors on boot when switching from a 2.6.23 to a 2.6.24-rc kernel, an
upstream alsa developer indicated that those errors could be avoided by
using the -F option in the init scripts.
The errors were because of changes in the available controls.
Please consider adding that option in /etc/init.d/alsa-utils:
- if MSG="$(alsactl restore $CARD 2>&1 >/dev/null)" && [ ! "$MSG" ] ; then
+ if MSG="$(alsactl -F restore $CARD 2>&1 >/dev/null)" && [ ! "$MSG"
] ; then
For details, please see:
http://bugzilla.kernel.org/show_bug.cgi?id=9374
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-rc2 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages alsa-utils depends on:
ii libasound2 1.0.15-1 ALSA library
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand
ii linux-sound-base 1.0.15-2 base package for ALSA and OSS soun
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii module-init-tools 3.3-pre11-4 tools for managing Linux kernel mo
ii pciutils 1:2.2.4-1.1 Linux PCI Utilities
ii python-minimal 2.4.4-6 A minimal subset of the Python lan
ii whiptail 0.52.2-11.1 Displays user-friendly dialog boxe
Versions of packages alsa-utils recommends:
ii alsa-base 1.0.15-2 ALSA driver configuration files
ii udev 0.114-2 /dev/ and hotplug management daemo
-- no debconf information
--- End Message ---
--- Begin Message ---
On Wed, 14 Nov 2007 the mental interface of
Frans Pop told:
> On Wednesday 14 November 2007, you wrote:
[...]
> > -F is only used if alsactl restore failes and returns nonzero
>
> If you want to discuss the appropriate or not appropriate use of the -F
> flag, please do so with the upstream alsa people.
> I'm only forwarding you what they told me: the -F flag should be used by
> default in the init script to avoid such errors.
>
> AFAICT this seems to match the text in the manpage:
> -F, --force
> Used with restore command. Try to restore the matching
> control elements as much as possible.
Frans, please have a look at the initscript:
restore_levels()
{
[ -f /var/lib/alsa/asound.state ] || return 1
CARD="$1"
[ "$1" = all ] && CARD=""
# Assume that if alsactl prints a message on stderr
# then it failed somehow. This works around the fact
# that alsactl doesn't return nonzero status when it
# can't restore settings for the card
if MSG="$(alsactl restore $CARD 2>&1 >/dev/null)" && [ ! "$MSG" ] ; then
return 0
else
# Retry with the "force" option. This restores more levels
# but it results in much longer error messages.
alsactl -F restore $CARD >/dev/null 2>&1
log_action_cont_msg "warning: 'alsactl restore${CARD:+ $CARD}' failed
with error message '$MSG'"
return 1
fi
}
Thanks for your engagement. Anyway, I'll close the bug now.
Elimar
--
Learned men are the cisterns of knowledge,
not the fountainheads ;-)
--- End Message ---