Automatic shutdown on idle #1647
+249
−2
Open
Task list completed / task-list-completed
Started
2024-06-14 01:15:00
ago
0 / 3 tasks completed
3 tasks still to be completed
Details
Required Tasks
Task | Status |
---|---|
Added an option under [Settings->Power] that allows Flipper to be automatically turned off after a certain amount of time has passed without input from user ( the options are 15min, 30min, 1h, 2h, 6h, 12h, 24h, 48h). | Incomplete |
A submenu named [Shutdown on Idle] has been added under [Settings->Power]. Under that submenu is possible to set how long Flipper will be idle before shutting off on his own and to turn off this feature. | Incomplete |
PR has description of feature/bug or link to Confluence/Jira task | Incomplete |
Description contains actions to verify feature/bugfix | Incomplete |
I've built this code, uploaded it to the device and verified feature/bugfix | Incomplete |
Compile and install firmware | Incomplete |
Set Settings → Power → Shutdown on Idle → Set Time to 15min |
Incomplete |
Return to desktop | Incomplete |
Unplug Flipper from USB connection | Incomplete |
Make sure the Flipper desktop is showing | Incomplete |
Wait 15 or so minutes | Incomplete |
Ensure the Flipper has powered off | Incomplete |
Plug Flipper into USB charger and/or computer | Incomplete |
Make sure the Flipper desktop is showing | Incomplete |
Wait 15 or so minutes | Incomplete |
Ensure the Flipper remains turned on | Incomplete |
Unplug the Flipper from the USB charger | Incomplete |
Ensure the Flipper remains turned on | Incomplete |
Wait 15 or so minutes | Incomplete |
Ensure the Flipper has powered off | Incomplete |
When connected to USB power, pause the auto-shutdown timer | Incomplete |
This needs to avoid conflicting with the app launch/quit event handling so if either an app is open or USB is connected it won't auto-shutdown | Incomplete |
Consider how charging is inhibited for the battery charging chip - every request to pause increments a counter, request to resume decrements it, and only when the counter is at zero does charging turn back on | Incomplete |
Test: plug into USB, launch an app, then unplug USB - auto-shutdown should still be paused | Incomplete |
Open SubGhz app | Incomplete |
Wait 15 or so minutes | Incomplete |
Ensure the Flipper remains turned on | Incomplete |
Navigate to Plugins → Tools and launch Weather Station |
Incomplete |
Wait 15 or so minutes | Incomplete |
Ensure the Flipper remains turned on | Incomplete |
Make sure auto-lock is disabled | Incomplete |
Navigate to the Flipper desktop | Incomplete |
Wait 10 minutes | Incomplete |
Press the Back button once | Incomplete |
Wait 10 more minutes | Incomplete |
Ensure the Flipper remains on | Incomplete |
Wait 5 more minutes (15 total minutes since last button press) | Incomplete |
Ensure the Flipper has powered off | Incomplete |
Navigate to the Flipper desktop | Incomplete |
Lock the Flipper with Up button, Lock (or use auto-lock) |
Incomplete |
Wait 10 minutes | Incomplete |
Press the Back button only once, do not unlock the Flipper | Incomplete |
Wait 5 more minutes (15 total minutes since last Flipper unlock) | Incomplete |
Currently, the Flipper remains on at this point | Incomplete |
Power on the Flipper by holding the Back button | Incomplete |
Lock the Flipper with Up button, Lock (or use auto-lock) |
Incomplete |
Wait 10 minutes | Incomplete |
Press the Back button three times to unlock the Flipper | Incomplete |
Wait 10 more minutes | Incomplete |
Ensure the Flipper remains powered on | Incomplete |
Wait 5 more minutes (15 total minutes since last Flipper unlock) | Incomplete |
Ensure the Flipper has powered off | Incomplete |
When handling key events, check if the desktop is locked and ignore the event if so | Incomplete |
Listen for the unlock event and reset the idle shutdown timer at that point | Incomplete |
Loading