Context
sKeets has no power management. The device stays fully awake while the app runs, draining the battery. The src/platform/power.cpp infrastructure probes battery state and suspend safety, but no actual suspend action is triggered. Power button press during bootstrap just exits the app.
KOReader's suspend/resume state machine was analyzed in docs/koreader-cross-reference.md as reference.
Sub-tasks
References
- KOReader suspend sequence:
device/kobo/device.lua (~L1330)
- Existing infra:
src/platform/power.h/cpp (probes battery, charging, standby capability)
- MTK crash workaround: KOReader explicitly skips suspend/standby if
isMTK() and isCharging()
Context
sKeets has no power management. The device stays fully awake while the app runs, draining the battery. The
src/platform/power.cppinfrastructure probes battery state and suspend safety, but no actual suspend action is triggered. Power button press during bootstrap just exits the app.KOReader's suspend/resume state machine was analyzed in
docs/koreader-cross-reference.mdas reference.Sub-tasks
memto/sys/power/statefor suspend-to-RAM1to/sys/power/state-extendedbefore suspend,0after resume (per KOReader pattern)SleepCoverClosed→ suspend,SleepCoverOpened→ resume) if hardware supports itReferences
device/kobo/device.lua(~L1330)src/platform/power.h/cpp(probes battery, charging, standby capability)isMTK() and isCharging()