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.

Button on PiOne board doesn't work in 4.14.14

Featured Replies

I'am running a PiOne with 4.14.14 Stretch.
I have installed acpid and give the command acpi_listen

When pussing the button in Stretch and I didn't see any logging.
With the old kernel in 5.38 Jessie on the same PiOne I saw
button/power PBTN 00000080 00000000
button/power PBTN 00000080 00000000
button/power PBTN 00000080 00000000

In the output of
 dtc /boot/dtb/sun8i-h3-orangepi-one.dtb
I saw

key_pins@0 {
    pins = "PL3";
    function = "gpio_in";
    linux,phandle = <0x39>;
    phandle = <0x39>;
};

Means gpio_in  defined as an input?

Is the button function not yet implemented in 4.14.14? Or is something going wrong?

In mainline kernel DT the onboard button sends the code BTN_0 so it doesn't work as a power button by default.

		sw4 {
			label = "sw4";
			linux,code = <BTN_0>;
			gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
		};

It can be changed to one of the codes defined here like KEY_POWER, but it will work only for shutdown, there is no suspend/resume or powering on after shutdown support.

  • Author

I use this button for shutdown the PiOne. Therefore in the 5.38 Jessie version I have put a file in /etc/acpi/events/button_power
File contents:
event=button/power
action=/sbin/shutdown -h now

As written in another forum topic, PiHole is my first and only Linux project. I don't know to implement this. Is it possible that this can be included in one of the next package releases?

1 hour ago, eejeel said:

Is it possible that this can be included in one of the next package releases?

This button is not labeled "Power" on the PCB or on the schematics so IMO its default function should not be changed. Experienced users can always override this by using DT overlays or button remapping software.

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.