Need help on GPIO power button

Recommended Posts

Hello, everyone.

I'm planning to make a "power button" on orange pi zero using GPIO pins. I'm using kernel 4.x


Of course, some questions.


General idea is:

1) Create the overlay with correct pin number

2) Install acpid

3) It should work.



- What resistor should I use to short pin to ground ? 10K ? May other values work ? (Not sure my "scrap metal" box has exact this value)

- How does overlay file look like ? I've seen some variants on the forum, but can some one point to working code ? I'm planning to use PA06 pin, as far as I understand it's a pin 7 on OpiZero 26 pin connector.

- I'm already using overlay for I2C for I2C0 (pins 3 and 5). Do I understand correctly that introducing acpi button won't affect I2c functionality.


Thanks a lot in advance

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.