Is there a linux command or a way to cause a power cycle a system with a timeout/delay in between the power off and power on? Thanks.
Asked
Active
Viewed 281 times
0
-
2This will be completely hardware-dependent. – Tripp Kinetics Nov 16 '18 at 22:01
-
@TrippKinetics - Could you please elaborate more? Thanks. I have seen such timeout settings in bios options, but that works only for hard power failures not the power cycles initiated through OS. – Ganesh Nov 19 '18 at 18:55
1 Answers
0
It is a power management feature that is supported by many, but not all, BIOS/UEFI power management feature sets. The feature should be called "Resume on RTC Alarm", or something similar. Please refer to these instructions, which deal with Microsoft Windows 7 for general information regarding this feature.
As far as doing it in Linux is concerned, there is a software package called nvram-wakeup
, which is available by default on many Linux distributions. The workflow would be to set nvram-wakeup
to power the machine up 5 minutes after the scheduled shutdown time, and then perform a shutdown -P {scheduled time}
.

Tripp Kinetics
- 115
- 9