You may have already read this, and i didn't have time to ready it properly but the info at the link below discusses the ESP32 sleep modes in some detail... Nothing jumped out as a clear solution in a quick skim read.
For those who have 'battery issue' with their M5Stack; please, use the 'contact now' button on any product page of our Aliexpress store to contact with our after-sale team. We will try our best to bring you a satisfying purchase experience.
@Calin - this bug is reported as issue? I can't find it...
No... was not reported... i found it few days ago but i didn't report it...
I solved the problem by overwriting the files from Arduino-idf installed on my pc with files from older version.
You can report it to espresiff github repository if you want...
When i will have some time i will investigate exactly what function cause this issue...
// Open Preferences with my-app namespace. Each application module, library, etc
// has to use a namespace name to prevent key name collisions. We will open storage in
// RW-mode (second parameter has to be false).
// Note: Namespace name is limited to 15 chars.
I am charging it with the ipad 1 charger. I have a meter and the wall wart is normally 5v, but the output amps is .3A and on the faces that i have it is .17A. It charges my other things just fine. I don't know why the amp draw is so low.
@kentinker Excellent. Probs a good idea to have a nice working link for the future. No worries - didn't mess me up. Good luck with the github - so far so good. Its very useful and powerful once you get into it.
I will add your files up to my github later on.... thanks again.
@m5stack No, not at all! It was just sitting on my desk and over the course of two days a crack appeared and gradually grew over the whole width. The other three edges show no problem. This is why I suspect a problem with the extrusion mould.