download wake_jetson_up_in.c
file and compile with following command:
wget https://gist.githubusercontent.com/RafaelKa/b1cbb4990a04134dcc03/raw/wake_jetson_up_in.c
gcc -s -Wall -Wstrict-prototypes wake_jetson_up_in.c -o wake_jetson_up_in
run
sudo ./wake_jetson_up_in 180