I have successfully installed Ubuntu 18.04 on an iMac and it works great, but now I need to set it up to turn on itself automatically at a certain time every day. As far as I can understand, there is no BIOS that can give me such an option, and in the native Mac system it can be accomplished in at least two ways: through System Preferences in the OS, or through the pmset command line utility, also in MacOS.
Is there any known way or trick to do it with Ubuntu installed?
Tried so far:
- search for a linux version of pmset (found the MacOS source code, but is it useful?)
- pm-pmu seems to be related, but does it help?
The problem is also searching for something useful because Linux on Mac hardware is quite uncommon. In principle, the problem is the same as in this question, regarding Wake On Lan (not solved).
Edit:
Actually, from the comments it turns out wake-on-lan may be used, but it would be only a workaround as, if I understand correctly, it would need a server (and the iMac connected to the network, and placed in the same subnet?) to wake up my iMac. I pointed out the WOL function because it's another example of BIOS setting similar to the one I would need to toggle. The best option would be to make the iMac turn on without any network connection :-)
New edit:
I tried the wake-on-lan method and it doesn't work, despite all the settings seeming to be correct :-(