Skip to content

Commit

Permalink
Battery life in picoarch #5 - added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpndable committed Apr 2, 2023
1 parent 9bb6577 commit 6892609
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions skeleton/.system/paks/MiniUI.pak/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ touch "$EXEC_PATH" && sync
MIYOO_VERSION=`/etc/fw_printenv miyoo_version`
export MIYOO_VERSION=${MIYOO_VERSION#miyoo_version=}

# Battery level debug info
ls /customer/app > "$USERDATA_PATH/.miniui/app_contents.txt"
/customer/app/axp_test > "$USERDATA_PATH/.miniui/axp_result.txt"

CPU_PATH=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
while [ -f "$EXEC_PATH" ]; do
echo ondemand > "$CPU_PATH"
Expand Down

0 comments on commit 6892609

Please sign in to comment.