From owner-freebsd-stable@FreeBSD.ORG Fri Jan 12 08:13:29 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8231816A412 for ; Fri, 12 Jan 2007 08:13:29 +0000 (UTC) (envelope-from axel@dnepr.net) Received: from mail.dnepr.net (mail.dnepr.net [217.198.131.97]) by mx1.freebsd.org (Postfix) with ESMTP id 3655313C448 for ; Fri, 12 Jan 2007 08:13:29 +0000 (UTC) (envelope-from axel@dnepr.net) Received: from gx.dnepr.net ([217.198.131.109]) by mail.dnepr.net with esmtp id 1H5HXT-000D08-Bq for freebsd-stable@freebsd.org; Fri, 12 Jan 2007 10:13:27 +0200 Message-ID: <45A74326.3090100@dnepr.net> Date: Fri, 12 Jan 2007 10:13:26 +0200 From: Oleg Kozheltsev Organization: ISP EuroNet User-Agent: Thunderbird 1.5.0.9 (X11/20061226) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <45A5E193.1070307@dnepr.net> In-Reply-To: <45A5E193.1070307@dnepr.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ACPI resume event and devd X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2007 08:13:29 -0000 Oleg Kozheltsev wrote: > On my notebook (Compaq Armada M700, 6.1), after sleep state mouse > freeze. So, I added in devd.conf action for restart moused. But, as I > can see, devd don't catch ACPI Button 0x00 event (run him with -Dd flags > and don't see any new strings at all), but kernel write "wakeup from > sleeping state (slept 00:00:31)" in logger right. Also, devd catching > and working on with all other ACPI event's correctly (Button 0x01, Lid, > etc). Searched some info on the web, try some tips, but any luck... If somebody interesting, the other way to do this is: sysctl -w hw.acpi.sleep_button_state=NONE notify 10 { match "system" "ACPI"; match "subsystem" "Button"; match "notify" "0x01"; action "/usr/sbin/acpiconf -s 3"; }; And rc.suspend and rc.resume will be executed (acpiconf(8)).