]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston: Enable touchscreen calibrator
authorTom Hochstein <tom.hochstein@nxp.com>
Thu, 23 May 2019 21:24:00 +0000 (16:24 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 12 Sep 2019 17:45:07 +0000 (14:45 -0300)
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/wayland/weston/0001-weston.ini-using-argb8888-as-gbm-default-on-mscale-8.patch
recipes-graphics/wayland/weston/0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch [new file with mode: 0644]
recipes-graphics/wayland/weston_5.0.0.imx.bb

index e951ce12d136324b8d6adbf3433b5d845d30cd10..75589d3b1a8cd2369eb9093b0f2b757271a923f7 100644 (file)
@@ -1,4 +1,4 @@
-From 4ab82e531d01c3c1f45a4f099d145cde2890a0d5 Mon Sep 17 00:00:00 2001
+From 186ec0c80410b2120b8f31c211cb44a836c84522 Mon Sep 17 00:00:00 2001
 From: Haihua Hu <jared.hu@nxp.com>
 Date: Wed, 4 Jul 2018 16:05:20 +0800
 Subject: [PATCH] weston.ini: using argb8888 as gbm default on mscale 850D
@@ -22,5 +22,5 @@ Index: git/weston.ini.in
  #use-g2d=1
 +gbm-format=argb8888
  
#[output]
- #name=HDMI-A-1
[libinput]
+ touchscreen_calibrator=true
diff --git a/recipes-graphics/wayland/weston/0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch b/recipes-graphics/wayland/weston/0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch
new file mode 100644 (file)
index 0000000..7ea07ed
--- /dev/null
@@ -0,0 +1,30 @@
+From 46843c8681ddafbea6f491b7af4de6529e93f5bd Mon Sep 17 00:00:00 2001
+From: Jun Zhu <junzhu@nxp.com>
+Date: Sun, 30 Sep 2018 15:31:26 +0800
+Subject: [PATCH] weston-touch-calibrator: Advertise the touchscreen calibrator
+ interface to all clients. [YOCIMX-2963]
+
+Set touchscreen_calibrator to true in the section "libinput" of the configure file
+ /etc/xdg/weston/weston.ini.
+Otherwise, it will report that the new-added interface "weston-touch-calibration" cannot be found.
+
+Signed-off-by: Jun Zhu <junzhu@nxp.com>
+
+---
+ weston.ini.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/weston.ini.in b/weston.ini.in
+index 83dd56e..6e20e11 100644
+--- a/weston.ini.in
++++ b/weston.ini.in
+@@ -3,6 +3,9 @@
+ idle-time=0
+ #use-g2d=1
++[libinput]
++touchscreen_calibrator=true
++
+ #[output]
+ #name=HDMI-A-1
+ #mode=1920x1080@60
index 032972faa66581ee8b8b160be69b4b3069939f56..7649893bb168bf5614bf7d4fe42836b7d99fea07 100644 (file)
@@ -14,6 +14,7 @@ SRC_URI = "git://source.codeaurora.org/external/imx/weston-imx.git;protocol=http
            file://0001-make-error-portable.patch \
            file://xwayland.weston-start \
            file://0001-weston-launch-Provide-a-default-version-that-doesn-t.patch \
+           file://0003-weston-touch-calibrator-Advertise-the-touchscreen-ca.patch \
 "
 # Use argb8888 as gbm-format for i.MX8MQ only
 SRC_URI_append_mx8mq = " file://0001-weston.ini-using-argb8888-as-gbm-default-on-mscale-8.patch \