From owner-freebsd-acpi@FreeBSD.ORG Wed May 5 13:47:09 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 B2EA816A501 for ; Wed, 5 May 2004 13:47:09 -0700 (PDT) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 891AF43D1D for ; Wed, 5 May 2004 13:47:09 -0700 (PDT) (envelope-from nate@root.org) Received: (qmail 36571 invoked by uid 1000); 5 May 2004 20:47:10 -0000 Date: Wed, 5 May 2004 13:47:10 -0700 (PDT) From: Nate Lawson To: "Liam J. Foy" In-Reply-To: <40993503.9060203@sepulcrum.org> Message-ID: <20040505134633.E36557@root.org> References: <40993503.9060203@sepulcrum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-acpi@freebsd.org Subject: Re: Quick question 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: Wed, 05 May 2004 20:47:09 -0000 On Wed, 5 May 2004, Liam J. Foy wrote: > I am coding a battery daemon for my laptop in C. When I print the value > of ptr->ai_batt_time (machine/apm_bios.h) it is returning 0. -1 would > incline the device isnt supported, but why is it returning 0 ? Send the full output of "sysctl hw.acpi". Some machines can't detect the battery state while on AC power. -Nate