[meta-xilinx] [PATCH 20/20] Add xserver-xf86-config_0.1 bbappend

Jason Wu jason.wu.misc at gmail.com
Mon Apr 11 06:23:25 PDT 2016


This installs custom conf that disables the screen saver to xorg.conf.d
folder. Currently it installs 20-diable-screen-saver.conf when
console-blank package is installed. This is a workaround for the screen
wake up issue in X.

Signed-off-by: Jason Wu <jason.wu.misc at gmail.com>
---
 .../xorg-xserver/xserver-xf86-config/zynq/xorg.conf           |  6 ++++++
 .../zynq/xorg.conf.d/20-disable-screen-saver.conf             | 10 ++++++++++
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend             | 11 +++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf.d/20-disable-screen-saver.conf
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend

diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf
new file mode 100644
index 0000000..4982019
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf
@@ -0,0 +1,6 @@
+# Initial xorg.conf for Zynq DRM
+# Most things are setup automatically by magic pixies in the system.
+#
+# It is suggested this file is not used any more and configuration
+# snippets are placed in xorg.conf.d instead.
+#
\ No newline at end of file
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf.d/20-disable-screen-saver.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf.d/20-disable-screen-saver.conf
new file mode 100644
index 0000000..cce099e
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/zynq/xorg.conf.d/20-disable-screen-saver.conf
@@ -0,0 +1,10 @@
+#
+# Disable standby, blank, off suspend time for monitor
+#
+
+Section "ServerFlags"
+        Option          "BlankTime"             "0"
+        Option          "StandbyTime"           "0"
+        Option          "SuspendTime"           "0"
+        Option          "OffTime"               "0"
+EndSection
\ No newline at end of file
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000..8a949e2
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# install 20-disable-screen-saver.conf if console-blank is installed
+SRC_URI_append_zynq = ' \
+	${@bb.utils.contains("IMAGE_INSTALL", "console-blank", "file://xorg.conf.d/20-disable-screen-saver.conf", "",d)} \
+	'
+
+do_install_append_zynq () {
+	install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
+	install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/
+}
\ No newline at end of file
-- 
1.9.1




More information about the meta-xilinx mailing list