From owner-freebsd-acpi@FreeBSD.ORG Sun Apr 6 11:39:39 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26DD9106566C for ; Sun, 6 Apr 2008 11:39:39 +0000 (UTC) (envelope-from mickey242@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 674838FC2A for ; Sun, 6 Apr 2008 11:39:38 +0000 (UTC) (envelope-from mickey242@gmx.net) Received: (qmail invoked by alias); 06 Apr 2008 11:12:57 -0000 Received: from port-ip-213-211-209-123.reverse.mdcc-fun.de (EHLO gunhead.enforcer.cc) [213.211.209.123] by mail.gmx.net (mp055) with SMTP; 06 Apr 2008 13:12:57 +0200 X-Authenticated: #8913523 X-Provags-ID: V01U2FsdGVkX18Xw6N6LJwXt4FbQVah4pcmDaIQ4gdhnBW3lZdCmu AKJRNSCT23BsgW Message-ID: <47F8B038.7000400@gmx.net> Date: Sun, 06 Apr 2008 13:12:56 +0200 From: Andreas Wetzel User-Agent: Thunderbird 2.0.0.12 (X11/20080310) MIME-Version: 1.0 To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: FreeBSD 7.0 suspend X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 11:39:39 -0000 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.