FS#17239 - [alsa-utils] add alsa unblock option to /etc/rc.d/alsa
Attached to Project:
Arch Linux
Opened by Tomas Mudrunka (harvie) - Sunday, 22 November 2009, 00:13 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 21 February 2011, 18:03 GMT
Opened by Tomas Mudrunka (harvie) - Sunday, 22 November 2009, 00:13 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 21 February 2011, 18:03 GMT
|
Details
Description: Some applications (eg.: adobe flash + pm utils)
are causing alsa to hang, so there should be another option
in /etc/rc.d/alsa. note that i am not killing processes that
are accessing control devices (this will cause only annoying
crash of alsamixer, alsamix applet, etc...)
this is how i imagine it: force-restart) stat_busy "Trying to TERM or KILL processes that are blocking ALSA..." FILES="$(ls -1 /dev/snd/* | grep -vi control)" fuser -k -SIGTERM $FILES fuser -k $FILES stat_done $0 restart ;; |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Monday, 21 February 2011, 18:03 GMT
Reason for closing: Implemented
Additional comments about closing: 1.0.24.2
Monday, 21 February 2011, 18:03 GMT
Reason for closing: Implemented
Additional comments about closing: 1.0.24.2
this is solution:
please include following /etc/pm/sleep.d/90alsa to alsa-utils (since it's not alsa issue nor pm-utils issue it has to be solved by distribution)
#!/bin/sh
#
# 90alsa: suspend/wakeup ALSA devices
case "$1" in
hibernate|suspend)
;;
thaw|resume)
aplay -d 1 /dev/zero
;;
*) exit $NA
;;
esac
i am using some unsupported alsa plugins and according to authors there is no way to get them better in next few years.
i've found that pm-utils script working very well and i have no more problems with sound when suspending my laptop.
but when using some special plugin, jackd or some older application that is blocking audio device, the script in topic of this bug is also very helpful.