From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 31 19:34:26 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org 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 D0A3C16A420 for ; Tue, 31 Jan 2006 19:34:26 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8307343D45 for ; Tue, 31 Jan 2006 19:34:25 +0000 (GMT) (envelope-from manfred.lotz@arcor.de) Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 321B0DEFF5; Tue, 31 Jan 2006 20:34:24 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 21E511944E6; Tue, 31 Jan 2006 20:34:24 +0100 (CET) Received: from wizard.sanskrit.local.net (dslb-084-058-033-020.pools.arcor-ip.net [84.58.33.20]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id DF85C114FC5; Tue, 31 Jan 2006 20:34:23 +0100 (CET) Received: from wizard.sanskrit.local.net (localhost.sanskrit.local.net [127.0.0.1]) by wizard.sanskrit.local.net (8.13.5/8.13.5) with SMTP id k0VJYZHs034852; Tue, 31 Jan 2006 20:34:35 +0100 (CET) (envelope-from manfred.lotz@arcor.de) Date: Tue, 31 Jan 2006 20:34:30 +0100 From: Manfred Lotz To: "Kevin Oberman" Message-Id: <20060131203430.6c9ebe0c.manfred.lotz@arcor.de> In-Reply-To: <20060126161526.EDF304503E@ptavv.es.net> References: <20060126143040.a6b1f796.manfred.lotz@arcor.de> <20060126161526.EDF304503E@ptavv.es.net> X-Mailer: Sylpheed version 2.2.0beta2 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org Subject: Re: suspend/resume event 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: Tue, 31 Jan 2006 19:34:26 -0000 On Thu, 26 Jan 2006 08:15:26 -0800 "Kevin Oberman" wrote: > > Date: Thu, 26 Jan 2006 14:30:40 +0100 > > From: Manfred Lotz > > Sender: owner-freebsd-acpi@freebsd.org > >=20 > > On Sat, 21 Jan 2006 20:50:23 -0800 > > Nate Lawson wrote: > >=20 > > > Manfred Lotz wrote: > > > > Hi there, > > > > With my Samsung X20 1730 suspend /resume works fine when doing > > > > acpiconf -s 3. I added /etc/rc.d/moused restart > > > > in /etc/rc.resume and the touchpad mouse gets awake after > > > > resuming. That's great. > > > >=20 > > > > However when closing the lid (I set > > > > hw.acpi.lid_switch_state=3DS3) and then pressing the power button > > > > although suspend/resume works fine the mouse won't get > > > > restarted. This means /etc/rc.resume and > > > > presumably /etc/rc.suspend won't get called in this case. > > > >=20 > > > > Same happen when pressing Fn-ESC the key for suspend. > > > >=20 > > > > How can I make sure /etc/rc.suspend as well as /etc/rc.resuem > > > > gets called in the "non-acpiconf" cases? > > >=20 > > > Ok, I committed code to -current to provide a resume event and > > > will mfc in a week or two. You can catch it in devd.conf with: > > >=20 > > > notify 10 { > > > match "system" "kern"; > > > match "subsystem" "power"; > > > match "type" "resume"; > > > action "SOME SCRIPT"; > > > }; > > >=20 > >=20 > > Well, I had problems testing it. I actually have a 6.0 STABLE on my > > Samsung and installed a small 7.0 current system. However, it didn > > =B4't even boot with ACPI. It stumbles over acd0 where it is simply > > hanging with timeout stuff or so. > >=20 > > Could I possible copy some src files to my 6.0 system and rebuild a > > kernel in order to test it? >=20 > This is a known problem with current. The work-around is to disable > DMA for the cd. Add hw.ata.ata_dma=3D0 to /boot/loader.conf. >=20 Thanks for the hint. Actually it was hw.ata.atapi_dma=3D0 which made it. --=20 Manfred