From 3a72147e38ed922fc5803f121311a3c98d7b023c Mon Sep 17 00:00:00 2001 From: Michael Lustfield Date: Tue, 30 Apr 2024 01:50:45 -0500 Subject: [PATCH] Force-disable DPMS jankiness --- states/desktop/common-xwayland.sls | 6 ++++++ states/desktop/xorg.d/dpms.conf | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 states/desktop/xorg.d/dpms.conf diff --git a/states/desktop/common-xwayland.sls b/states/desktop/common-xwayland.sls index 31ae059..9e2d4b4 100644 --- a/states/desktop/common-xwayland.sls +++ b/states/desktop/common-xwayland.sls @@ -15,3 +15,9 @@ common-X: {% if salt.grains.get('lsb_distrib_release', 12)|int <= 11 %} - firmware-linux-nonfree {% endif %} + +/etc/X11/xorg.conf.d/dpms.conf: + file.managed: + - source: salt://desktop/xorg.d/dpms.conf + - require: + - pkg: common-X diff --git a/states/desktop/xorg.d/dpms.conf b/states/desktop/xorg.d/dpms.conf new file mode 100644 index 0000000..c9b70f5 --- /dev/null +++ b/states/desktop/xorg.d/dpms.conf @@ -0,0 +1,16 @@ +Section "ServerLayout" + Identifier "X.org Configured" + Option "StandbyTime" "0" + Option "SuspendTime" "0" + Option "OffTime" "0" + Option "BlankTime" "0" +EndSection + +Section "Monitor" + Identifier "Monitor0" + Option "DPMS" "false" +EndSection + +Section "Extensions" + Option "DPMS" "Disable" +EndSection