How to Disable Screensaver and Power Saving Mode on Debian

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.

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Wanderz Blog by Crimson Themes.