Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2004 13:47:10 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        "Liam J. Foy" <liamfoy@sepulcrum.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: Quick question
Message-ID:  <20040505134633.E36557@root.org>
In-Reply-To: <40993503.9060203@sepulcrum.org>
References:  <40993503.9060203@sepulcrum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040505134633.E36557>