I think you will need to do it by adding some hardware to detect if
external power supply is present or not. If external supply is absent and
you are executing some code then you are on battery. Simple comparator
circuit should do it.

Kind Regards,
Aditya Ayachit

On Thu, Jun 6, 2019 at 1:57 PM n ithinu <[email protected]> wrote:

> I do not know if it is also true for PocketBeagle, but there is a tool
> rc_battery_monitor which shows the voltage at the power supply jack. So you
> may just look into the sources of the tool.
>
> On Thursday, May 9, 2019 at 8:02:31 AM UTC+2, Dave wrote:
>>
>> I am using and OSD3358 based PocketBeaglish Board.
>>
>> I need to figure out if the board is running from external power or the
>> LiPo battery,
>> Is there an easy means of doing so ?
>>
>> Something in sysfs maybe ?
>>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/1c0c963c-9c84-41b4-a6cc-350e6be732a5%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/1c0c963c-9c84-41b4-a6cc-350e6be732a5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Indiaaditya Networks.... Embedded System development
For industries customised needs

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAFn1SnPFt2Q4BiD3sKxUSzaaU3-YwTZPcDj%3DZT5fkYsw3BHEjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to