Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PiSugar3 on Pi0-2W: "On Power Restore" loops while "battery_power_plugged: true" #73

Open
Arthur-Philip-Dent opened this issue Jul 31, 2022 · 1 comment

Comments

@Arthur-Philip-Dent
Copy link

Arthur-Philip-Dent commented Jul 31, 2022

Hi *!

/etc/debian_version
10.11

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
(...)

cat /proc/cpuinfo
(...)
Hardware        : BCM2835
Revision        : 902120
Serial          : 000000004e3758e2
Model           : Raspberry Pi Zero 2 Rev 1.0

I wanted to ask, if someone can fix this:

Condition:

  • PiSugar3 on Pi0-2W is set to "On Power Restore".
  • Safe Shutdown on 30% battery-level is set, delay shutdown is set to 30 sec.

Behavior:
When power restorred on USB-C, still the battery has the level of <=30% (or below due to temperature drop...) and after booting up the "Safe Shutdown on 30% (or below)" cuts in resulting in a looping of permant rebooting.

Please add some kind of conditional check for this situation, so it does not shut down, when power is plugged.

is_battery_power_plugged = true on adequate points in code to circumvent this "looping".

Please execute safe shutdown in case of

if is_battery_power_plugged = false
or ( is_battery_power_plugged = true
AND USB-port is not delivering enough power (<200mA)
to charge the battery AND power the Pi0 same time to prevent deep discharge of the battery.

Thank you!
Best Regards!

@mitpre
Copy link

mitpre commented Aug 17, 2022

I have the same issue and would be very happy if it would be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants