If you want more flexibility than the standard Windows or Mac settings, consider these popular free tools:
: Go to Settings > System > Power & sleep (or Power & battery ) to adjust how quickly your screen turns off or the PC sleeps when idle.
: A feature-rich freeware tool for Windows that can perform actions like shutting down or sleeping after a defined time or when specific conditions are met.