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 C4 GPIO IRQ wakeup

Featured Replies

So as we know, the Hardkernel kernel did support powering the device on and off via a GPIO pin. This does not seem to work on Armbian with the mainline kernel. What does work is powering the device on and off with the remote control. So I wonder, what has to be done to enable power on and off vie the GPIO? My approach till now makes it possible to shutdown the device via GPIO interrupt. But then it will not come up again except if I reconnect the power cord or use the remote. I use this user device three overlay btw:

 

/dts-v1/;
/plugin/;
/{
		fragment@0 {
                target = <&ao_pinctrl>;
                __overlay__ {
                        power_btn_port:power_btn_port {
                                mux {
                                        groups = "GPIOAO_10";
                                        function = "gpio_periphs";
                                        bias-pull-up;
                                        output-high;
                                };
                        };
                };
        };

        fragment@1 {
                target-path = "/";
                __overlay__ {
                        gpio_keys:gpio_keys {
                                compatible = "gpio-keys";
                                power_btn:power_btn {
                                        label = "POWER BUTTON";
                                        linux,code = <116>;
                                        gpios = <&gpio_ao 10 0>; //GPIOAO_10
                                        interrupt-parent = <&gpio_intc>;
                                        interrupts = <10 3>;
                                        wakeup-source;
                                };
                        };
                };
        };
};

 

I've tried with the default pin as well (GPIOX_4) but with the same result. The hope was that the AO domain would do some magic like with the remote but no dice. Also the 'wakeup-source' seems to be ignored by the system as 'cat /sys/kernel/irq/*/wakeup' prints 'disabled' for all IRQ's.

 

So, any ideas besides dissembling the remote and some solider works from the power button on the chassis to the IR IC to make it part of the final device? This would be very Frankenstein'ish just have a power button.

 

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.