PinePhone: modem takes 30s to power off
We are sleeping 30s on power off to wait for the modem:
The datasheet says to wait 29.5s, according to @icenowy in !620 (comment 214688632).
Still, it seems unintuitive that we need to wait that long. Maybe we can implement @z3ntu's suggestion instead from !620 (comment 214566457):
I know that the modem prints a message like "powered off" when it's safe to power it off, so that would be useful to check and exit directly there.
(Furthermore I'm wondering... should we sleep at all? If the user takes out the battery and reboots, the modem does not have time to shutdown either.)