From patchwork Fri Sep 30 15:08:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "philippe.coval@astrolabe.coop" X-Patchwork-Id: 13429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45795C433FE for ; Fri, 30 Sep 2022 15:09:18 +0000 (UTC) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by mx.groups.io with SMTP id smtpd.web12.32.1664550548449107502 for ; Fri, 30 Sep 2022 08:09:09 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: hua.lan.rzr.cloudns.org, ip: 212.27.42.6, mailfrom: rzr@hua.lan.rzr.cloudns.org) Received: from hua (unknown [IPv6:2a01:e34:ec57:d710::e6ad:1a43]) (Authenticated sender: philippe.coval@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 6CC17780378; Fri, 30 Sep 2022 17:09:00 +0200 (CEST) Received: by hua (Postfix, from userid 10000) id CD08222650E; Fri, 30 Sep 2022 17:08:59 +0200 (CEST) From: philippe.coval@astrolabe.coop To: openembedded-core@lists.openembedded.org Cc: philippe.coval.pro+openembedded-core-lists.yoctoproject.org@gmail.com, Philippe Coval , Philippe Coval Subject: [openembedded-core][PATCHv2] graphics: Hotfix for eGalax Touchscreen Date: Fri, 30 Sep 2022 17:08:58 +0200 Message-Id: <20220930150858.3389410-1-philippe.coval@astrolabe.coop> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 30 Sep 2022 15:09:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/171222 From: Philippe Coval For unsupported screens (which X axis is inverted) For the record issue was observed with this CVL1010 device: http://www.cartft.com/en/catalog/il/1589# For more details check related links: Forwarded: https://lists.openembedded.org/g/openembedded-core/message/171179 Relate-to: https://gitlab.freedesktop.org/libinput/libinput/-/issues/665 Relate-to: https://at.projects.genivi.org/jira/si/jira.issueviews:issue-html/GDP-19/GDP-19.html Relate-to: https://git.ostc-eu.org/OSTC/planning/blueprints/-/issues/22 Origin: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/merge_requests/288 Signed-off-by: Philippe Coval Signed-off-by: Philippe Coval --- .../wayland/libinput/90-usb-0eef-0001.rules | 1 + meta/recipes-graphics/wayland/libinput_1.19.4.bb | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 meta/recipes-graphics/wayland/libinput/90-usb-0eef-0001.rules diff --git a/meta/recipes-graphics/wayland/libinput/90-usb-0eef-0001.rules b/meta/recipes-graphics/wayland/libinput/90-usb-0eef-0001.rules new file mode 100644 index 0000000000..354629dbbb --- /dev/null +++ b/meta/recipes-graphics/wayland/libinput/90-usb-0eef-0001.rules @@ -0,0 +1 @@ +ACTION=="add|change", KERNEL=="event[0-9]*", ENV{ID_VENDOR_ID}=="0eef", ENV{ID_MODEL_ID}=="0001", ENV{ID_INPUT_TOUCHSCREEN}="1", ENV{ID_INPUT_TABLET}="0", ENV{ID_INPUT_MOUSE}="0", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 1 0" diff --git a/meta/recipes-graphics/wayland/libinput_1.19.4.bb b/meta/recipes-graphics/wayland/libinput_1.19.4.bb index a7d0c4be69..089f41c58a 100644 --- a/meta/recipes-graphics/wayland/libinput_1.19.4.bb +++ b/meta/recipes-graphics/wayland/libinput_1.19.4.bb @@ -15,6 +15,7 @@ DEPENDS = "libevdev udev mtdev libcheck" SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \ file://run-ptest \ file://determinism.patch \ + file://90-usb-0eef-0001.rules \ " SRC_URI[sha256sum] = "ff33a570b5a936c81e6c08389a8581c2665311d026ce3d225c88d09c49f9b440" @@ -47,3 +48,8 @@ RREPLACES:${PN} = "libinput" RCONFLICTS:${PN} = "libinput" FILES:${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite" + +do_install:append() { + install -d "${D}/${sysconfdir}/udev/rules.d" + install -m444 "${WORKDIR}/90-usb-0eef-0001.rules" "${D}/${sysconfdir}/udev/rules.d/" +}