From e2cbd9e4ede06193a4e166cd0002a67562664aa4 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 5 Feb 2021 15:07:23 +0100 Subject: [PATCH] pine64-pinephone: enable Kirigami lowpower mode (MR 1928) Should increase performance a bit of Kirigami applications by disabling some fancy stuff like shadows --- device/main/device-pine64-pinephone/APKBUILD | 7 +++++-- device/main/device-pine64-pinephone/kirigami-lowpower.sh | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 device/main/device-pine64-pinephone/kirigami-lowpower.sh diff --git a/device/main/device-pine64-pinephone/APKBUILD b/device/main/device-pine64-pinephone/APKBUILD index d118d428d..5146ed616 100644 --- a/device/main/device-pine64-pinephone/APKBUILD +++ b/device/main/device-pine64-pinephone/APKBUILD @@ -5,7 +5,7 @@ # Co-Maintainer: Clayton Craft pkgname=device-pine64-pinephone pkgver=0.20 -pkgrel=1 +pkgrel=2 pkgdesc="PINE64 PinePhone" url="https://postmarketos.org" license="MIT" @@ -44,6 +44,7 @@ source=" gpsd_device-hook.sh gpsd_pinephone.initd hwtest.ini + kirigami-lowpower.sh setup-modem.sh setup-modem.sh.ofono sysrq.conf @@ -142,8 +143,9 @@ phosh() { } plasma_mobile() { - install_if="$pkgname=$pkgver-r$pkgrel plasma-phone-components" + install_if="$pkgname=$pkgver-r$pkgrel kirigami2" install -Dm644 "$srcdir"/60-flashlight.rules -t "$subpkgdir"/usr/lib/udev/rules.d/ + install -Dm644 "$srcdir"/kirigami-lowpower.sh "$subpkgdir"/etc/profile.d/kirigami-lowpower.sh } shelli() { @@ -162,6 +164,7 @@ b53cc6f2531854cc9c1e4c334185a20551d64c8675ee8a8eaa03b99d80808fad421a0f6e99e5be21 ccbc83b84b5028bc2c8e526759004ce71b50b2675ecffee98f5676c70a3332197a231ff9d2fd46444dd3c0a637ec08ce6125b18240fe6bfc13f624a15192e648 gpsd_device-hook.sh 1017fc3f325227da58c77abdc59e9735288d91a7ccc63ec784fe0241c523786b617a11ce8045dab2a74ca12a7dd70aaa334af91836418db1e96a3266fecaa4fd gpsd_pinephone.initd 3dd6d612c381cb0002049d1974d8fb5aa5a53a1eb4d6bcbf62eb2ad52cfdc45f0f6ad24a699716d3513b0371aa1316f25dc72afc10d7176cc3b99d0965c3f030 hwtest.ini +6bc22b369b2d9058b702ac7a7862abaefaf8179b43491868bdb008d181b59104f1ded89db1da51a810e1ccdc803a579b924a438674283a65afc3a9c4d2894caf kirigami-lowpower.sh fa063e2863afc48e627acc1a5b213a81499ba1dd30325f74f118a44e3964aec7e597b1f4bd318b7cf5bf14f27daf88e6ad9fc277ab106cbbe1189fdcc650d5c1 setup-modem.sh 0c81d758e1bcb56ed2cdaf91124121ebbd4dd7a5e25f02a7685b837faf660949d05f6b07b39a1c6a9ca22a7029cdcf3c6dac8f1038e37c8a34cb7c5702e9df51 setup-modem.sh.ofono f4b5509fd6a8b23f3667f5e7262b3a19c607a37cb9eaf7d0e93eb826d45c26ec12df4810879bacb8e4042bb83cc80b2b436224c8d47b6d67361369a724bbf7ee sysrq.conf diff --git a/device/main/device-pine64-pinephone/kirigami-lowpower.sh b/device/main/device-pine64-pinephone/kirigami-lowpower.sh new file mode 100644 index 000000000..386cec4c3 --- /dev/null +++ b/device/main/device-pine64-pinephone/kirigami-lowpower.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +export KIRIGAMI_LOWPOWER_HARDWARE=1