Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2014 02:47:02 -0800
From:      Colin Percival <cperciva@freebsd.org>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>
Subject:   Re: ENXIOing non-present battery
Message-ID:  <5486D326.5080708@freebsd.org>
In-Reply-To: <CAJ-Vmo=c0f06JYs%2BK1GvCYjoSWdYqm3z_uti=6f6qEirQQ7Vzw@mail.gmail.com>
References:  <54840781.70603@freebsd.org>	<CAJ-Vmokzdep71ty_ctvAEQSDvCsOQj15wQ8p96%2B3fCBtr8dvYg@mail.gmail.com>	<54862F5E.4040909@freebsd.org> <CAJ-Vmo=c0f06JYs%2BK1GvCYjoSWdYqm3z_uti=6f6qEirQQ7Vzw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/08/14 15:27, Adrian Chadd wrote:
> What's the output of acpiconf -i0 and acpiconf -i1?

acpiconf -i0 is exactly what you'd expect.  acpiconf -i1 shows blank for
the model/serial/type/OEM info strings, and 0 mAh/mV for the rest except
State which is "not present".

> I wonder if changing 'state' to something else would keep everything happy.

I can't see how it would.  The hald code uses hw.acpi.battery.units to see
how many batteries there are, then reads the _BIF data via ioctl; the "state"
isn't even in _BIF.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



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