Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2019 18:33:28 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        ticso@cicely.de, freebsd-arm@freebsd.org, Bernd Walter <ticso@cicely7.cicely.de>
Subject:   Re: Battery support on Pine64-LTS and power button
Message-ID:  <20190210173327.GG54799@cicely7.cicely.de>
In-Reply-To: <20190210141043.039850d3d27528c87eae9f3c@bidouilliste.com>
References:  <20190210120633.GE54799@cicely7.cicely.de> <20190210141043.039850d3d27528c87eae9f3c@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 10, 2019 at 02:10:43PM +0100, Emmanuel Vadot wrote:
> 
>  Hi,
> 
> On Sun, 10 Feb 2019 13:06:34 +0100
> Bernd Walter <ticso@cicely7.cicely.de> wrote:
> 
> > The Pine64-LTS runs perfectly with the battery pack in addition to mains
> > supply.
> > But I don't see any way to see the remaining charge left, e.g. for
> > a clean shuttdown.
> 
>  It's not available right now. thj@ added some non-acpi battery support
> and ganbold@ said he will add support for battery status for the
> pinebook. Both pinebook and pine64-lts uses the same PMIC
> (AXP803/AXP813) so it will work on both.

Amazing.
Since both of my Orange Pi PC2 don't have stable ethernet with a GBit link,
the Pine64-LTS became more interesting to me.
Will have to ask the vendor about it, it is very much a hardware issue and
the boards behave differently in that one works mostly and the other mostly
don't work.

> > Also how is the power button integrated in the OS that is triggers a clean
> > shutdown?
> 
>  It's done at the PMIC level, see
> https://svnweb.freebsd.org/base/head/sys/arm/allwinner/axp81x.c?revision=343952&view=markup#l834

I see, thank you.

> > I'm asking if we have ready available support to trigger a shuttdown
> > via GPIO on other boards, or if such a support has to be done individually?
> > It wouldn't be a big deal to poll a GPIO though.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



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