]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
xserver-xf86-config: add a configuration fragment to disable screen blanking
authorRoss Burton <ross.burton@arm.com>
Tue, 11 Mar 2025 11:22:40 +0000 (11:22 +0000)
committerSteve Sakoman <steve@sakoman.com>
Wed, 12 Mar 2025 14:10:27 +0000 (07:10 -0700)
Add a configuration fragment that disables screen blanking, and add it
to all qemu machines.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 780a5ccaa51d5aed18200883a686387e70847e4b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuall/noblank.conf [new file with mode: 0644]
meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuall/noblank.conf b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuall/noblank.conf
new file mode 100644 (file)
index 0000000..9d40a95
--- /dev/null
@@ -0,0 +1,7 @@
+# Disable screen blanking
+Section "ServerFlags"
+    Option        "BlankTime" "0"
+    Option        "StandbyTime" "0"
+    Option        "SuspendTime" "0"
+    Option        "OffTime" "0"
+EndSection
index 0972a5dd784f98bce0d388ba17a15af2a32b59c3..d57b3427f8dc9995cbcc1b85419348271d104023 100644 (file)
@@ -5,6 +5,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
 SRC_URI = "file://xorg.conf"
+SRC_URI:append:qemuall = " file://noblank.conf"
 
 S = "${WORKDIR}/sources"
 UNPACKDIR = "${S}"
@@ -19,4 +20,9 @@ do_install () {
                install -d ${D}/${sysconfdir}/X11
                install -m 0644 ${S}/xorg.conf ${D}/${sysconfdir}/X11/
        fi
+
+       if test -s ${S}/noblank.conf; then
+               install -d ${D}/${sysconfdir}/X11/xorg.conf.d
+               install -m 0644 ${S}/noblank.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
+       fi
 }