[Pkg-alsa-devel] Bug#244068: marked as done (alsa-base: force-stop option doesn't work properly)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 25 Apr 2004 23:03:20 -0700


Your message dated Mon, 26 Apr 2004 01:47:05 -0400
with message-id <E1BHyxN-0002uk-00@newraff.debian.org>
and subject line Bug#244068: fixed in alsa-driver 1.0.4-2
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Apr 2004 13:41:21 +0000
>From therblack@hotmail.com Fri Apr 16 06:41:21 2004
Return-path: <therblack@hotmail.com>
Received: from (tormail2.algorithmics.com) [209.171.52.2] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BETar-0006bY-00; Fri, 16 Apr 2004 06:41:21 -0700
Received: from localhost.localdomain (10.1.10.227 [10.1.10.227]) by tormail2.algorithmics.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id 26K8YY1C; Fri, 16 Apr 2004 09:38:45 -0400
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Richard Black <therblack@hotmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: alsa-base: force-stop option doesn't work properly
Bcc: Richard Black <therblack@hotmail.com>
X-Mailer: reportbug 2.56
Date: Fri, 16 Apr 2004 09:41:08 -0400
Message-Id: <E1BETar-0006bY-00@spohr.debian.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.5 required=4.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: alsa-base
Version: 1.0.4-1
Severity: normal


When a proc is using the sound option, and $ALSA_KILL_MODE" = force, the script /etc/inid.d 
trys to execute:

		if [ "$ALSA_KILL_MODE" = force ]; then
		    printf "(terminating processes) "
		    kill $procs_using_sound
		    sleep 2
		    kill -9 $procs_using_sound
		else
		    printf "aborting. (sound used by PIDs %s)\n" "$procs_using_sound"
		    exit 1
		fi

after which the modules should be removed.

The problem seems be that if the first kill is successful, the second kill gives
the following error:

Shutting down ALSA (version 1.0.2c): (terminating processes) ./alsa: line 146: kill: (11694) - No such process

....and so /etc/alsa exits.  This implies that the modules are not removed, and in my case this means
no sound when they are restarted.

As background, I seem to need my modules to be unloaded and loaded when I suspend my
laptop.  The above problem stops them being unloaded.

cheers

Richard

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=C, LC_CTYPE=C

Versions of packages alsa-base depends on:
ii  alsa-utils                   1.0.4-1     Advanced Linux Sound Architecture 
ii  debconf                      1.4.22      Debian configuration management sy
ii  debianutils                  2.8.1       Miscellaneous utilities specific t
ii  lsof                         4.71-1      List open files.
ii  module-init-tools            3.0-pre10-2 tools for managing Linux kernel mo
ii  modutils                     2.4.26-1    Linux module utilities
ii  procps                       1:3.2.1-2   The /proc file system utilities
ii  psmisc                       21.4-1      Utilities that use the proc filesy

-- debconf information:
  alsa-common/card-list: 
* alsa-base/alsactl_store_on_shutdown: true
* alsa-base/current_card: done
* alsa-base/force_stop_alsa_before_suspend: stop-procs
* alsa-base/card_list: cs46xx done

---------------------------------------
Received: (at 244068-close) by bugs.debian.org; 26 Apr 2004 05:53:36 +0000
>From katie@ftp-master.debian.org Sun Apr 25 22:53:36 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BHz3g-0003fT-00; Sun, 25 Apr 2004 22:53:36 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BHyxN-0002uk-00; Mon, 26 Apr 2004 01:47:05 -0400
From: Steve Kowalik <stevenk@debian.org>
To: 244068-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#244068: fixed in alsa-driver 1.0.4-2
Message-Id: <E1BHyxN-0002uk-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 26 Apr 2004 01:47:05 -0400
Delivered-To: 244068-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 19

Source: alsa-driver
Source-Version: 1.0.4-2

We believe that the bug you reported is fixed in the latest version of
alsa-driver, which is due to be installed in the Debian FTP archive:

