From owner-freebsd-acpi@FreeBSD.ORG Sat Dec 11 15:56:25 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5FE916A4CE for ; Sat, 11 Dec 2004 15:56:25 +0000 (GMT) Received: from muse.clarku.edu (calliope.clarku.edu [140.232.1.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3422C43D5A for ; Sat, 11 Dec 2004 15:56:25 +0000 (GMT) (envelope-from ipartola@pisem.net) Received: from [140.232.148.83] (thalia.clarku.edu [140.232.1.65]) by muse.clarku.edu (Postfix) with ESMTP id 7B9581D6115; Sat, 11 Dec 2004 10:54:24 -0500 (EST) Message-ID: <41BB1831.8030100@pisem.net> Date: Sat, 11 Dec 2004 10:54:25 -0500 From: Igor Partola User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Spoerlein , freebsd-acpi@freebsd.org References: <41BA85A0.3050206@pisem.net> <20041211101718.GA1283@galgenberg.net> In-Reply-To: <20041211101718.GA1283@galgenberg.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Dell Inspiron 8600 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2004 15:56:25 -0000 Ulrich Spoerlein wrote: >Somehow devd/acpi/whatever doesn't "see" the resume of the laptop, I >normally just push the "LCD Button" after resumeing. When releasing the >LCD-Button the display will turn on again. A hack, but a working one :) > > > >>I tried setting an event in devd.conf for the power button to turn >>the display back. It did not work and either way I would prefer to use >>rc.suspend and rc.resume for this kind of a thing since I'd like to >>ultimately have the power button suspend and resume the machine. >> >> > >Run with 'devd -Dd', closely observe which events are triggered when >hitting suspend and when resumeing (as I said above, for me, devd >doesn't "see" anything when resuming :( > > Running devd -Dd does not show any events. However I believe I found a better hack for this situation. Here's a portion of my devd.conf: notify 10 { match "system" "ACPI"; match "subsystem" "Button"; match "notify" "0x01"; notify "/etc/rc.sus"; } I hope I got the syntax right since I'm typing from memory. rc.sus is my script that calls acpiconf which *does* honor rc.suspend and rc.resume. rc.sus for now contains #!/bin/sh acpiconf -s 1 But I will modify it, unless someone fixes the event situation. Respect Igor P.S.: Don't forget to set hw.acpi.sleep_button_state to NONE