I initiate a shutdown using:
Sometimes the shutdown occurs in just a few seconds, but sometimes it takes many seconds--probably 30 seconds or more.
Code: Select all
sudo shutdown -hP now
I can verify the pi has not really shutdown, not only by a LED be driving by a separate power management processor, but also by pinging it. When the pi is slow to shutdown, I can verify it is still up by pinging it (it is wifi connected to a router).
I can repeat the shutdown experiment and about 2/3 of the time, the shutdown is immediate, but in about a third of the cases, the shutdown time is long.
How to I debug what is causing the slow shutdown?