FreeBSD 7.0 suspend

Andreas Wetzel mickey242 at gmx.net
Sun Apr 6 11:39:39 UTC 2008


Hi

i recently upgraded an IBM ThinkPad T30 from 6.3 to 7.0 and checked out the
suspend/resume support which seems to work much more reliable with 7.0.
But there was one problem i came across. On suspend /etc/rc.suspend does
not get executed and the machine enters the given sleep state immediately.
After some fiddling i now seem to have found the reason for this behaviour
in /sys/dev/acpica/acpi.c:

     /* If devd(8) is not running, immediately enter the sleep state. */
     if (devctl_process_running() == FALSE) {
     ...

For some reason this check returns FALSE, although devd is actually running.
When i comment out the check, everything works as expected: devd is notified,
executes /etc/rc.suspend, which in turn calls acpiconf -k 0 when done, and
then the system goes to sleep.

Any ideas, why this function does not correctly recognize that devd is
running?

Andreas

-- 
Keep it icy man.
I don't want to end up a corpse before my time because you were daydreaming.


More information about the freebsd-acpi mailing list