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

Pi Sugar 2 Pro Powers Off After 1 Minute #58

Closed
deanmarano opened this issue Oct 16, 2021 · 9 comments
Closed

Pi Sugar 2 Pro Powers Off After 1 Minute #58

deanmarano opened this issue Oct 16, 2021 · 9 comments

Comments

@deanmarano
Copy link

I have a Pi Sugar 2 Pro powering a Raspberry Pi Zero - I realize the wrong fit, but I wanted the larger battery and RTC.

WHen I power the PiSugar from micro USB, it powers off after less than a minute. The system does not shutdown, it just turns off.

After I press the "activate" button, it turns on, and then turns off after less than a minute. Same as when initially plugged in.

It never stays on for more than a minute. I have had the same results when powering over USB-C.

Any idea why this is happening?

@JdaieLin
Copy link
Member

Looks like a issue of pisugar-poweroff ?
@fengyc

@GSVNoFixedabode
Copy link

GSVNoFixedabode commented Nov 17, 2021

Same pairing here (Pro + Zero) and same issue - mgmt software is powering the Pi off immediately as battery detection is 0%. If you re-configure the software (dpkg-reconfigure pisugar-server) to set the model to 'PiSugar2', can you confirm that it works, but displays '26%' as the battery level?

@fengyc
Copy link
Member

fengyc commented Nov 18, 2021

Same pairing here (Pro + Zero) and same issue - mgmt software is powering the Pi off immediately as battery detection is 0%. If you re-configure the software (dpkg-reconfigure pisugar-server) to set the model to 'PiSugar2', can you confirm that it works, but displays '26%' as the battery level?

@GSVNoFixedabode Edit /etc/pisugar-server/config.json, set auto_shutdown_level to 0.0 and auto_shutdown_delay to a big number like 9999999.0 .

Could you show us the i2c dump -y 1 0x75 result, that would help us to figure out what went wrong.

@GSVNoFixedabode
Copy link

image

@jcothran
Copy link

@fengyc Having the same issue as @GSVNoFixedabode , editing config.json values did not seem to change the unit from auto shutdown after about a minute.

fengyc added a commit to PiSugar/pisugar-power-manager-rs that referenced this issue Jan 11, 2022
@fengyc
Copy link
Member

fengyc commented Jan 11, 2022

@jcothran I am trying to fix this. You could download and install the latest development build, set auto_shutdown_level to null.

@jcothran
Copy link

jcothran commented Jan 11, 2022

thanks for checking, I tried the latest development 1.6.5 after changing some of the hardcoded cdn/channel references which failed in https://github.com/PiSugar/pisugar-power-manager-rs/releases/download/latest/pisugar-power-manager.sh to
https://github.com/PiSugar/pisugar-power-manager-rs/releases/download/latest/ Unfortunately it shows the battery at 100% and powers off the pi shortly after. Checked the config.json file and auto shutting down while auto_shutdown_level was set to null. Can keep it on with the previous version and auto_shutdown_level set to null, but does not read battery, saying 'invalid request' with 'get battery'

I'm using the 'Pisugar2 Pro' install setting, not sure if I should try '2-LED' instead? When I was experimenting with this version earlier I got the battery stuck at 26% issue. The version I ordered last month does have 2 LED's, one for the charging status and one for the powering status, but the ordering and packaging don't mention this product suffix so not exactly sure of the version I have. thanks

@xlla
Copy link

xlla commented Mar 3, 2022

same issue here, and

pi@rpi0:~ $ sudo i2cdump -y 1 0x75
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX

and I found there is only one i2c device:

pi@rpi0:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --         

@GSVNoFixedabode
Copy link

Update: Pi Sugar2 Pro mated with Pi Zero. Just installed version 1.7.1 (uninstalled old version first), specifying 'Pi Sugar 2 Pro' as the model. Battery now reports correct level! Great to see this bug fixed.

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

6 participants