[Pkg-alsa-devel] Bug#266272: alsa-base: Don't kill sound apps on suspend !

Kiko Piris Kiko Piris <menorqui@pirispons.net>, 266272@bugs.debian.org
Sun Aug 22 15:03:18 UTC 2004


tags 266272 +patch
thanks

On 17/08/2004 at 12:23 +0200, Henning Glawe wrote:

> Package: alsa-base
> Version: 1.0.5a-2
> Severity: critical
> Justification: breaks unrelated software
> 
> Due to the changes in /etc/apm/event.d/alsa, every sound application was
> killed during suspend. I lost some unsaved work because of this...
> On my laptop, the old stop/continue code worked fine, so I am used to
> this behaviour.
> If you introduce such a change, please make it at least configurable and
> disable it by default and/or prompt with a high debconf level for the
> user to agree !

alsa-base used to have a debconf question regarding this. I'm missing it
now...  However I still have the option in my /etc/default/alsa.

I thing a patch like this one to /etc/apm/event.d/alsa would work as
expected (at least it does for me):

---8<---
--- /etc/apm/event.d/alsa.original      2004-08-22 09:51:31.577131620 +0200
+++ /etc/apm/event.d/alsa       2004-08-22 09:48:15.367249787 +0200
@@ -4,6 +4,12 @@

 set -e

+[ -e /etc/default/alsa ] && . /etc/default/alsa
+
+if [ "$force_stop_modules_before_suspend" != "true" ]; then
+    exit 0
+fi
+
 devices=$(find /dev -type c | xargs stat -c '%t %n' | sed -n 's/^e //p; s/^74 //p')
 if [ "$1" = suspend ]; then
     if [ -d /proc/asound ]; then
--->8---

Best regards

-- 
Kiko





More information about the Pkg-alsa-devel mailing list