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.

orange pi pc plus on-board button doesn't work

Featured Replies

Good morning, I hope you all are fine.

 

I am working on orange pi pc plus with mainline kernel 4.4, I tried to use the on board button but it didn't work in spite of its existence in the device tree (after dumping the already running dtb) and I found that:

 pinctrl@01f02c00 {
                        compatible = "allwinner,sun8i-h3-r-pinctrl";
                        reg = <0x1f02c00 0x400>;
                        interrupts = <0x0 0x2d 0x4>;
                        clocks = <0x2d 0x3 0x1c 0x1d>;
                        clock-names = "apb", "hosc", "losc";
                        gpio-controller;
                        #gpio-cells = <0x3>;
                        interrupt-controller;
                        #interrupt-cells = <0x3>;
                        linux,phandle = <0x39>;
                        phandle = <0x39>;
                        
                        ...
                        ...
                          
                        key_pins@0 {
                                pins = "PL3";
                                function = "gpio_in";
                                linux,phandle = <0x3d>;
                                phandle = <0x3d>;
                        };

and also I found that :

        r_gpio_keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";
                pinctrl-0 = <0x3d>;

                sw4 {   
                        label = "sw4";
                        linux,code = <0x100>;
                        gpios = <0x39 0x0 0x3 0x1>;
                };
        };

I made sure that the button connected to PL3, and in fact I don't know if that configuration in the device tree are right or wrong.

I installed acpid and started the service and ran "acpi_listen" and nothing printed during pressing the button, I also checked the allwinner h3 datasheet here to check if the above configuration is true or not but I can't map the info on the datasheet with the ones here. Please I need help on that or any clue will be useful.

 

Thanks for advice .

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.