From 20e0ff41c534900d652fa48dcd1e52aec43987f4 Mon Sep 17 00:00:00 2001 From: vipoll <vipollmail@gmail.com> Date: Fri, 15 Dec 2023 02:17:42 +0400 Subject: [PATCH] device-xiaomi-markw: workaround to fix touchscreens (MR 4631) [ci:skip-build]: already built successfully in CI --- device/community/device-xiaomi-markw/APKBUILD | 8 +++++--- .../modprobe.d_touchscreens-workaround.conf | 1 + device/community/device-xiaomi-markw/modules-initfs | 2 -- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 device/community/device-xiaomi-markw/modprobe.d_touchscreens-workaround.conf diff --git a/device/community/device-xiaomi-markw/APKBUILD b/device/community/device-xiaomi-markw/APKBUILD index af39591408e..aea729ae232 100644 --- a/device/community/device-xiaomi-markw/APKBUILD +++ b/device/community/device-xiaomi-markw/APKBUILD @@ -2,7 +2,7 @@ # Reference: <https://postmarketos.org/devicepkg> pkgname=device-xiaomi-markw pkgdesc="Xiaomi Redmi 4 Prime" -pkgver=3 +pkgver=4 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -16,7 +16,7 @@ depends=" soc-qcom-msm8953 " makedepends="devicepkg-dev" -source="deviceinfo modules-initfs" +source="deviceinfo modules-initfs modprobe.d_touchscreens-workaround.conf" subpackages="$pkgname-nonfree-firmware:nonfree_firmware" build() { @@ -24,6 +24,7 @@ build() { } package() { + install -D -m644 "$srcdir"/modprobe.d_touchscreens-workaround.conf "$pkgdir"/etc/modprobe.d/touchscreens-workaround.conf devicepkg_package $startdir $pkgname } @@ -40,5 +41,6 @@ nonfree_firmware() { sha512sums=" 0d393f07e551058781a67c096b1ad7f252c78e801a2da8752f893f4ea7c24f7aa65bc69f9c80c7be53e615269a7028eb151e7bc3fe79f0c260a4d28e97f10e7d deviceinfo -0cba88d7ede62dc7c47feefb27d10e58e4c93498bec97cd274a1d10c4f16dff06c5472ed555170e0392a57c9269cc50bf550523f41bf1ba6c600af533302574b modules-initfs +00f2a07de0aaedd3f3fee4aed6e1f591539cb56aa109c49d5b0a5de11c7f8c5d0a3cef8111b855d064bfe38901f3bbcddd9cf2c65ae811578d43319137f586ac modules-initfs +b6d005ac8be56b6eca402869fcf33f671f02000fb927af36ae9a860817c92a17329323408e94f4593d63e9f6a95881e270bc9dcd930ad4cf8312e1ac85ab4a20 modprobe.d_touchscreens-workaround.conf " diff --git a/device/community/device-xiaomi-markw/modprobe.d_touchscreens-workaround.conf b/device/community/device-xiaomi-markw/modprobe.d_touchscreens-workaround.conf new file mode 100644 index 00000000000..5d2a869f646 --- /dev/null +++ b/device/community/device-xiaomi-markw/modprobe.d_touchscreens-workaround.conf @@ -0,0 +1 @@ +softdep atmel_mxt_ts pre: edt_ft5x06 diff --git a/device/community/device-xiaomi-markw/modules-initfs b/device/community/device-xiaomi-markw/modules-initfs index 2c9197027f0..cb8b96a9a1a 100644 --- a/device/community/device-xiaomi-markw/modules-initfs +++ b/device/community/device-xiaomi-markw/modules-initfs @@ -1,5 +1,3 @@ -atmel_mxt_ts -edt_ft5x06 msm panel_mdss_nt35596_ebbg panel_mdss_r63350 -- GitLab