Subject: Re: regression in acpi_apm
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 10/27/2007 19:25:59
In article <1193484748.392151.1627.nullmailer@galant.ukfsn.org>,
Iain Hibbert  <plunky@rya-online.net> wrote:
>Hi,
>   With "apm* at acpi?" I see a regression involving the battery minutes
>left value. apm(4) says:
>
>	minutes_left is an estimated remaining lifetime (or 0 if the BIOS
>	cannot provide an estimate).
>
>but acpi_apm.c fills it in with a bogus value of 0xffff. A change was made
>to apm(8) to handle this behaviour, but it doesn't help third party
>software (eg icewm)
>
>  The patch below fixes this regression, and also makes apm(8) behave
>a bit better wrt user specified options
>
>  Ok to commit?

Sure.

christos