Skip to content

Adds a new "Hibernate" quick-launch toggle - #1824

Draft
caco3 wants to merge 1 commit into
coredevices:mainfrom
caco3:add-hibernate
Draft

Adds a new "Hibernate" quick-launch toggle#1824
caco3 wants to merge 1 commit into
coredevices:mainfrom
caco3:add-hibernate

Conversation

@caco3

@caco3 caco3 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Adds a new "Hibernate" quick-launch toggle and a matching entry in the system settings menu. When confirmed, the watch enters an RTC-preserving MCU hibernate instead of a full power-off (shipping mode).

Notes

Behaviour

  • A "Hibernate" quick-launch app can be launched from the Quick Launch settings.
  • Selecting it shows a confirmation dialog: "Do you want to hibernate?".
  • Pressing SELECT hibernates the MCU; pressing BACK cancels.
  • A "Hibernate" option is also added to the system settings menu, underneath the "Shutdown" entry.

Wake-up

  • Hibernate keeps the RTC / backup domain powered, so the clock is preserved.
  • The wake source is the back key (PA34) only.
  • A ~2 s key press is configured to avoid accidental wake-ups.
  • When the back key is pressed the device cold-boots and resumes.

Impact

  • Normal shutdown through enter_standby() is unchanged; enter_mcu_shutdown() is used only for the new hibernate path.

TODO

@caco3 caco3 changed the title fw: add hibernate toggle app and integrate standby/battery UI Adds a new "Hibernate" quick-launch toggle Jul 31, 2026
@caco3
caco3 force-pushed the add-hibernate branch 2 times, most recently from 436a997 to c81c9c9 Compare August 1, 2026 00:18
@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@caco3

caco3 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c81c9c98cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/fw/apps/system/toggle/hibernate.c
Comment thread src/fw/apps/system/settings/system.c
Comment thread src/fw/kernel/util/standby.c
Comment thread resources/normal/base/lang/ca_ES/tintin.po Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Comment thread .gitmodules
[submodule "third_party/hal_sifli/SiFli-SDK"]
path = third_party/hal_sifli/SiFli-SDK
url = https://github.com/coredevices/SiFli-SDK.git
url = https://github.com/caco3/SiFli-SDK.git

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be reverted after coredevices/SiFli-SDK#7 got merged

@caco3
caco3 force-pushed the add-hibernate branch 3 times, most recently from da99571 to b1b4a63 Compare August 1, 2026 15:37

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be updated once coredevices/SiFli-SDK#7 got merged

Adds a new "Hibernate" quick-launch toggle, wires it into the
system settings, standby logic, battery UI FSM, and the shell app
registry. Also shortens the hibernate confirmation string.

Signed-off-by: George Ruinelli <george@ruinelli.ch>
Co-Authored-By: Cascade AI
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.

1 participant