+ log 'Initial commandline parameters: --quirk-s3-bios --quirk-s3-mode' + '[' true ']' + local 'fmt=%s\n' + '[' 'Initial commandline parameters: --quirk-s3-bios --quirk-s3-mode' = -n ']' + printf '%s\n' 'Initial commandline parameters: --quirk-s3-bios --quirk-s3-mode' Initial commandline parameters: --quirk-s3-bios --quirk-s3-mode + load_hook_blacklist + '[' '' ']' + return + load_hook_parameters + '[' '' ']' + '[' '' ']' + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + rm -f /var/run/pm-utils/inhibit ++ date + log 'Thu Jun 5 12:19:34 CEST 2008: Running hooks for suspend.' + '[' true ']' + local 'fmt=%s\n' + '[' 'Thu Jun 5 12:19:34 CEST 2008: Running hooks for suspend.' = -n ']' + printf '%s\n' 'Thu Jun 5 12:19:34 CEST 2008: Running hooks for suspend.' Thu Jun 5 12:19:34 CEST 2008: Running hooks for suspend. + run_hooks sleep suspend + local syshooks=/etc/pm/sleep.d + local phooks=/usr/lib/pm-utils/sleep.d + command_exists before_hooks + type before_hooks + return 1 + local sort=sort + local base + local hook + local 'oifs= ' + local 'nifs= ' + IFS=' ' + '[' '' = reverse ']' ++ IFS=' ' ++ sort ++ uniq ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O '/etc/pm/sleep.d/*[!~]' ']' ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/00clear ']' ++ echo 00clear ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/01grub ']' ++ echo 01grub ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/05led ']' ++ echo 05led ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/10NetworkManager ']' ++ echo 10NetworkManager ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/11netcfg ']' ++ echo 11netcfg ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/49bluetooth ']' ++ echo 49bluetooth ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/50modules ']' ++ echo 50modules ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/55battery ']' ++ echo 55battery ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/65alsa ']' ++ echo 65alsa ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/90clock ']' ++ echo 90clock ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/94cpufreq ']' ++ echo 94cpufreq ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/95led ']' ++ echo 95led ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' ++ echo 98smart-kernel-video ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/99video ']' ++ echo 99video + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/00clear ']' + '[' -f /usr/lib/pm-utils/sleep.d/00clear ']' + hook=/usr/lib/pm-utils/sleep.d/00clear + log -n '/usr/lib/pm-utils/sleep.d/00clear suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/00clear suspend: ' /usr/lib/pm-utils/sleep.d/00clear suspend: + hook_ok /usr/lib/pm-utils/sleep.d/00clear + local hook=00clear + '[' -f /var/run/pm-utils/storage/disable_hook:00clear ']' + '[' -f /var/run/pm-utils/storage/disable_hook:clear ']' + '[' -x /usr/lib/pm-utils/sleep.d/00clear ']' + return 0 + /usr/lib/pm-utils/sleep.d/00clear suspend ++ command_exists service ++ type service ++ return 1 + case "$1" in + fgconsole + savestate console + '[' -n '' ']' + cat + chvt 63 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/01grub ']' + '[' -f /usr/lib/pm-utils/sleep.d/01grub ']' + hook=/usr/lib/pm-utils/sleep.d/01grub + log -n '/usr/lib/pm-utils/sleep.d/01grub suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/01grub suspend: ' /usr/lib/pm-utils/sleep.d/01grub suspend: + hook_ok /usr/lib/pm-utils/sleep.d/01grub + local hook=01grub + '[' -f /var/run/pm-utils/storage/disable_hook:01grub ']' + '[' -f /var/run/pm-utils/storage/disable_hook:grub ']' + '[' -x /usr/lib/pm-utils/sleep.d/01grub ']' + return 0 + /usr/lib/pm-utils/sleep.d/01grub suspend + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/05led ']' + '[' -f /usr/lib/pm-utils/sleep.d/05led ']' + hook=/usr/lib/pm-utils/sleep.d/05led + log -n '/usr/lib/pm-utils/sleep.d/05led suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/05led suspend: ' /usr/lib/pm-utils/sleep.d/05led suspend: + hook_ok /usr/lib/pm-utils/sleep.d/05led + local hook=05led + '[' -f /var/run/pm-utils/storage/disable_hook:05led ']' + '[' -f /var/run/pm-utils/storage/disable_hook:led ']' + '[' -x /usr/lib/pm-utils/sleep.d/05led ']' + return 0 + /usr/lib/pm-utils/sleep.d/05led suspend + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/10NetworkManager ']' + '[' -f /usr/lib/pm-utils/sleep.d/10NetworkManager ']' + hook=/usr/lib/pm-utils/sleep.d/10NetworkManager + log -n '/usr/lib/pm-utils/sleep.d/10NetworkManager suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/10NetworkManager suspend: ' /usr/lib/pm-utils/sleep.d/10NetworkManager suspend: + hook_ok /usr/lib/pm-utils/sleep.d/10NetworkManager + local hook=10NetworkManager + '[' -f /var/run/pm-utils/storage/disable_hook:10NetworkManager ']' + '[' -f /var/run/pm-utils/storage/disable_hook:NetworkManager ']' + '[' -x /usr/lib/pm-utils/sleep.d/10NetworkManager ']' + return 0 + /usr/lib/pm-utils/sleep.d/10NetworkManager suspend ++ command_exists service ++ type service ++ return 1 + command_exists dbus-send + type dbus-send + return 0 + case "$1" in + suspend_nm + dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/11netcfg ']' + '[' -f /usr/lib/pm-utils/sleep.d/11netcfg ']' + hook=/usr/lib/pm-utils/sleep.d/11netcfg + log -n '/usr/lib/pm-utils/sleep.d/11netcfg suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/11netcfg suspend: ' /usr/lib/pm-utils/sleep.d/11netcfg suspend: + hook_ok /usr/lib/pm-utils/sleep.d/11netcfg + local hook=11netcfg + '[' -f /var/run/pm-utils/storage/disable_hook:11netcfg ']' + '[' -f /var/run/pm-utils/storage/disable_hook:netcfg ']' + '[' -x /usr/lib/pm-utils/sleep.d/11netcfg ']' + return 0 + /usr/lib/pm-utils/sleep.d/11netcfg suspend ++ command_exists service ++ type service ++ return 1 + '[' -x /usr/bin/netcfg2 ']' + exit 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/49bluetooth ']' + '[' -f /usr/lib/pm-utils/sleep.d/49bluetooth ']' + hook=/usr/lib/pm-utils/sleep.d/49bluetooth + log -n '/usr/lib/pm-utils/sleep.d/49bluetooth suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/49bluetooth suspend: ' /usr/lib/pm-utils/sleep.d/49bluetooth suspend: + hook_ok /usr/lib/pm-utils/sleep.d/49bluetooth + local hook=49bluetooth + '[' -f /var/run/pm-utils/storage/disable_hook:49bluetooth ']' + '[' -f /var/run/pm-utils/storage/disable_hook:bluetooth ']' + '[' -x /usr/lib/pm-utils/sleep.d/49bluetooth ']' + return 0 + /usr/lib/pm-utils/sleep.d/49bluetooth suspend ++ command_exists service ++ type service ++ return 1 + '[' -f /proc/acpi/ibm/bluetooth ']' + exit 254 + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/50modules ']' + '[' -f /usr/lib/pm-utils/sleep.d/50modules ']' + hook=/usr/lib/pm-utils/sleep.d/50modules + log -n '/usr/lib/pm-utils/sleep.d/50modules suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/50modules suspend: ' /usr/lib/pm-utils/sleep.d/50modules suspend: + hook_ok /usr/lib/pm-utils/sleep.d/50modules + local hook=50modules + '[' -f /var/run/pm-utils/storage/disable_hook:50modules ']' + '[' -f /var/run/pm-utils/storage/disable_hook:modules ']' + '[' -x /usr/lib/pm-utils/sleep.d/50modules ']' + return 0 + /usr/lib/pm-utils/sleep.d/50modules suspend ++ command_exists service ++ type service ++ return 1 + case "$1" in + suspend_modules + '[' -z '' ']' + return 254 + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/55battery ']' + '[' -f /usr/lib/pm-utils/sleep.d/55battery ']' + hook=/usr/lib/pm-utils/sleep.d/55battery + log -n '/usr/lib/pm-utils/sleep.d/55battery suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/55battery suspend: ' /usr/lib/pm-utils/sleep.d/55battery suspend: + hook_ok /usr/lib/pm-utils/sleep.d/55battery + local hook=55battery + '[' -f /var/run/pm-utils/storage/disable_hook:55battery ']' + '[' -f /var/run/pm-utils/storage/disable_hook:battery ']' + '[' -x /usr/lib/pm-utils/sleep.d/55battery ']' + return 0 + /usr/lib/pm-utils/sleep.d/55battery suspend ++ command_exists service ++ type service ++ return 1 + case "$1" in + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/65alsa ']' + '[' -f /usr/lib/pm-utils/sleep.d/65alsa ']' + hook=/usr/lib/pm-utils/sleep.d/65alsa + log -n '/usr/lib/pm-utils/sleep.d/65alsa suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/65alsa suspend: ' /usr/lib/pm-utils/sleep.d/65alsa suspend: + hook_ok /usr/lib/pm-utils/sleep.d/65alsa + local hook=65alsa + '[' -f /var/run/pm-utils/storage/disable_hook:65alsa ']' + '[' -f /var/run/pm-utils/storage/disable_hook:alsa ']' + '[' -x /usr/lib/pm-utils/sleep.d/65alsa ']' + return 0 + /usr/lib/pm-utils/sleep.d/65alsa suspend ++ command_exists service ++ type service ++ return 1 + command_exists alsactl + type alsactl + return 0 + case "$1" in + alsactl store 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/90clock ']' + '[' -f /usr/lib/pm-utils/sleep.d/90clock ']' + hook=/usr/lib/pm-utils/sleep.d/90clock + log -n '/usr/lib/pm-utils/sleep.d/90clock suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/90clock suspend: ' /usr/lib/pm-utils/sleep.d/90clock suspend: + hook_ok /usr/lib/pm-utils/sleep.d/90clock + local hook=90clock + '[' -f /var/run/pm-utils/storage/disable_hook:90clock ']' + '[' -f /var/run/pm-utils/storage/disable_hook:clock ']' + '[' -x /usr/lib/pm-utils/sleep.d/90clock ']' + return 0 + /usr/lib/pm-utils/sleep.d/90clock suspend ++ command_exists service ++ type service ++ return 1 + NTPD_LOCK=pm-ntpd.lock + case "$1" in + suspend_clock + try_lock pm-ntpd.lock + mkdir -p /var/run/pm-utils/locks + local lock=/var/run/pm-utils/locks/pm-ntpd.lock + return 0 + trap 'release_lock "${NTPD_LOCK}"' 0 + stopservice ntpd + service ntpd status + grep -c -q running + /sbin/hwclock --systohc + release_lock pm-ntpd.lock + local lock=/var/run/pm-utils/locks/pm-ntpd.lock + rm -f /var/run/pm-utils/locks/pm-ntpd.lock + return 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/94cpufreq ']' + '[' -f /usr/lib/pm-utils/sleep.d/94cpufreq ']' + hook=/usr/lib/pm-utils/sleep.d/94cpufreq + log -n '/usr/lib/pm-utils/sleep.d/94cpufreq suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/94cpufreq suspend: ' /usr/lib/pm-utils/sleep.d/94cpufreq suspend: + hook_ok /usr/lib/pm-utils/sleep.d/94cpufreq + local hook=94cpufreq + '[' -f /var/run/pm-utils/storage/disable_hook:94cpufreq ']' + '[' -f /var/run/pm-utils/storage/disable_hook:cpufreq ']' + '[' -x /usr/lib/pm-utils/sleep.d/94cpufreq ']' + return 0 + /usr/lib/pm-utils/sleep.d/94cpufreq suspend ++ command_exists service ++ type service ++ return 1 + '[' -d /sys/devices/system/cpu/ ']' + case "$1" in + hibernate_cpufreq + cd /sys/devices/system/cpu/ + for x in 'cpu[0-9]*' + '[' -L cpu0/cpufreq ']' + gov=cpu0/cpufreq/scaling_governor + '[' -f cpu0/cpufreq/scaling_governor ']' + continue + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/95led ']' + '[' -f /usr/lib/pm-utils/sleep.d/95led ']' + hook=/usr/lib/pm-utils/sleep.d/95led + log -n '/usr/lib/pm-utils/sleep.d/95led suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/95led suspend: ' /usr/lib/pm-utils/sleep.d/95led suspend: + hook_ok /usr/lib/pm-utils/sleep.d/95led + local hook=95led + '[' -f /var/run/pm-utils/storage/disable_hook:95led ']' + '[' -f /var/run/pm-utils/storage/disable_hook:led ']' + '[' -x /usr/lib/pm-utils/sleep.d/95led ']' + return 0 + /usr/lib/pm-utils/sleep.d/95led suspend + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/98smart-kernel-video ']' + '[' -f /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' + hook=/usr/lib/pm-utils/sleep.d/98smart-kernel-video + log -n '/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: ' /usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend: + hook_ok /usr/lib/pm-utils/sleep.d/98smart-kernel-video + local hook=98smart-kernel-video + '[' -f /var/run/pm-utils/storage/disable_hook:98smart-kernel-video ']' + '[' -f /var/run/pm-utils/storage/disable_hook:smart-kernel-video ']' + '[' -x /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' + return 0 + /usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend ++ command_exists service ++ type service ++ return 1 + case $1 in + smart_kernel_video + '[' -d /sys/module/nvidia -o -d /sys/module/fglrx ']' ++ uname -r ++ awk -F '[_-]' '{print $1}' + local kernel_rev=2.6.25 + '[' -d /sys/module/i915 ']' + '[' 2.6.25 -o 2.6.25 = 2.6.26 ']' + return 0 + add_parameters --quirk-none + remove_parameters --quirk-none + local p + '[' --quirk-none = all ']' + echo '' + for p in '"$@"' + echo --quirk-none + grep -vxFf /var/run/pm-utils/storage/parameters.rm /var/run/pm-utils/storage/parameters + cp -f /var/run/pm-utils/storage/parameters.new /var/run/pm-utils/storage/parameters + for x in '"$@"' + echo --quirk-none + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' ++ get_parameters ++ cat /var/run/pm-utils/storage/parameters + export 'PM_CMDLINE=--quirk-s3-bios --quirk-s3-mode --quirk-none' + PM_CMDLINE='--quirk-s3-bios --quirk-s3-mode --quirk-none' + rm -f /var/run/pm-utils/storage/parameters.new + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/99video ']' + '[' -f /usr/lib/pm-utils/sleep.d/99video ']' + hook=/usr/lib/pm-utils/sleep.d/99video + log -n '/usr/lib/pm-utils/sleep.d/99video suspend: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/99video suspend: ' /usr/lib/pm-utils/sleep.d/99video suspend: + hook_ok /usr/lib/pm-utils/sleep.d/99video + local hook=99video + '[' -f /var/run/pm-utils/storage/disable_hook:99video ']' + '[' -f /var/run/pm-utils/storage/disable_hook:video ']' + '[' -x /usr/lib/pm-utils/sleep.d/99video ']' + return 0 + /usr/lib/pm-utils/sleep.d/99video suspend ++ command_exists service ++ type service ++ return 1 + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_S3_BIOS=true + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_S3_MODE=true + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_NONE=true + command_exists vbetool + type vbetool + return 0 + command_exists radeontool + type radeontool + return 1 + case "$1" in + suspend_video + local acpi_flag=0 + quirk true + '[' true = true ']' + '[' -z true ']' + quirk true + '[' true = true ']' + '[' -z true ']' + '[' 0 -ne 0 ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + save_fbcon + local con + for con in '/sys/class/graphics/*/state' + '[' -f /sys/class/graphics/fb0/state ']' + echo 1 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + IFS=' ' + '[' '!' -e /var/run/pm-utils/inhibit ']' ++ date + log 'Thu Jun 5 12:19:35 CEST 2008: performing suspend' + '[' true ']' + local 'fmt=%s\n' + '[' 'Thu Jun 5 12:19:35 CEST 2008: performing suspend' = -n ']' + printf '%s\n' 'Thu Jun 5 12:19:35 CEST 2008: performing suspend' Thu Jun 5 12:19:35 CEST 2008: performing suspend + sync + do_suspend + '[' -c /dev/pmu ']' + echo -n mem ++ date + log 'Thu Jun 5 12:19:50 CEST 2008: Awake.' + '[' true ']' + local 'fmt=%s\n' + '[' 'Thu Jun 5 12:19:50 CEST 2008: Awake.' = -n ']' + printf '%s\n' 'Thu Jun 5 12:19:50 CEST 2008: Awake.' Thu Jun 5 12:19:50 CEST 2008: Awake. ++ date + log 'Thu Jun 5 12:19:50 CEST 2008: Running hooks for resume' + '[' true ']' + local 'fmt=%s\n' + '[' 'Thu Jun 5 12:19:50 CEST 2008: Running hooks for resume' = -n ']' + printf '%s\n' 'Thu Jun 5 12:19:50 CEST 2008: Running hooks for resume' Thu Jun 5 12:19:50 CEST 2008: Running hooks for resume + run_hooks sleep resume reverse + local syshooks=/etc/pm/sleep.d + local phooks=/usr/lib/pm-utils/sleep.d + command_exists before_hooks + type before_hooks + return 1 + local sort=sort + local base + local hook + local 'oifs= ' + local 'nifs= ' + IFS=' ' + '[' reverse = reverse ']' + sort='sort -r' ++ IFS=' ' ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O '/etc/pm/sleep.d/*[!~]' ']' ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/00clear ']' ++ echo 00clear ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/01grub ']' ++ echo 01grub ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/05led ']' ++ echo 05led ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/10NetworkManager ']' ++ echo 10NetworkManager ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/11netcfg ']' ++ echo 11netcfg ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/49bluetooth ']' ++ echo 49bluetooth ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/50modules ']' ++ echo 50modules ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/55battery ']' ++ echo 55battery ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/65alsa ']' ++ echo 65alsa ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/90clock ']' ++ echo 90clock ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/94cpufreq ']' ++ echo 94cpufreq ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/95led ']' ++ echo 95led ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' ++ echo 98smart-kernel-video ++ for f in '"$syshooks/"*[!~]' '"$phooks/"*[!~]' ++ '[' -O /usr/lib/pm-utils/sleep.d/99video ']' ++ echo 99video ++ sort -r ++ uniq + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/99video ']' + '[' -f /usr/lib/pm-utils/sleep.d/99video ']' + hook=/usr/lib/pm-utils/sleep.d/99video + log -n '/usr/lib/pm-utils/sleep.d/99video resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/99video resume: ' /usr/lib/pm-utils/sleep.d/99video resume: + hook_ok /usr/lib/pm-utils/sleep.d/99video + local hook=99video + '[' -f /var/run/pm-utils/storage/disable_hook:99video ']' + '[' -f /var/run/pm-utils/storage/disable_hook:video ']' + '[' -x /usr/lib/pm-utils/sleep.d/99video ']' + return 0 + /usr/lib/pm-utils/sleep.d/99video resume ++ command_exists service ++ type service ++ return 1 + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_S3_BIOS=true + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_S3_MODE=true + for opt in '$PM_CMDLINE' + case "${opt##--quirk-}" in + QUIRK_NONE=true + command_exists vbetool + type vbetool + return 0 + command_exists radeontool + type radeontool + return 1 + case "$1" in + resume_video + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + resume_fbcon + local con + for con in '/sys/class/graphics/*/state' + '[' -f /sys/class/graphics/fb0/state ']' + echo 0 + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + quirk '' + '[' '' = true ']' + return 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/98smart-kernel-video ']' + '[' -f /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' + hook=/usr/lib/pm-utils/sleep.d/98smart-kernel-video + log -n '/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: ' /usr/lib/pm-utils/sleep.d/98smart-kernel-video resume: + hook_ok /usr/lib/pm-utils/sleep.d/98smart-kernel-video + local hook=98smart-kernel-video + '[' -f /var/run/pm-utils/storage/disable_hook:98smart-kernel-video ']' + '[' -f /var/run/pm-utils/storage/disable_hook:smart-kernel-video ']' + '[' -x /usr/lib/pm-utils/sleep.d/98smart-kernel-video ']' + return 0 + /usr/lib/pm-utils/sleep.d/98smart-kernel-video resume ++ command_exists service ++ type service ++ return 1 + case $1 in + exit 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/95led ']' + '[' -f /usr/lib/pm-utils/sleep.d/95led ']' + hook=/usr/lib/pm-utils/sleep.d/95led + log -n '/usr/lib/pm-utils/sleep.d/95led resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/95led resume: ' /usr/lib/pm-utils/sleep.d/95led resume: + hook_ok /usr/lib/pm-utils/sleep.d/95led + local hook=95led + '[' -f /var/run/pm-utils/storage/disable_hook:95led ']' + '[' -f /var/run/pm-utils/storage/disable_hook:led ']' + '[' -x /usr/lib/pm-utils/sleep.d/95led ']' + return 0 + /usr/lib/pm-utils/sleep.d/95led resume + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/94cpufreq ']' + '[' -f /usr/lib/pm-utils/sleep.d/94cpufreq ']' + hook=/usr/lib/pm-utils/sleep.d/94cpufreq + log -n '/usr/lib/pm-utils/sleep.d/94cpufreq resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/94cpufreq resume: ' /usr/lib/pm-utils/sleep.d/94cpufreq resume: + hook_ok /usr/lib/pm-utils/sleep.d/94cpufreq + local hook=94cpufreq + '[' -f /var/run/pm-utils/storage/disable_hook:94cpufreq ']' + '[' -f /var/run/pm-utils/storage/disable_hook:cpufreq ']' + '[' -x /usr/lib/pm-utils/sleep.d/94cpufreq ']' + return 0 + /usr/lib/pm-utils/sleep.d/94cpufreq resume ++ command_exists service ++ type service ++ return 1 + '[' -d /sys/devices/system/cpu/ ']' + case "$1" in + thaw_cpufreq + cd /sys/devices/system/cpu/ + for x in 'cpu[0-9]*/cpufreq/scaling_governor' + '[' -f 'cpu[0-9]*/cpufreq/scaling_governor' ']' + continue + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/90clock ']' + '[' -f /usr/lib/pm-utils/sleep.d/90clock ']' + hook=/usr/lib/pm-utils/sleep.d/90clock + log -n '/usr/lib/pm-utils/sleep.d/90clock resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/90clock resume: ' /usr/lib/pm-utils/sleep.d/90clock resume: + hook_ok /usr/lib/pm-utils/sleep.d/90clock + local hook=90clock + '[' -f /var/run/pm-utils/storage/disable_hook:90clock ']' + '[' -f /var/run/pm-utils/storage/disable_hook:clock ']' + '[' -x /usr/lib/pm-utils/sleep.d/90clock ']' + return 0 + /usr/lib/pm-utils/sleep.d/90clock resume ++ command_exists service ++ type service ++ return 1 + NTPD_LOCK=pm-ntpd.lock + case "$1" in + resume_clock + /sbin/hwclock --hctosys + rc=0 + spin_lock pm-ntpd.lock + local elapsed=0 + try_lock pm-ntpd.lock + mkdir -p /var/run/pm-utils/locks + return 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/65alsa ']' + '[' -f /usr/lib/pm-utils/sleep.d/65alsa ']' + hook=/usr/lib/pm-utils/sleep.d/65alsa + log -n '/usr/lib/pm-utils/sleep.d/65alsa resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/65alsa resume: ' /usr/lib/pm-utils/sleep.d/65alsa resume: + hook_ok /usr/lib/pm-utils/sleep.d/65alsa + local hook=65alsa + '[' -f /var/run/pm-utils/storage/disable_hook:65alsa ']' + '[' -f /var/run/pm-utils/storage/disable_hook:alsa ']' + '[' -x /usr/lib/pm-utils/sleep.d/65alsa ']' + return 0 + /usr/lib/pm-utils/sleep.d/65alsa resume ++ command_exists service ++ type service ++ return 1 + command_exists alsactl + type alsactl + return 0 + case "$1" in + alsactl restore 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/55battery ']' + '[' -f /usr/lib/pm-utils/sleep.d/55battery ']' + hook=/usr/lib/pm-utils/sleep.d/55battery + log -n '/usr/lib/pm-utils/sleep.d/55battery resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/55battery resume: ' /usr/lib/pm-utils/sleep.d/55battery resume: + hook_ok /usr/lib/pm-utils/sleep.d/55battery + local hook=55battery + '[' -f /var/run/pm-utils/storage/disable_hook:55battery ']' + '[' -f /var/run/pm-utils/storage/disable_hook:battery ']' + '[' -x /usr/lib/pm-utils/sleep.d/55battery ']' + return 0 + /usr/lib/pm-utils/sleep.d/55battery resume + local lock=/var/run/pm-utils/locks/pm-ntpd.lock ++ command_exists service ++ type service ++ return 1 + case "$1" in + resume_batteries ++ hal-find-by-capability --capability battery + return 0 + trap 'release_lock "${NTPD_LOCK}"' 0 + sleep 20 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/50modules ']' + '[' -f /usr/lib/pm-utils/sleep.d/50modules ']' + hook=/usr/lib/pm-utils/sleep.d/50modules + log -n '/usr/lib/pm-utils/sleep.d/50modules resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/50modules resume: ' /usr/lib/pm-utils/sleep.d/50modules resume: + hook_ok /usr/lib/pm-utils/sleep.d/50modules + local hook=50modules + '[' -f /var/run/pm-utils/storage/disable_hook:50modules ']' + '[' -f /var/run/pm-utils/storage/disable_hook:modules ']' + '[' -x /usr/lib/pm-utils/sleep.d/50modules ']' + return 0 + /usr/lib/pm-utils/sleep.d/50modules resume ++ command_exists service ++ type service ++ return 1 + case "$1" in + resume_modules + modreload + for x in '"${STORAGEDIR}"/module:*' + '[' -O '/var/run/pm-utils/storage/module:*' ']' + continue + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/49bluetooth ']' + '[' -f /usr/lib/pm-utils/sleep.d/49bluetooth ']' + hook=/usr/lib/pm-utils/sleep.d/49bluetooth + log -n '/usr/lib/pm-utils/sleep.d/49bluetooth resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/49bluetooth resume: ' /usr/lib/pm-utils/sleep.d/49bluetooth resume: + hook_ok /usr/lib/pm-utils/sleep.d/49bluetooth + local hook=49bluetooth + '[' -f /var/run/pm-utils/storage/disable_hook:49bluetooth ']' + '[' -f /var/run/pm-utils/storage/disable_hook:bluetooth ']' + '[' -x /usr/lib/pm-utils/sleep.d/49bluetooth ']' + return 0 + /usr/lib/pm-utils/sleep.d/49bluetooth resume ++ command_exists service ++ type service ++ return 1 + '[' -f /proc/acpi/ibm/bluetooth ']' + exit 254 + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/11netcfg ']' + '[' -f /usr/lib/pm-utils/sleep.d/11netcfg ']' + hook=/usr/lib/pm-utils/sleep.d/11netcfg + log -n '/usr/lib/pm-utils/sleep.d/11netcfg resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/11netcfg resume: ' /usr/lib/pm-utils/sleep.d/11netcfg resume: + hook_ok /usr/lib/pm-utils/sleep.d/11netcfg + local hook=11netcfg + '[' -f /var/run/pm-utils/storage/disable_hook:11netcfg ']' + '[' -f /var/run/pm-utils/storage/disable_hook:netcfg ']' + '[' -x /usr/lib/pm-utils/sleep.d/11netcfg ']' + return 0 + /usr/lib/pm-utils/sleep.d/11netcfg resume ++ command_exists service ++ type service ++ return 1 + '[' -x /usr/bin/netcfg2 ']' + exit 0 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/10NetworkManager ']' + '[' -f /usr/lib/pm-utils/sleep.d/10NetworkManager ']' + hook=/usr/lib/pm-utils/sleep.d/10NetworkManager + log -n '/usr/lib/pm-utils/sleep.d/10NetworkManager resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/10NetworkManager resume: ' /usr/lib/pm-utils/sleep.d/10NetworkManager resume: + hook_ok /usr/lib/pm-utils/sleep.d/10NetworkManager + local hook=10NetworkManager + '[' -f /var/run/pm-utils/storage/disable_hook:10NetworkManager ']' + '[' -f /var/run/pm-utils/storage/disable_hook:NetworkManager ']' + '[' -x /usr/lib/pm-utils/sleep.d/10NetworkManager ']' + return 0 + /usr/lib/pm-utils/sleep.d/10NetworkManager resume ++ command_exists service ++ type service ++ return 1 + command_exists dbus-send + type dbus-send + return 0 + case "$1" in + resume_nm + dbus-send --system --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.wake + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/05led ']' + '[' -f /usr/lib/pm-utils/sleep.d/05led ']' + hook=/usr/lib/pm-utils/sleep.d/05led + log -n '/usr/lib/pm-utils/sleep.d/05led resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/05led resume: ' /usr/lib/pm-utils/sleep.d/05led resume: + hook_ok /usr/lib/pm-utils/sleep.d/05led + local hook=05led + '[' -f /var/run/pm-utils/storage/disable_hook:05led ']' + '[' -f /var/run/pm-utils/storage/disable_hook:led ']' + '[' -x /usr/lib/pm-utils/sleep.d/05led ']' + return 0 + /usr/lib/pm-utils/sleep.d/05led resume + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/01grub ']' + '[' -f /usr/lib/pm-utils/sleep.d/01grub ']' + hook=/usr/lib/pm-utils/sleep.d/01grub + log -n '/usr/lib/pm-utils/sleep.d/01grub resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/01grub resume: ' /usr/lib/pm-utils/sleep.d/01grub resume: + hook_ok /usr/lib/pm-utils/sleep.d/01grub + local hook=01grub + '[' -f /var/run/pm-utils/storage/disable_hook:01grub ']' + '[' -f /var/run/pm-utils/storage/disable_hook:grub ']' + '[' -x /usr/lib/pm-utils/sleep.d/01grub ']' + return 0 + /usr/lib/pm-utils/sleep.d/01grub resume + hook_exit_status 254 + case $1 in + log 'not applicable.' + '[' true ']' + local 'fmt=%s\n' + '[' 'not applicable.' = -n ']' + printf '%s\n' 'not applicable.' not applicable. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + for base in '$(IFS="${oifs}"; for f in "$syshooks/"*[!~] "$phooks/"*[!~]; do [ -O "$f" ] && echo ${f##*/} ; done | $sort | uniq)' + IFS=' ' + '[' -f /etc/pm/sleep.d/00clear ']' + '[' -f /usr/lib/pm-utils/sleep.d/00clear ']' + hook=/usr/lib/pm-utils/sleep.d/00clear + log -n '/usr/lib/pm-utils/sleep.d/00clear resume: ' + '[' true ']' + local 'fmt=%s\n' + '[' -n = -n ']' + fmt=%s + shift + printf %s '/usr/lib/pm-utils/sleep.d/00clear resume: ' /usr/lib/pm-utils/sleep.d/00clear resume: + hook_ok /usr/lib/pm-utils/sleep.d/00clear + local hook=00clear + '[' -f /var/run/pm-utils/storage/disable_hook:00clear ']' + '[' -f /var/run/pm-utils/storage/disable_hook:clear ']' + '[' -x /usr/lib/pm-utils/sleep.d/00clear ']' + return 0 + /usr/lib/pm-utils/sleep.d/00clear resume ++ command_exists service ++ type service ++ return 1 + case "$1" in + state_exists console + '[' -O /var/run/pm-utils/storage/state:console ']' ++ restorestate console ++ state_exists console ++ '[' -O /var/run/pm-utils/storage/state:console ']' ++ cat /var/run/pm-utils/storage/state:console + chvt 7 + deallocvt 63 + hook_exit_status 0 + case $1 in + log success. + '[' true ']' + local 'fmt=%s\n' + '[' success. = -n ']' + printf '%s\n' success. success. + update_parameters + '[' -f /var/run/pm-utils/storage/parameters.new ']' + return + IFS=' ' + IFS=' ' ++ date + log 'Thu Jun 5 12:19:50 CEST 2008: Finished.' + '[' true ']' + local 'fmt=%s\n' + '[' 'Thu Jun 5 12:19:50 CEST 2008: Finished.' = -n ']' + printf '%s\n' 'Thu Jun 5 12:19:50 CEST 2008: Finished.' Thu Jun 5 12:19:50 CEST 2008: Finished. + remove_suspend_lock + release_lock pm-utils.lock + local lock=/var/run/pm-utils/locks/pm-utils.lock + rm -f /var/run/pm-utils/locks/pm-utils.lock + return 0 + restartservice ntpd + '[' -O /var/run/pm-utils/storage/service:ntpd ']' ++ release_lock pm-ntpd.lock ++ local lock=/var/run/pm-utils/locks/pm-ntpd.lock ++ rm -f /var/run/pm-utils/locks/pm-ntpd.lock ++ return 0