On traditional x86 architecture, it's quite easy because of ACPI events... But AFAIK, there is no ACPI on ARM plateforms.
How can I detect a power button usage while running ? I may code if necessary...

Code: Select all
#!/bin/bash
gpio wfi 27 rising
# We fall through when triggered
shutdown -h now
Hi,Soulsavior wrote:Hello!
I know that this is an old topic, but can someone explain me in details How to do Macemoneta's trick on a Odroid C2, using two MOM buttons, one for shutting down and one for waking the device once it has shutdown? I'm a complete newbie concerning these board computers, but am pretty good at soldering on consoles and boards.To make it worse, i also am french so it's hard to follow what you guys says, so please make it simple, with diagrams and line codes (with how to add them) if possible...![]()
I'd also like to know how to wire an extra activity LED on the GPIO.
Many thanks in advance for your help, guys!
OK, will do if you think that's better, thanks for the adviceJojo wrote: Hi,
maybe you should open an new thread about this in the C2 section. The C2 is... well... "very different" from the W . And it is always a good thing to choose a useful titel for new threads, if you are going to open up a new one.
Users browsing this forum: No registered users and 1 guest