log when thermald shuts down device

albatross
Adeeb Shihadeh 2020-08-18 07:43:58 -07:00
parent f8ab6bd009
commit a46d2f5b17
1 changed files with 1 additions and 0 deletions

View File

@ -409,6 +409,7 @@ def thermald_thread():
# Check if we need to shut down
if pm.should_shutdown(health, off_ts, started_seen, LEON):
cloudlog.info(f"shutting device down, offroad for {off_ts}")
os.system('LD_LIBRARY_PATH="" svc power shutdown')
msg.thermal.chargingError = current_filter.x > 0. and msg.thermal.batteryPercent < 90 # if current is positive, then battery is being discharged