Package: hibernate Version: 1.98.1-1 Severity: normal Hi,
Enabling FullSpeedCPU stalls the resume process. The relevant part of the -v4 log : hibernate: [98] Executing FullSpeedCPUResume ... + [ -n ] + FullSpeedCPUResume + [ -f /tmp/tmp.hibernate.f16349 ] + . /tmp/tmp.hibernate.f16349 + echo 600000 + echo performance /tmp/tmp.hibernate.f16349: 6: Syntax error: redirection unexpected + eval + PluginTermination + local i + Swsusp2Termination + return 0 + return 0 + date + echo Resumed at lundi 5 mai 2008, 22:53:55 (UTC+0200) + tee -a -i /var/log/hibernate.log + exit 0 hibernate: [98] Executing FullSpeedCPUResume ... + [ -n ] + FullSpeedCPUResume + [ -f /tmp/tmp.hibernate.f16349 ] + . /tmp/tmp.hibernate.f16349 + echo 600000 + echo performance /tmp/tmp.hibernate.f16349: 6: Syntax error: redirection unexpected + eval + PluginTermination + local i + Swsusp2Termination + return 0 + return 0 + date + echo Resumed at lundi 5 mai 2008, 22:53:55 (UTC+0200) + tee -a -i /var/log/hibernate.log + exit 0 If I look into that failing script, I can see : $ sudo cat /tmp/tmp.hibernate.f16349 # Temporary file for hibernate script. # If you're reading this then it's probably safe to delete. echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor [ -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed" ] && echo <unsupported> > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed I think the test [ -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed" ] is not good when using kernel 2.6.25: $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed <unsupported> Something in the likes of the following would work for me: diff -rN -u old-hibernate-1.98.1/scriptlets.d/hardware_tweaks new-hibernate-1.98.1/scriptlets.d/hardware_tweaks --- old-hibernate-1.98.1/scriptlets.d/hardware_tweaks 2008-05-05 23:22:46.000000000 +0200 +++ new-hibernate-1.98.1/scriptlets.d/hardware_tweaks 2008-05-05 23:22:46.000000000 +0200 @@ -126,7 +126,8 @@ echo $min_freq > $cpu/scaling_min_freq echo $governor > $cpu/scaling_governor -[ -f "$cpu/scaling_setspeed" ] && echo $setspeed > $cpu/scaling_setspeed +[ -f "$cpu/scaling_setspeed" ] && [ "x$setspeed" != "x<unsupported>" ] &&\ + echo "$setspeed" > $cpu/scaling_setspeed EOT # Set governor to performance if we've got it Cheers, Alex -- Package-specific info: --- configuration ==> /etc/hibernate/common.conf <== Verbosity 0 LogFile /var/log/hibernate.log LogVerbosity 1 Distribution debian SaveClock restore-only LockGnomeScreenSaver yes UnloadBlacklistedModules yes LoadModules auto DownInterfaces eth0 DownInterfaces eth1 RestartServices laptop-mode StartServices anacron StopServices vsftpd StopServices apache SwitchToTextMode yes ==> /etc/hibernate/disk.conf <== TryMethod ususpend-disk.conf TryMethod sysfs-disk.conf ==> /etc/hibernate/hibernate.conf <== TryMethod suspend2.conf TryMethod disk.conf TryMethod ram.conf ==> /etc/hibernate/ram.conf <== TryMethod sysfs-ram.conf EnableVbetool yes VbetoolPost yes ==> /etc/hibernate/suspend2.conf <== UseSuspend2 yes Reboot no EnableEscape yes DefaultConsoleLevel 1 Compressor lzf Encryptor none ProcSetting userui_program /usr/lib/tuxonice-userui/tuxoniceui_text FullSpeedCPU yes Include common.conf ==> /etc/hibernate/sysfs-disk.conf <== UseSysfsPowerState disk Include common.conf ==> /etc/hibernate/sysfs-ram.conf <== UseSysfsPowerState mem Include common.conf ==> /etc/hibernate/ususpend-both.conf <== USuspendMethod both Include common.conf ==> /etc/hibernate/ususpend-disk.conf <== USuspendMethod disk Include common.conf ==> /etc/hibernate/ususpend-ram.conf <== USuspendMethod ram Include common.conf --- /sys/power ==> /sys/power/disk <== [platform] test testproc shutdown reboot ==> /sys/power/image_size <== 524288000 ==> /sys/power/resume <== 8:5 ==> /sys/power/state <== mem disk ==> /sys/power/tuxonice <== --- log Starting suspend at lundi 5 mai 2008, 22:52:58 (UTC+0200) hibernate: [01] Executing CheckLastResume ... hibernate: [01] Executing CheckRunlevel ... hibernate: [01] Executing LockFileGet ... hibernate: [01] Executing NewKernelFileCheck ... hibernate: [10] Executing EnsureSwsusp2Capable ... hibernate: [11] Executing XHacksSuspendHook1 ... hibernate: [30] Executing ServicesStop ... Executing invoke-rc.d apache stop Executing invoke-rc.d laptop-mode stop Disabling laptop mode...done (disabled, not active.). hibernate: [59] Executing RemountXFSBootRO ... hibernate: [60] Executing NetworkStop ... Bringing down interface eth0 Bringing down interface eth1 hibernate: [89] Executing SaveKernelModprobe ... Saved /proc/sys/kernel/modprobe is /doesnt/exist hibernate: [91] Executing LockGnomeScreensaver ... Locking niol's gnome-screensaver on display :0.0 using authority file /home/niol/.Xauthority hibernate: [91] Executing ModulesUnloadBlacklist ... Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules Module version for ipw2100 is Module version for ipw2200 is 2 Module version for snd_bt_sco is Module version for ndiswrapper is hibernate: [95] Executing XHacksSuspendHook2 ... xhacks: changing console from 7 to 15 hibernate: [97] Executing ChangeToSwsuspVT ... hibernate: [98] Executing CheckRunlevel ... hibernate: [98] Executing FullSpeedCPUSuspend ... Switched to performance, with min freq at 1600000 hibernate: [98] Executing Swsusp2ConfigSet ... hibernate: [99] Executing DoSwsusp2 ... hibernate: Activating suspend ... hibernate: [98] Executing FullSpeedCPUResume ... Resumed at lundi 5 mai 2008, 22:53:55 (UTC+0200) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25-vgn-b1vp (PREEMPT) Locale: LANG=fr_FR.UTF.8, LC_CTYPE=fr_FR.UTF.8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages hibernate depends on: ii console-tools 1:0.2.3dbs-65.1 Linux console and font utilities Versions of packages hibernate recommends: ii dash 0.5.4-9 POSIX-compliant shell pn hdparm <none> (no description available) pn uswsusp <none> (no description available) ii vbetool 1.0-3 run real-mode video BIOS code to a -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]