device-xiaomi-daisy: limit touchscreen calibration for goodix (MR 4978)

Limit touchscreen calibration only available for goodix variant, it has fixed
the calibration isssues on focaltech variant.
This commit is contained in:
Barnabás Czémán 2024-03-30 16:16:02 +01:00 committed by Robert Eckelmann
parent 70e443b94e
commit 2db2095b2a
No known key found for this signature in database
GPG Key ID: 30C0D50BEF63BF54
3 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,5 @@
SUBSYSTEM=="input", ENV{DEVNAME}=="/dev/input/event1", \
ATTRS{name}=="Goodix Capacitive TouchScreen", \
ENV{WL_CALIBRATION}="4.00 0.00 0.00 0.00 1.80 0.00", \
ENV{LIBINPUT_CALIBRATION_MATRIX}="4.00 0.00 0 0.00 1.80 0", \
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1"

View File

@ -2,8 +2,8 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-daisy
pkgdesc="Xiaomi Mi A2 Lite"
pkgver=9
pkgrel=3
pkgver=10
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
@ -26,6 +26,7 @@ makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
90-device-xiaomi-daisy.rules
"
build() {
@ -34,9 +35,11 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 90-device-xiaomi-daisy.rules -t "$pkgdir/etc/udev/rules.d/"
}
sha512sums="
0982ea07d3a048da27a10dd41efacf638d08be35768b587c31874d21654c4e5ba99096729c0f14d18e6f4447ce277dd1cf986162462654eb01c916cc458503e7 deviceinfo
8c5980c1da9e5bc91f11bb8056ac9a225cb84a90a42a964dc0dc2966220c105683081055fdcb1caa8c198019d8373d8c5fe27155429c17814d34075d5f961aa4 deviceinfo
7202f0a55dfe43348940412fc38e59c855594b070db8742419feadb2299086d5810107201a228b7137b7cc7a97c94afac95d81c0cd65c52f31dbcb619b0a4279 modules-initfs
a2608b01b7b6e2dade694af355ff4f0f26cad49cf54bc332c77eb75d19fdc985f7f996fedb72753de447be0391deabf5fcea52406791d1e6e0d165703b63f145 90-device-xiaomi-daisy.rules
"

View File

@ -20,8 +20,6 @@ deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2280"
deviceinfo_swap_size_recommended="1024"
deviceinfo_dev_touchscreen="/dev/input/event1"
deviceinfo_dev_touchscreen_calibration="4.00 0.00 0.00 0.00 1.80 0.00"
# Bootloader related
deviceinfo_flash_method="fastboot"