From 9ab3f160fb82c5f8b36d6bc9f0ee02578ae30f69 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 13 Apr 2023 15:35:07 -0700 Subject: [PATCH] tizi: enable fan for shutdown (#27890) * tizi: enable fan for shutdown * Update system/hardware/tici/hardware.py --------- Co-authored-by: Comma Device old-commit-hash: 8f1753aaab70f5498a57c430393cd0f84693306b --- system/hardware/tici/hardware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/hardware/tici/hardware.py b/system/hardware/tici/hardware.py index fdddf4d06..352ffaaa6 100644 --- a/system/hardware/tici/hardware.py +++ b/system/hardware/tici/hardware.py @@ -467,10 +467,10 @@ class Tici(HardwareBase): os.system("sudo chmod a+w /dev/kmsg") # TODO: remove the if once agnos 7 ships - # Turn off fan, turned on by the ABL + # Ensure fan gpio is enabled so fan runs until shutdown, also turned on at boot by the ABL if os.path.exists('/sys/class/gpio/gpio49/'): gpio_init(GPIO.SOM_ST_IO, True) - gpio_set(GPIO.SOM_ST_IO, 0) + gpio_set(GPIO.SOM_ST_IO, 1) # *** IRQ config ***