32blit-sdk icon indicating copy to clipboard operation
32blit-sdk copied to clipboard

Turn display off

Open wdevore opened this issue 4 years ago • 14 comments
trafficstars

Not exactly an issue but more of a request.

Would it be possible to have a menu option for turning the display off in the next release?

I ask because the only way to turn it off is when I unplug it, but then the battery starts to discharge.

Thanks.

wdevore avatar Dec 28 '20 04:12 wdevore

Battery drain while the unit is off seems to be very minimal. I have had my 32blit here in "off" mode, charged it about a week ago, and it is still full, almost no battery is gone (I turned it on for maybe a few minutes during this week, I mostly use my Beta unit for development).

So I am wondering why would you need to have a mode, where it is plugged in with the display off?

lenardg avatar Dec 28 '20 08:12 lenardg

You can always select DFU mode if you want the screen off ? Just press reset to bring it back on ...

mikerr avatar Dec 28 '20 13:12 mikerr

Aren't TFT susceptible to burn in? My unit drains the battery 30% in 1 day with it powered off.

wdevore avatar Dec 28 '20 14:12 wdevore

"off" is effectively "shipping mode", and is the low power mode that the charge controller is put into in order to ship the unit with a LiPo battery installed. Because it- for lack of a better term- "disconnects" the battery in lieu of turning the system off the alternate power source over USB will keep 32blit powered on.

We need to investigate a low power "Sleep" mode and possibly also a "Display Sleep" mode that turns off the display after a period of inactivity.

Gadgetoid avatar Dec 28 '20 20:12 Gadgetoid

Tried to shunt the display controller into sleep mode today, but it wasn’t cooperating. Possibly continuing to send data is something of a mixed message.

Did enough of a cursory research of the process of sleeping/waking the STM32 also. Enough to scare myself off until things are a little less hectic 🤣

Gadgetoid avatar Dec 29 '20 23:12 Gadgetoid

Tried to shunt the display controller into sleep mode today, but it wasn’t cooperating. Possibly continuing to send data is something of a mixed message.

Did enough of a cursory research of the process of sleeping/waking the STM32 also. Enough to scare myself off until things are a little less hectic 🤣

Gadgetoid avatar Dec 29 '20 23:12 Gadgetoid

Is this not more-or-less covered by https://github.com/32blit/32blit-sdk/pull/577 (and it's followups)?

ahnlak avatar Mar 19 '21 16:03 ahnlak

I think that covers "display sleep" but not "real" sleep, then again this issue was about turning the display off which you can sort-of do now... if you wait two minutes.

Also, my "other" blit has been sitting in "Power Off" for over a week and has lost about half of it's battery, which is... surprising (I thought almost everything was off in that case?). Based on the other comments here it seems quite variable how long the battery lasts in "Power Off"...

Daft-Freak avatar Mar 19 '21 21:03 Daft-Freak

AFAIK "Power Off" is about as off as it can get- IE it's the "Shipping Mode" of the onboard charge controller (bq24295) and is the state the system is required to be in for shipping since everyone is terrified of LiPo batteries these days.

It still has some quiescent or shutdown current presumably to power whatever logic is required to turn the system back on- in fact the datasheet (https://www.ti.com/lit/ds/symlink/bq24295.pdf) lists this as 20μA max an 15μA typical so... yeah, actually draining 50% of the LiPo cell capacity while off feels weird. That said I can't quite vouch for the accuracy of the system battery meter so it might just be a "blit is lying to you" issue rather than leakage current. Or both. The self discharge rate of LiPos is pretty low, I think, so that wouldn't explain it.

My batteries are always dead since I never turn my blits off :laughing:

Gadgetoid avatar Mar 20 '21 20:03 Gadgetoid

Hmm, adds logging and leaves blits on...

[FOUR HOURS LATER]

bat

(The Y axis is the range of the battery meter)

Daft-Freak avatar Mar 21 '21 18:03 Daft-Freak

After leaving 'hardware test' running, I also noticed that sleep doesn't turn off the LED...

ahnlak avatar Mar 21 '21 18:03 ahnlak

(The Y axis is the range of the battery meter)

:grimacing:

Gadgetoid avatar Mar 21 '21 18:03 Gadgetoid

Also, my "other" blit has been sitting in "Power Off" for over a week and has lost about half of it's battery, which is... surprising (I thought almost everything was off in that case?). Based on the other comments here it seems quite variable how long the battery lasts in "Power Off"...

So... after some "extensive testing" (haven't used one of my blits since my last comment here), I think I may have misremembered my battery level previously. This time I've gone from 4.0v to... 4.0v.

Daft-Freak avatar Apr 11 '21 22:04 Daft-Freak

Since v0.1.13 you can charge in "Power Off" mode, it switches to the "old" behaviour of "shipping mode" if unplugged/done charging. Also adds some sleeping which saves a little bit of power.

(I've barely used the blit mentioned above and it's now on 3.9v from the same charge)

Daft-Freak avatar May 28 '21 12:05 Daft-Freak