Skip to content

feat(power): add configurable auto-poweroff from deep sleep - #27

Draft
dysprosium wants to merge 4 commits into
pvaibhav:h700from
dysprosium:suspend-auto-poweroff
Draft

dysprosium wants to merge 4 commits into
pvaibhav:h700from
dysprosium:suspend-auto-poweroff

Conversation

@dysprosium

@dysprosium dysprosium commented Aug 16, 2026 •

Copy link
Copy Markdown
  • add a configurable Auto poweroff timeout for deep sleep, defaulting to Off
  • arm the RTC wake alarm only when enabled, then route expiry through the existing safe shutdown path
  • preserve MinArch SRAM/RTC/quicksave data and only create the auto-resume marker when state serialization succeeds
  • support TG5040, TG5050, and H700, including shutdown while an H700 clamshell remains closed

Tested on the RG SP
Todo: test on TrimUI devices

@dysprosium
dysprosium force-pushed the suspend-auto-poweroff branch 3 times, most recently from a6c4991 to f9ef4c3 Compare August 17, 2026 02:33
@dysprosium
dysprosium force-pushed the suspend-auto-poweroff branch from f9ef4c3 to b15da0e Compare August 17, 2026 02:42
@iijaachok

Copy link
Copy Markdown

Thanks, hopefully this will be merged into main! I've been running the deep sleep tracking script from this repo and it seems that H700 doesn't quite reach the battery drain efficiency like TrimUI etc.

On Anbernic RG SP with a deep sleep battery will drain eventually over 60-100 hours in deep sleep, based on the log's projections.

@dysprosium
dysprosium force-pushed the suspend-auto-poweroff branch from 4f31290 to fba127e Compare August 19, 2026 07:00
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 this pull request may close these issues.

2 participants