Yes, the Raspberry Pi has a sleep timer that can be configured to turn off the display after a period of inactivity. This is to save power when the Pi is not being used.
To change the sleep timer, open the raspi-config tool by running the following command in a terminal:
Code snippet
raspi-config
Use code with caution. Learn more
Select the option "5 Interfacing Options" and then select the option "P1 Advanced Options". Select the option "A1 System Options" and then select the option "S1 Power Management".
You can now change the sleep timer by using the up and down arrow keys to select the desired value. The default value is 10 minutes. Press Enter to confirm your selection.
Once you have changed the sleep timer, press Esc to exit the raspi-config tool.