First turn on your computer and access to BIOS immediately . If you don’t know how, please visit this article.

After you get in BIOS, open Advanced tab > Restore on AC/Power Loss. Make sure that its value is “Power On

Finally, Save & exit.

If you like to give it a test, unplug your computer and plug it back, the machine will turn on itself.

Enjoy !