Skip to content

Commit

Permalink
Force-disable DPMS jankiness
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Apr 30, 2024
1 parent 907bee2 commit 3a72147
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions states/desktop/common-xwayland.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions states/desktop/xorg.d/dpms.conf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3a72147

Please sign in to comment.