From 49006debee9987d8fbda7b245d9caa565a0b84d7 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 26 Oct 2023 03:14:24 +0200 Subject: [PATCH] x window system: refined screen blanking --- wiki/linux/x_window_system.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index fdde9ab..a0361dd 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -58,18 +58,31 @@ Additionally to the guides in this section that are independent of the used graphics unit special configuration for [Nvidia](/wiki/linux/nvidia.md) and [Intel](./intel.md) can be found in their respective entries in this wiki. -##### Screen Blanking +##### Turning Off the Screen To save power the screen is set to turn black after a given amount of time. -This can be disabled temporarily by running `xset s off` or permanently by -adding the following lines to your `/etc/X11/xorg.conf`: +Adding the following lines to your `/etc/X11/xorg.conf.d/dpms.conf` will permanently enable screen +blanking. + +```txt +[Monitor] +Option "DPMS" "true" +``` + +Additionally configure the times of the following section (both `0` at the moment) and add it to the +`ServerFlags` option of the file `/etc/X11/xorg.conf.d/dpms.conf` or alternatively add them into the +file `/etc/X11/xorg.conf`. ```txt Section "ServerFlags" + Option "OffTime" "0" Option "BlankTime" "0" EndSection ``` +This can be disabled temporarily by running `xset s off`. +The screen can also be turned off instantly with the command `xset dpms force off`. + ##### Adjust DPI and UI Scale The dots per inch (DPI) is a measurement of spatial video dot density.