device-oneplus-cheeseburger: workaround wrong touch rotation on PlaMo (MR 3531)

This will have to do until https://invent.kde.org/teams/plasma-mobile/issues/-/issues/160
is solved; the display orientation will remain upside down upon
installation but at least the touchscreen coordinates are correct now.
This commit is contained in:
Jami Kettunen
2022-10-14 11:55:57 +02:00
committed by Newbyte
parent e8fa0d7448
commit 7bdacb41c1
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1 @@
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="Synaptics s3508", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1"
@@ -15,6 +15,7 @@ depends="
"
makedepends="devicepkg-dev"
source="
21-oneplus5-ts.rules
deviceinfo
phoc.ini
"
@@ -23,6 +24,7 @@ subpackages="
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-phosh
$pkgname-plasma-mobile:plasma_mobile
"
build() {
@@ -53,11 +55,21 @@ nonfree_firmware() {
phosh() {
install_if="$pkgname postmarketos-ui-phosh"
# some scaling tweaks
install -Dm644 "$srcdir"/phoc.ini \
"$subpkgdir"/etc/phosh/phoc.ini
}
plasma_mobile() {
install_if="$pkgname postmarketos-ui-plasma-mobile"
# fix incorrect 180 degree touchscreen rotation due to PlaMo kwin_wayland bug
# https://invent.kde.org/teams/plasma-mobile/issues/-/issues/160
install -Dm644 "$srcdir"/21-oneplus5-ts.rules \
"$subpkgdir"/etc/udev/rules.d/21-oneplus5-ts.rules
}
sha512sums="
fcb37390af6f2a0aed381585eeec7d0dd30e0b291d97a6fa433ed4b5d3badb3298709972d382a44f555329f83aabdbb8c8affcfe3933072538c4ac8c3ff9aca8 21-oneplus5-ts.rules
a5c0a7bf014f39c4f8ae06148eb2331f937d3075518e34d09fe5d8c48bc0fd13af7eb67dc33567073c78667a1fa9f2121d9ef9648e8f041f8342f00cc6233e4e deviceinfo
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
"