1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-05 11:27:09 +00:00
hekate/nyx/nyx_gui/power
CTCaer 5f142b4c86 main: Add empty battery screen
This disables low battery monitor shutdown (LBM shutdown) on boot and checks if battery is enough.

The logic is as follows:

If battery is not enough:
- If not charging and 15s pass, it will re enable LBM shutdown and power off.
- If charging, it will wait until it is charged above the limit.
 Screen will auto turn off to save power. A press on Power button or a change on charger, will enable it for another 15s.

If battery is enough:
- Enables LBM shutdown and continues with the boot process.
2020-04-06 05:54:45 +03:00
..
bq24193.c nyx: Release the shackles 2019-12-07 20:16:38 +02:00
bq24193.h refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
max7762x.c main: Add empty battery screen 2020-04-06 05:54:45 +03:00
max7762x.h main: Add empty battery screen 2020-04-06 05:54:45 +03:00
max17050.c nyx: Release the shackles 2019-12-07 20:16:38 +02:00
max17050.h Update and add missing copyrights 2020-03-14 09:24:24 +02:00
max77620.h pmic: Enable Low Battery Shutdown for 2.8V 2019-12-04 22:06:34 +02:00
regulator_5v.c power: Add 5V regulator driver 2019-12-08 01:36:35 +02:00
regulator_5v.h power: Add 5V regulator driver 2019-12-08 01:36:35 +02:00