From owner-freebsd-current@FreeBSD.ORG Mon May 31 14:30:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A357016A4CE; Mon, 31 May 2004 14:30:56 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B7EB43D1F; Mon, 31 May 2004 14:30:56 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Mon, 31 May 2004 14:30:45 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 6E8BE5D0A; Mon, 31 May 2004 14:30:45 -0700 (PDT) To: Nate Lawson In-reply-to: Your message of "Fri, 28 May 2004 00:38:32 PDT." <20040528003424.E96434@root.org> Date: Mon, 31 May 2004 14:30:45 -0700 From: "Kevin Oberman" Message-Id: <20040531213045.6E8BE5D0A@ptavv.es.net> cc: acpi@freebsd.org cc: current@freebsd.org Subject: Re: ACPI event testing needed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 21:30:56 -0000 > Date: Fri, 28 May 2004 00:38:32 -0700 (PDT) > From: Nate Lawson > Sender: owner-freebsd-current@freebsd.org > > I've just finished a lot of work on acpi events (GPEs). These drive > things like the lid switch and device wake capabilities. If your system > works for suspend/resume, please make sure it still behaves correctly over > multiple suspend/resume cycles. If you're feeling adventurous, try the > new wake sysctls: > > sysctl dev | grep wake > > By setting them to 0 or 1, you can enable/disable a device waking the > system. Note that non-ACPI devices are still not properly hooked in here > so they won't work (i.e. sio or modems). But you can change the lid > independently of the sleep button, for example. > > Also, please be sure that your system still powers off correctly when > shutdown. I may have fixed some systems that didn't power off correctly > as well. Things are working pretty well on my trusty T30. System suspends and resumes fine (with the jhb acpi_video_dpms patch). Only sound fails to work properly after resume, but I've reported this in the past and I still suspect it's a PCI issue as opposed to ACPI. I did try the sysctl to disable wake on lid switch and it worked as expected. I had to back out jhb's machdep_intr.c 1.6 patch to get the system to complete a shutdown. With the patch in place, the shutdown simply freezes after shutting down everything and syncing disks. I still hope to get suspend/resume with working sound one day, but ACPI seems really, really close. I am no longer seeing the interrupt issues previously reported. I have now repeatedly paused the system and resumed it with no obvious ill effects. I have also suspended and resumed using Tobias Roth's profile tool and the crashes previously seen with ACPI there are gone. (Not that profile resumes cleanly yet, but Tobias is working on the problems.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634