suspend-to-disk: fan always on and misc kernel errors

Andrea Borgia
2005-03-27T17:42:05Z

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Hello.

Long time after first trying suspend-to-disk, I gave it a spin again
with 2.6.11.6, pristine save for two powernow/timer patches.

There are some rough corners, but it appears to be mostly working,
including X. The glitches are:

1) scheduling while atomic (see kernel log)
2) script terminates with error and spews "command not found" problems
only in the post-wakeup section, even though full pathnames are used
(see script)
3) fan is always on, even though load approaches unity after a while

I'm attaching the suspend script I am using and the kernel log and I
would like to hear from other people who have similar problems on a
similar hardware: my laptop is an Acer 1357LMi, mobo chipset is VIA
KM400 and vga is an ATI Mobility M9+. DSDT and other info available on
request.

BR,
Andrea.

--
Homepage: http://andrea.borgia.bo.it / Amateur radio: IZ4FHT

[-- Attachment #2: kern.log.gz --]
[-- Type: application/x-gzip, Size: 11927 bytes --]

[-- Attachment #3: swsusp-script --]
[-- Type: text/plain, Size: 792 bytes --]

#!/bin/bash
set -x

# Modules to unload/reload (do not use radeonfb!)
RELOAD="psmouse mousedev acerhk"
# Subsystems to stop/start
RESTART="hotplug powernowd gpm"

# Switch to console to reduce problems
/usr/bin/chvt 1

# Stopping subsystems
for S in $RESTART
do
/etc/init.d/$S stop
done

# Unloading modules
for M in $RELOAD
do
if /bin/grep -q "^$M[[:blank:]]" /proc/modules
then
/sbin/modprobe -r "$M"
fi
done

# Zzzzz
sync
echo disk > /sys/power/state
#sync

# Reloading modules...
for M in $RELOAD
do
if /bin/grep -q "^$M[[:blank:]]" /proc/modules
then
/sbin/modprobe "$M"
fi
done

# Restarting subsystems...
for S in $RESTART
do
/etc/init.d/$S start
done