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

Battery Saving with Display... (Colorscheme/Brightness) #8

Closed
dimitrij2k opened this issue Jun 13, 2022 · 11 comments Β· Fixed by #13
Closed

Battery Saving with Display... (Colorscheme/Brightness) #8

dimitrij2k opened this issue Jun 13, 2022 · 11 comments Β· Fixed by #13

Comments

@dimitrij2k
Copy link

Is it possible to dim the Display more or (better) use a black backround with white font (for OLED users) to save Battery ❓

Thank you.... πŸ˜„

@gkoh
Copy link
Owner

gkoh commented Jun 16, 2022

I am certainly willing to explore ways to improve battery life.
There are two 'phases':

  • standby
  • active connection

In standby, we dim the screen after 1 half-minute (30 seconds)(the M5ez library measures inactivity in half-minutes).
With the M5StickC, I was able to idle for ~3 hours.
I have not tested with my M5StickC Plus yet.
We may be able to invert the colours in standby, I will need to test to see if any appreciable improvement can be gained.

In active connection, things get much worse.
We dim the screen during shutter release, but even then I was only able to get ~1 hour from the M5StickC.
The largest power draw here is the WiFi and Bluetooth radios on the esp32, they must both be switched on for Bluetooth to work and any low power sleep mode kills the radio, so the connection is lost.

@dimitrij2k
Copy link
Author

Yes, the Radios are one module… my thought was, that the oled display drain less power, when display black…. And in the source code, the display dim to level 8 - maybe its possible to manual set the display brightness in one menu point. If i could, i would make a fork and extend your sexy code… but im really bad at coding πŸ™ˆ but yes, the Radios drain at most… maybe a darl oled give you just 5-20min more time….

@gkoh
Copy link
Owner

gkoh commented Jun 19, 2022

I have created a branch, which I think is mostly done, just doing some more testing.
There's some strange crash occurring in the M5StickC version (non-Plus), which I think is related to upstream library updates.
@dimitrij2k I would appreciate any feedback if you have time.

@dimitrij2k
Copy link
Author

I saw the branch and will test it later this day - Thanks for the big update and the support πŸ˜„ πŸ‘ I already fly over the code... "Brightness Settings"... "Dark Mode"... damn, how nice! I appreciate it ❀️

@dimitrij2k
Copy link
Author

dimitrij2k commented Jun 19, 2022

i programmed the Branch, everything worked...
then i deleted my camera in furble & furble in the camera and...

  • tried to connect again - worked πŸ‘
  • changed Backlight - worked πŸ‘
  • changed Theme - worked πŸ‘ (maybe complete black & white might look better πŸ˜‰ )
  • restart the M5plus and the Camera - reconnect - worked πŸ‘

No Bugs/Problems so far... YEAH!!!! ❀️

@gkoh
Copy link
Owner

gkoh commented Jun 20, 2022

Thanks for testing!
Most of the code was already in the M5ez library, I just had to hack it up to work on the M5StickC.

(maybe complete black & white might look better wink )

The only things coloured are:

  • header bar -> make this black?
  • buttons -> make these white?
  • battery indicator -> make these ... gray? or black/white outline?

@dimitrij2k
Copy link
Author

dimitrij2k commented Jun 20, 2022

IMG_6472

That would be looking really hot 😍 But i dont know if its to presumptuous from me πŸ™„
This would give it a way more professional look with the name as a "highlight"... and maybe the battery with 50% and less change to the same color as "furble".... so its a 3 Color design (black, white, orange)... damn, its just a shutter, but for me this project is so meaninful for me... it changes a lot, because it make my cam so much useful - especially in vacations with my wife... her "chocolate side" is for me on the wrong side of the trigger 🀣 really personal infos here 🀣

@dimitrij2k
Copy link
Author

Maybe i could make some "themes" ;-) i checked the file... should be easy... 🀩

@gkoh
Copy link
Owner

gkoh commented Jun 25, 2022

@dimitrij2k Thanks for the detailed design.
Rather than modify the 'Dark' provided by the M5ez library, I've added 'Mono Furble' as a theme and tried to match exactly your spec.

@gkoh gkoh linked a pull request Jun 25, 2022 that will close this issue
@dimitrij2k
Copy link
Author

@dimitrij2k Thanks for the detailed design.
Rather than modify the 'Dark' provided by the M5ez library, I've added 'Mono Furble' as a theme and tried to match exactly your spec.

I will check ot out later, its a busy weekend - but im really curious how it look like in real πŸ˜‰ THX... i have soon holidays, then i try to make my contribution πŸ‘

@gkoh gkoh closed this as completed in #13 Aug 4, 2022
@gkoh
Copy link
Owner

gkoh commented Aug 6, 2022

Just a note, I merged the change as is as it incorporates useful extra functionality.
We can always add/change themes as desired.

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

Successfully merging a pull request may close this issue.

2 participants