From owner-cvs-src@FreeBSD.ORG Tue Sep 7 16:58:13 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5175E16A4CE; Tue, 7 Sep 2004 16:58:13 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3487F43D31; Tue, 7 Sep 2004 16:58:13 +0000 (GMT) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i87GwC1Y035315; Tue, 7 Sep 2004 16:58:12 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i87GwCgY035314; Tue, 7 Sep 2004 16:58:12 GMT (envelope-from njl) Message-Id: <200409071658.i87GwCgY035314@repoman.freebsd.org> From: Nate Lawson Date: Tue, 7 Sep 2004 16:58:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_powerres.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 16:58:13 -0000 njl 2004-09-07 16:58:12 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_powerres.c Log: Instead of trusting _STA from power resources, cache the first value returned and then infer the state from calls to _ON/_OFF. This works around a problem in systems that don't correctly report the state (i.e. the HP Omnibook 500 reports "on" for its fan always after it has been turned on once). Revision Changes Path 1.27 +11 -5 src/sys/dev/acpica/acpi_powerres.c