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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now