[meta-freescale] [meta-fsl-arm][PATCH 2/3] xserver-xf86-config: SabreLite configuration
Gary Thomas
gary at mlbassoc.com
Fri Dec 21 08:25:14 PST 2012
Complete X configuration for SabreLite with LCD/touch screen
Signed-off-by: Gary Thomas <gary at mlbassoc.com>
---
.../imx6qsabrelite/11-touchscreen.conf | 7 +++++++
.../xserver-xf86-config/imx6qsabrelite/xorg.conf | 14 ++++++++++++++
.../xorg-xserver/xserver-xf86-config_0.1.bbappend | 9 +++++++++
3 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/11-touchscreen.conf
create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/xorg.conf
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/11-touchscreen.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/11-touchscreen.conf
new file mode 100644
index 0000000..526b840
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/11-touchscreen.conf
@@ -0,0 +1,7 @@
+Section "InputClass"
+Identifier "tsc2004"
+MatchProduct "tsc2004"
+MatchDevicePath "/dev/input/event*"
+Driver "evdev"
+Option "InvertX" "true"
+EndSection
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/xorg.conf b/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/xorg.conf
new file mode 100644
index 0000000..b89bed6
--- /dev/null
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config/imx6qsabrelite/xorg.conf
@@ -0,0 +1,14 @@
+Section "Device"
+ Identifier "i.MX Accelerated Framebuffer Device"
+ Driver "vivante"
+ Option "fbdev" "/dev/fb0"
+ Option "vivante_fbdev" "/dev/fb0"
+ Option "HWcursor" "false"
+EndSection
+
+Section "ServerFlags"
+ Option "BlankTime" "0"
+ Option "StandbyTime" "0"
+ Option "SuspendTime" "0"
+ Option "OffTime" "0"
+EndSection
diff --git a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
index 8337e55..1c5334b 100644
--- a/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
+++ b/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -2,3 +2,12 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PRINC := "${@int(PRINC) + 8}"
+
+# Mouse/touchscreen configuration
+SRC_URI_append_imx6qsabrelite = " file://11-touchscreen.conf"
+
+do_install_append_imx6qsabrelite () {
+ install -d -m 0755 ${D}/etc/X11/xorg.conf.d
+ install -m 0755 ${WORKDIR}/11-touchscreen.conf ${D}/etc/X11/xorg.conf.d
+}
+
--
1.7.7.6
More information about the meta-freescale
mailing list