Android3000 Posted May 2, 2019 Posted May 2, 2019 Hi, I guess this question depends on knowing the OPi Lite hardware reset button capabilities before being able to answer the following question. but here goes: Does anyone know if the OPi Lite button can be scripted/coded to not only execute a shutdown or reboot command but to do both? So, say, a single short press would gracefully reboot the OS while a long press (hold for, say, 4 seconds) would perform a shutdown? Thanks!
Android3000 Posted May 2, 2019 Author Posted May 2, 2019 Ah, looks like others looked into the same functionality already as I just found this post from 25th April 2018: Orange PI PC - How to use GPIO for push buttons : Tutorial
Recommended Posts