This is a working python script for soft shutdown sensing Pin 7 for power disconnect using Jetson GPIO. Power both the Jetson DC port and the T201 hat DC port with the same DC source and it will power on when power is connected.
!/usr/bin/env python3
import Jetson.GPIO as GPIO
import time
import os
import subprocess
try:
while True:
if check_power_loss():
shutdown_system()
break
else:
print("Power is connected. System running normally.")
time.sleep(5) # Check every 5 seconds
is there developer documentation for this device? I need to know how to interface with this device when developing a soft shutdown program on power source disconnect. Pin definitions? Acceptable software and commands? Any program snippets that might help are appreciated.
Is there a software shutdown when the power gets disconnected? I want it to also power down the T201 so it is not using up the battery when off. I am seeing software solutions for Raspberry Pi UPS versions but not this one. Jetson Nano image comes with Ubuntu "18.04.6 LTS (Bionic Beaver)". I could maybe run a python program as a systemd service?
Hi, t201 support is button control power on/off, this Jetson Nano image you mentioned comes with Ubuntu "18.04.6 LTS (Bionic Beaver)", we haven't tested it, if it's possible, you can test it and test it.
Enable comment auto-refresher
Anonymous user #2
Permalink |
Walker
Anonymous user #1
Permalink |
Walker
Anonymous user #1
Permalink |
Anonymous user #1
Permalink |
Walker