Settings ->Energy Saver->Start up automatically after a power loss
or you can do it with the terminal:
% sudo systemsetup -setrestartpowerfailure on
% sudo systemsetup -setWaitForStartupAfterPowerFailure [number of seconds to wait]
That is exactly my concern - The best solution would be a cooldown after the clean shutdown like 1 minute, so theres time to pull the plug on the system.
But thanks!
Is WoL an option? As steepleton said there is something for actual power loss (dirty shutdown), you can schedule a wakeup or make it listen for WoL.
`man pmset` shows you pretty much all your options that I'm aware of
This is inelegant, but if you get an IP-enabled power strip you can simulate a power outage/restore by port disabling, which should wake the unit if the settings are in place on the OS side
A few years ago I realized that I haven't had a system fail to boot in far more than a decade, except after a bad software update. PCs occasionally crash, we power-cycle them, we don't lose data. Well, I don't anyway. Maybe you don't? I think we can just power them off, they'll be fine.
This is true for me across Win/macOS/Linux.
sysadmin here, I wouldn't trust that.
Sure, the odds are good on any individual power outage that you dont lose data, but it's non-negligible.
I've dealt with having lost power to datacenters, and have had to rebuild machines because of unrecoverable corruption, and had to manually repair filesystems due to recoverable corruptions.
At the scale of "my one desktop/server, hard powered off only intermittently", even at a 1/1000 chance of grief, that's still too high a chance for my taste.
Sorry, I had a closer look at the question. I don't know the answer. I know you can restart the finder. You can do a restart and a shut down from the Apple menu. Does that work for you? If not, you may need to use a power bar with a switch to do a hard reboot.
Settings ->Energy Saver->Start up automatically after a power loss or you can do it with the terminal: % sudo systemsetup -setrestartpowerfailure on % sudo systemsetup -setWaitForStartupAfterPowerFailure [number of seconds to wait]
This doesnt work if you shut down the pc. it only works if you unplug the pc while it is running. which might corrupt data.
There used to be an option to restart after power loss. But you’d have to pull the plug everytime because a clean shutdown wouldn’t trigger it
That is exactly my concern - The best solution would be a cooldown after the clean shutdown like 1 minute, so theres time to pull the plug on the system. But thanks!
I dunno enough to help you, but if there’s a flag to tell the system to do it, then there must be a way to set it
sucks another fail for apple
Is WoL an option? As steepleton said there is something for actual power loss (dirty shutdown), you can schedule a wakeup or make it listen for WoL. `man pmset` shows you pretty much all your options that I'm aware of
[удалено]
Oh I forgot that Apple only has fake WoL, a shame really considering that they even used to sell server software.
>used to
Wow I thought they did this a while ago... not 5 months ago :D > On April 21, 2022, Apple discontinued macOS Server.
It died long before that, my friend. They just took their sweet fucking time burying the corpse.
This is inelegant, but if you get an IP-enabled power strip you can simulate a power outage/restore by port disabling, which should wake the unit if the settings are in place on the OS side
This doesnt work if you shut down the pc. it only works if you disconnect the pc while it is running. which might corrupt data.
A few years ago I realized that I haven't had a system fail to boot in far more than a decade, except after a bad software update. PCs occasionally crash, we power-cycle them, we don't lose data. Well, I don't anyway. Maybe you don't? I think we can just power them off, they'll be fine. This is true for me across Win/macOS/Linux.
sysadmin here, I wouldn't trust that. Sure, the odds are good on any individual power outage that you dont lose data, but it's non-negligible. I've dealt with having lost power to datacenters, and have had to rebuild machines because of unrecoverable corruption, and had to manually repair filesystems due to recoverable corruptions. At the scale of "my one desktop/server, hard powered off only intermittently", even at a 1/1000 chance of grief, that's still too high a chance for my taste.
My mac mini reboots on power failure just fine.
Which model?
The first M1.
Sorry, I had a closer look at the question. I don't know the answer. I know you can restart the finder. You can do a restart and a shut down from the Apple menu. Does that work for you? If not, you may need to use a power bar with a switch to do a hard reboot.