If you have to stop your monitor from going into power-saving mode or turning on the screensaver, I found an easy way to turn off these features.
- Open your Terminal and Edit the Autostart File:
In the Terminal, type the following command to open the autostart file in a text editor:
sudo nano /etc/xdg/lxsession/LXDE/autostart
This file controls what programs run automatically when you start your desktop environment. Note that if you’re using a different desktop environment like GNOME, XFCE, or KDE, the file path may differ.
2. Add Commands to Disable Power Saving
Scroll to the bottom of the file and add these three lines:
@xset s off
@xset -dpms
@xset s noblank
These commands will turn off the screensaver, disable power management for the display, and prevent the screen from blanking.
Type ctrl + X -> Y -> Enter to exit the Editor
3. Reboot System
To restart your Debian System type: sudo reboot