Auto Reboot
Because all encrypted devices store their encryption keys in their RAM after you first entered the device password during the start up, bad actors could try to read your encryption keys out of the RAM, even when your device is just screen locked.
What is a RAM?
What is a RAM?
In very short, the RAM is a very fast memory device, that has one important feature for us: it loses all data, when the power is turned off!
Because of this, we want to automatically turn off our devices to clear our encryption keys from the RAM.
Automatic reboot can be configured on all PC platforms and some Android devices. Instructions for the native functions of the various platforms are provided below. No additional programs need to be installed.
PC
Linux
On Linux, you can use crontab for automatic jobs such as auto reboot. For example, to set the PC to restart every morning at 4 a.m.:
- Open Terminal (
Command Line) - Enter this command in the terminal:
sudo crontab -e
An editor will now open (or you will need to select one, TIP: select nano)
- Paste the following line at the bottom:
0 4 * * * /sbin/shutdown -r- To do this, copy the line above
- Go back to the command line in the editor
Right-click > Paste- First press
Control+Sfor “safe”- then press
Control+Xfor “exit”
- then press
- Done
Explanation of the cron command
Explanation of the cron command
0 4 * * * /sbin/shutdown -r
From left to right:
- zero minutes
- third hour
- *th day of the month
- *th month
- *th day of the week
- Execute the terminal command
/sbin/shutdown -r
The asterisks mean “all possible values.” This means that the complete line reads:
Execute the command /sbin/shutdown -r every month on every day at hour 3 at minute 0.
The -r at the end of /sbin/shutdown -r stands for reboot. If you simply omit this -r, the PC will not restart automatically, but will simply remain off.
MacOS
- Click on the
Apple logoin the menu bar. System PreferencesEnergy SaverSchedule

The top checkbox can be used to specify when the PC should be restarted when it is turned off. We are not interested in this. We want to automatically turn off the PC to clear the RAM.
- So we select the bottom checkbox
Every day- Choosing the reboot time is up to you, but we would recommend a time at night (e.g., 2 a.m.), as this is when we usually do not use the computer. Additionally, house searches are often conducted in the morning, so rebooting our computer beforehand makes sense.
Windows
We can use the Task Scheduler to shut down the computer, restart it, or perform any action once or at regular intervals.
If you prefer to follow a video tutorial, there is also YouTube video on this topic.
- Enter
taskschd.mscin the Start search and open Task Scheduler. - In the right-hand bar, click on
Create basic task- Give the task a name, e.g.
Auto Reboot Execute whether the user is logged on or not
- Give the task a name, e.g.
- Go to the next tab and select
TriggersDaily- Set the restart time (e.g. 2 a.m.).
- Start date and start time: Select the current time i.e. valid from now
OKand go to the next tabAction. Here, selectStart a program- Now enter
shutdownin theProgram/scriptfield - Now enter
/r /fin theAdd argumentsfield - The
\rstands forreboot. If you only enter/fthere, the PC will not restart automatically, but will simply remain off.
- Now enter
Nextand go to the next tabConditions- Make sure that under the “Power” section:
- the top two checkboxes are unchecked, i.e. off
- and the last one, “Wake the computer to run this program,” is checked.
- Click
Nextto check everything and then click “Finish.” - Finally, you will probably have to enter your password.
Mobile devices
Android
An automatic restart can also be set on common Android devices. GrapheneOS even offers the option to restart the device whenever it has been unlocked for X hours.
A restart at a fixed time can be set as follows:
SettingsUtilitiesScheduled power on and off
Here you can now specify when the device should always shut down and when it should restart.
iOS
Unfortunately, iOS does not currently offer a function for scheduled restarts.
Feedback: You have feedback for esc-it.org? Feel free to use our short feedback form.