‘sOne of the main issues most Raspberry Pi users encounter when using their mini PC on a daily basis as a way to gracefully turn off their Pi PC without the need to continually remove the power cable.
You can also change the time using the xset s [value] command, where [value] is the time in seconds. The default value is 600 ...