On Tue, Nov 09, 2004 at 10:37:19AM +0100, Michael Karbach wrote:
alsasound is running suspend fails with an error. For this reason I have added in:
POWERSAVE_SUSPEND2DISK_RESTART_SERVICES="alsasound"
and in /var/log/suspend2disk.log I got the message:
========we are going to sleep, preparing.======== Stopping services: (alsasound configured) none running.
Actually alsasound is running. If I do stop it manually, suspending works.
yes, i have discovered this myself today. the following patch against /usr/lib/powersave/scripts/sleep_helper_functions will fix it: --- scripts/sleep_helper_functions 28 Sep 2004 17:19:31 -0000 1.10 +++ scripts/sleep_helper_functions 9 Nov 2004 12:06:01 -0000 1.10.2.1 @@ -146,7 +146,7 @@ if [ "$SERVICES_TO_RESTART" ]; then D=false for X in $SERVICES_TO_RESTART; do - /etc/init.d/$X status; RET=$? + /etc/init.d/$X status >/dev/null 2>&1 ; RET=$? # redirect needed to workaround initscript bug. if [ $RET -eq 0 ]; then echo "stopping $X:" >> $LSMOD_LOG /etc/init.d/$X stop 2>&1 | awk '{print "## "$0}' >> $LSMOD_LOG just redirect the '/etc/init.d/$X status' to /dev/null (stdout and stderr) and it will work fine. -- Stefan Seyfried