Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2018 22:29:05 +0000
From:      Johannes Lundberg <johalun0@gmail.com>
To:        jhb@freebsd.org
Cc:        freebsd-current <freebsd-current@freebsd.org>, manu@freebsd.org
Subject:   Re: axp288 on Intel HW
Message-ID:  <CAECmPwtSNbdLU0eCbz1wh45DJ18-5QNQysp1ptxnG9amrYHgQw@mail.gmail.com>
In-Reply-To: <7b4b26b3-8e2a-daa3-82f4-eac83c71ade5@FreeBSD.org>
References:  <CAECmPwsov=h76Xp_1KAzjfQnDnT6oFtu5gY%2BgUBU%2BGO%2BTWM1VA@mail.gmail.com> <7b4b26b3-8e2a-daa3-82f4-eac83c71ade5@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 16, 2018 at 5:11 PM John Baldwin <jhb@freebsd.org> wrote:

> On 11/16/18 12:51 AM, Johannes Lundberg wrote:
> > Hi
> >
> > I have a Lenovo Ideapad Miix 310 that has a Intel CherryTrail CPU and it
> > runs FreeBSD quite nicely (with accelerated graphics). What I'm missing
> is
> > battery life status..
> >
> > I can get this information using smb (for some reason i2c just returns
> > error sending start condition)
> > smbmsg -f /dev/smb6 -s 0x68 -c 0xB9 -i 1 -F %d
> >
> > In emergency this works but it would be nice to have a kernel driver for
> > it.
> >
> > I found the axp2xx driver for Allwinner in the tree. Would it be possible
> > to share this with amd64 with not too much effort?
> >
> > If not, all I'm really interested in is battery status so I might just
> hack
> > together a simple driver for that report values to hw.acpi.battery
> (because
> > I don't think there is a sysctl for battery info that aggregates
> different
> > sources?)
> >
> > Datasheet for the pmic can be found here
> > http://download.bbs.ickey.cn/201707/cfe88ee7ef01eed7a4586ce340165da0.pdf
>
> Have you looked to see why ACPI isn't reporting battery status?  Maybe we
> need to be invoking some specific method like DSM or OSC before your
> battery
> devices work?  Maybe your battery devices don't have a _STA method and you
> need the change in
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227191?
>

On Linux the axp288 driver is needed to make this happen so I haven't
considered any other options.

https://www.normalesup.org/~george/comp/linux_lenovo_miix3/#s_7_9


> --
> John Baldwin
>
>
>
>



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