Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5819

Troubleshooting • Re: Raspberry pi5 and power on from gpio 3

$
0
0
I think you can declare victory now.

Victory was never my aim. Understanding was.

And yes, POWER_OFF_ON_HALT=1 would make all GPIO go off on shutdown. But that wasn't why I suggested you try it. I suggested you try it because a gpio directive to set a pin high in config.txt was not soon enough after button press to satisfy your requirement.
The point of using it and monitoring 3.3v was it was the earliest way I could think of to get a positive indication that boot is in progress or that the Pi is powered on.

Though I'm still unsure what you're trying to monitor.

Like all other Pi the Pi5 does not have a usable, traditional standby/sleep state. It's either powered or not. When powered it's either booted or only the PMIC is powered (which may or may not be suplying 3.3v depending on EEPROM config).

The 4B and ealier were different in that when shutdown the CPU/SoC was actually rebooted then held in a low power reset state until GPIO3 showed a low to high transition (IIRC). But again no standby state in the traditional meaning.

If your concern is solely debounce on the power button when booting, I'd start by testing to see if it is actually a problem. And asking RPL what debouce is already present on the board/in the PMIC. If memory serves, once booting/booted a short press to shutdown is passed to the kernel to act on but a long press (several seconds) cuts power without notifying the OS.

Oh, and the launch of the Pi5 doesn't mean that the 4B is now unavailable. While I don't have a link to the obselence statement it's going to be several years before it is retired completely. So if the Pi5 is not suitable for your use case, don't use it.

I do agree that the lack of boot on GPIO3 is a pain if you have existing projects/wiring/products/add ons/HATs that make use of it. But if that is the case, especially if you're asking in connection with developing a commerical product (and especially without declaring that up front), your best option is to contact RPL or the manufacturer of the item concerned directly for help.

Statistics: Posted by thagrol — Tue Sep 03, 2024 12:14 am



Viewing all articles
Browse latest Browse all 5819

Trending Articles