alsa-base_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-base_1.0.4-2_all.deb
alsa-driver_1.0.4-2.diff.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-2.diff.gz
alsa-driver_1.0.4-2.dsc
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-2.dsc
alsa-headers_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-headers_1.0.4-2_all.deb
alsa-source_1.0.4-2_all.deb
  to pool/main/a/alsa-driver/alsa-source_1.0.4-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 244068@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve Kowalik <stevenk@debian.org> (supplier of updated alsa-driver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Apr 2004 15:27:55 +1000
Source: alsa-driver
Binary: alsa-source alsa-headers alsa-base
Architecture: source all
Version: 1.0.4-2
Distribution: unstable
Urgency: low
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Changed-By: Steve Kowalik <stevenk@debian.org>
Description: 
 alsa-base  - ALSA sound driver common files
 alsa-headers - ALSA sound driver header files
 alsa-source - ALSA sound driver source
Closes: 191501 195516 199739 203491 210440 218655 229486 232380 232854 237003 237452 238278 238694 238994 240125 240594 240594 242720 243876 244068 245031 245783
Changes: 
 alsa-driver (1.0.4-2) unstable; urgency=low
 .
   * Steve Kowalik:
     - Actually do some work on this package!
     - Check for the presence of either devfs or udev before creating device
       nodes in alsa-base's postinst. (Closes: #243876)
     - Rewrite the init script to not load modules. Loading modules is now
       the responsibility of the user, or hotplug.
       (Closes: #195516, #203491, #210440, #232380, #237003, #237452, #240594)
       (Closes: #244068, #245783)
     - Stop alsa-base depending on lsof and procps.
     - Change the description for alsa-base to no longer mention module
       loading.
     - Rewrite the debconf-age for alsa-base:
       + Stop asking which modules to load. (Closes: #199739, #218655)
       + Only ask one question about saving mixer settings, in the style of
         setserial.
       + This means we can stop doing vile things to the debconf templates in
         debian/rules.
       + This also means that alsa can restore on bootup, and not save on
         shutdown. (Closes: #191501, #232854)
     - Remove the files under /etc/alsa/modutils, and the symlinks
       into /etc/modprobe.d and /etc/modutils.
     - Provide an alsa-base file under /etc/modprobe.d and /etc/modutils
       which will load the OSS compatibility modules.
       (Closes: #229486, #240594)
     - Blacklist (for hotplug) and skip (for discover) the OSS sound modules.
       Note that we can include the blacklist automatically for hotplug, but
       discover doesn't contain the infrastructure for that, so the file for
       discover is in /usr/share/doc/alsa-base.
       (Closes: #238278, #238694, #240125, #242720)
     - Due to the fact that the init script no longer touches modules, this
       script has been gutted to a shadow of its former self. (Closes: #238994)
     - Stop using install -d so liberally in debian/rules.
     - Rename debian/po/no.po to debian/po/nb.po.
     - Correct typo in debian/po/fr.po. (Closes: #245031) (thanks,
       Pierre Machard)
     - Remove debian/alsa-path, I can't see anything at all that references it.
   * Unreleased and untested.
Files: 
 d6e7b7fad0ff1f319377dfe1ee4583ec 805 sound optional alsa-driver_1.0.4-2.dsc
 32b5582e8c4aca3db9d856983f79b124 133458 sound optional alsa-driver_1.0.4-2.diff.gz
 421623be15597077ac2f2b8241ea69cd 45680 sound optional alsa-base_1.0.4-2_all.deb
 e3fb94c3d3f6683b33a9ebc8966b444d 1819260 sound optional alsa-source_1.0.4-2_all.deb
 bc2169190003c566e7523a020878244a 55920 sound optional alsa-headers_1.0.4-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjJ8yCfB0CMh//C8RAuDhAKDOw+UJxM1HA4lUSj5z2nD9F3gKXQCdG6hM
HXdppa/6Ew9HAsCreguhWTc=
=YZy3
-----END PGP SIGNATURE-----