TriForceX / MiyooCFW

Custom firmware source code and resources for BittBoy, PocketGo, PowKiddy V90-Q90-Q20 and third party handheld consoles
GNU General Public License v2.0
1.11k stars 113 forks source link

Suggestion for date persistence #365

Open Wilter opened 2 years ago

Wilter commented 2 years ago

1-I suggest persisting the date in a text file (like in the configuration file) and reading it every time the console is started. This doesn't fix the problem, but at least the chances of getting the same date on the console frozen on a weekday when igating the console probably won't happen. 2-You don't even need to know the day, maybe current in many games, just incrementing the day each time you turn the console on and off should be enough, looking at this text file. The user would choose how to increment the time each time it starts. You can also put a combination of buttons that increments the time when you're playing, or in the menu. 3-Another way is a "sleep mode" that only counts time, only this is more efficient if the hardware supports it. (Without RTC component in hardware) if there is a "second system boot" (other system) with an extremely low processing clock that only counts time, I think it would work just fine by reading the previously mentioned time file after system boot, because when changing the system boot the time information is lost. That way it wouldn't waste a lot of battery, I think.

jSTE0 commented 2 years ago

This is being discussed in https://github.com/TriForceX/MiyooCFW/discussions/337#discussioncomment-2473325. The hardware doesn't have a real-time clock so there is no "sleep mode" that consumes low enough power, keeping any part of the SoC powered at all is a non-starter.

akg83 commented 1 year ago

This is being discussed in #337 (comment). The hardware doesn't have a real-time clock so there is no "sleep mode" that consumes low enough power, keeping any part of the SoC powered at all is a non-starter.

can't believe this MB does not have a RTC, much worst boards have it, or at least have a set of pins where an RTC module can be soldered on