Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Odroid N2 - Shut down using push button GPIO

Featured Replies

If possible, I would like to shutdown or wake up the Odroid N2 using a GPIO button. I followed the guide here: https://wiki.odroid.com/odroid-n2/application_note/gpio/gpio_key_wakeup. The button LED works, but the button does not trigger shutdown or wake up using pin 9 and 11. Has anyone gotten a power button to work on the Odroid N2? Is there a specific Odroid module/software that isn't installed by default in Armbian?

 

Additions to /boot/boot.ini

setenv gpiopower "479"
setenv bootargs ${bootargs} gpiopower=${gpiopower}

 

After these additions, /proc/cmdline shows "gpiopower=479" as expected.

 

I'm running Armbian 21.02.2 Buster on the Odroid N2 (kernel 5.10.16-meson64), running headless with OS installed on eMMC.

The power button and led hardware is functioning as expected when tested with a multi-meter.

 

Thank you!

HardKernel has added non-standard "features" to their kernels in the past. For example, see THIS POST. This may be one of them.

 

Notably, kernel arguments are generally of the MODULE.PARAMETER=VALUE form, and "gpiopower" doesn't fit that at all.

 

So, if you want the kernel to handle it, you can enable it by specifying a DTB overlay, adding "gpio-poweroff" to your specified GPIO pin. See these examples:

Else you can write a script to monitor that GPIO and call shutdown when desired.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.