summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-03-11 11:22:40 +0000
committerSteve Sakoman <steve@sakoman.com>2025-03-15 06:44:47 -0700
commit4a642b1ae774e218248d33c9e3a1c6a1f971955b (patch)
tree0e9a5f10a08722ef960a6e76dd357eabd6447053
parenta3b990b1f1c4331f9147bfe34ac38942fe5ca870 (diff)
downloadpoky-4a642b1ae774e218248d33c9e3a1c6a1f971955b.tar.gz
xserver-xf86-config: add a configuration fragment to disable screen blanking
Add a configuration fragment that disables screen blanking, and add it to all qemu machines. (From OE-Core rev: 72855767daa515a451ea7ebe3412479cb7bafdc6) 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>
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuall/noblank.conf7
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb6
2 files changed, 13 insertions, 0 deletions
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
index 0000000000..9d40a9599a
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config/qemuall/noblank.conf
@@ -0,0 +1,7 @@
1# Disable screen blanking
2Section "ServerFlags"
3 Option "BlankTime" "0"
4 Option "StandbyTime" "0"
5 Option "SuspendTime" "0"
6 Option "OffTime" "0"
7EndSection
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
index 0972a5dd78..d57b3427f8 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
@@ -5,6 +5,7 @@ LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
6 6
7SRC_URI = "file://xorg.conf" 7SRC_URI = "file://xorg.conf"
8SRC_URI:append:qemuall = " file://noblank.conf"
8 9
9S = "${WORKDIR}/sources" 10S = "${WORKDIR}/sources"
10UNPACKDIR = "${S}" 11UNPACKDIR = "${S}"
@@ -19,4 +20,9 @@ do_install () {
19 install -d ${D}/${sysconfdir}/X11 20 install -d ${D}/${sysconfdir}/X11
20 install -m 0644 ${S}/xorg.conf ${D}/${sysconfdir}/X11/ 21 install -m 0644 ${S}/xorg.conf ${D}/${sysconfdir}/X11/
21 fi 22 fi
23
24 if test -s ${S}/noblank.conf; then
25 install -d ${D}/${sysconfdir}/X11/xorg.conf.d
26 install -m 0644 ${S}/noblank.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
27 fi
22} 28}