summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-30 11:25:37 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-06-30 13:53:09 +0200
commitbfc766d438a707a493f38f484b1b5d05a3508e52 (patch)
tree5fd8beb12b82171d3d2684467f2f572229e99756 /recipes-bsp
parenta5ad70ae5a3ecd415cdf2c80c48c5d1a2c2151c4 (diff)
apalis-tk1: lvds-tegra124: disable lvds by default
Disable LVDS output in favour of primary HDMI one on Apalis TK1. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/lvds-ctrl/lvds-tegra124_1.0.bb19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-bsp/lvds-ctrl/lvds-tegra124_1.0.bb b/recipes-bsp/lvds-ctrl/lvds-tegra124_1.0.bb
new file mode 100644
index 0000000..0b778d6
--- /dev/null
+++ b/recipes-bsp/lvds-ctrl/lvds-tegra124_1.0.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Disable LVDS output in favour of primary HDMI one on Apalis TK1"
+LICENSE = "PD"
+
+SRC_URI = " \
+ file://COPYING \
+"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=1c3a7fb45253c11c74434676d84fe7dd"
+
+ALLOW_EMPTY_${PN} = "1"
+
+pkg_postinst_${PN}() {
+ mkdir -p ${sysconfdir}/xdg/lxsession/LXDE
+ echo "${bindir}/xrandr --output LVDS-0 --off" >> ${sysconfdir}/xdg/lxsession/LXDE/autostart
+}
+
+pkg_postrm_${PN}() {
+ sed -i /xrandr.*output.*LVDS.*off/d ${sysconfdir}/xdg/lxsession/LXDE/autostart || true
+}