This post is on your options for powering on and waking up an ODROID C2/C1 device. I initially began research on this because the ways you can handle waking up from a halted state on the raspberry pi are a bit different on the ODROID.

On the pi, once your machine is in the halted state you can bridge the connection on headers 5 and 6 to wake up the pi. From there you could attached a button for this same action when pressed, and then access this GPIO pin in code when in the running state if you wanted to. This option does not exist on the ODROID and furthermore you cannot access header 5 at all for general purpose input as you could on the pi.

Fear not though, ODROID C series offers it’s own options. Options that I personally like better than the Pi. We will go over these two options.

  • Setting GPIO Power Button from boot.ini
  • Using the “Power switch port”

Setting GPIO Power Button from boot.ini

This is fairly well documented here http://odroid.com/dokuwiki/doku.php?id=en:c2_gpio_key_wakeup so I will just point out some things to consider.

Depending on the system your boot.ini could be in /boot/, /media/boot/, or /DietPi/ for a dietpi os.

[System] → [Preferences] → [Hardware] → [Power Management]

To wake-up after powering off, long-pressing over 2 seconds is needed.

Using the “Power switch port”

Circled in the image below, the power switch port offers a easy way to . On the Wiki Page, you’ll see where it says power switch port, that it says when the port is closed the power is off and if open the power is on. You can think of this in other terms as 'open' == pins not conected.

odroid c2 power switch highlight

These headers are probably not soldered on, so you will have to do. Once you do, you can do a quick test by bridging the header wire gap with another wire, or you could create a slide switch as you’ll see below. Make sure you do have a bootable disk inserted though.

odroid c2 power switch schematics

If you are unfamiliar with a slide switch. What the middle pin is connected to depends on what state the slide switch is at. If you wanted to make it so the western most position is when the power is on (like in the schematic image), you would connect the two wires to the two eastern most pins. The order you connect pins will not matter.

This is going to be your quickest option to setup, and all through hardware so it probably will work the fastest as well. This might not get you the cleanest shutdown though, as no processes will be stopped; instead the computer will no longer be powered on. The option you choose will always be a use case situation.

Well

Hope this was helpful for you or what you were looking for. If not, send me the 411 baby.