From 1b091bd281d00c2e484a9852bdfbb2880ba40550 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Thu, 17 Jul 2025 22:03:21 +0200 Subject: [PATCH] google-sargo: install config for plasma-camera The google-sargo is not quick enough to handle the default plasma-camera settings. The resolution is a setting too high so this sets it back to 720p which works well enough. The codec is set to default but I'm adding it to make sure it's something we know works when the upstream default changes. The app still says the codec can't keep up but we can't get much better out of it currently. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6791 --- device/community/device-google-sargo/APKBUILD | 15 +++++++++++++-- .../community/device-google-sargo/plasmacamerarc | 5 +++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 device/community/device-google-sargo/plasmacamerarc diff --git a/device/community/device-google-sargo/APKBUILD b/device/community/device-google-sargo/APKBUILD index 994c1afb8..c8d9d22de 100644 --- a/device/community/device-google-sargo/APKBUILD +++ b/device/community/device-google-sargo/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Richard Acayan pkgname=device-google-sargo pkgdesc="Google Pixel 3a" -pkgver=11 +pkgver=12 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -31,9 +31,13 @@ source=" hexagonrpcd.confd modules-initfs no-hexagonrpcd-on-suspend.sh + plasmacamerarc q6voiced.conf " -subpackages="$pkgname-openrc" +subpackages=" + $pkgname-openrc + $pkgname-plasma-camera:plasma_camera +" build() { devicepkg_build $startdir $pkgname @@ -66,11 +70,18 @@ openrc() { "$subpkgdir"/etc/elogind/system-sleep/no-hexagonrpcd-on-suspend.sh } +plasma_camera() { + install_if="$pkgname=$pkgver-r$pkgrel plasma-camera" + + install -Dm644 "$srcdir"/plasmacamerarc "$subpkgdir"/etc/xdg/plasmacamerarc +} + sha512sums=" 089ce0acba4e1d789e337bedfca7570796a6416e7230ae9b8fc6b625747a40dbb064b1a707877cd6b7bdc73844c6571316e2ec0746a77060f13d98c52fdbfc00 81-libssc-google-sargo.rules ad032b1a35cfcd4fc0c8df988430ee97b711e785b86cca68b7552b23a9a2e2b6b97c327e3415a575db47ad6c1f86ded18df5553acaae63010057d89b8c16135e deviceinfo b6208c254b6e44ac4f6d748a38cc6b05da0db2c90235ada2011b138b82ccc3372687df2f5ad97e885e9eea135216a3c52266a08a7f4eb323e62e799f6f82ec7b hexagonrpcd.confd 925d8b176a8f1b47a86a1026cc920ffae99ceb35c3e52c222654c15078907579d23c4d68ed65a98ab937f59aaba2bbdd74da8d273e8b9c1ac87a52f718d383d6 modules-initfs 2972005a9cf6ca57061965075593dddfa8ee479bc6c21cd41851b1a14768cb1cddbd31a17975ae17adc36d40d294ccbc6bf83defbd69fc7b363f638d8564fbbc no-hexagonrpcd-on-suspend.sh +53bec3338d875ecedf2ae981cf9a0f9066e276f09570b3bd06217414461126a76942b70e01c3bb18831fbefeb188621dd5a341ab2604e8fb0c6de8a3025177e2 plasmacamerarc 3a4a9322839d4b3ef9d79668a37840a9f444954759ae3c512e694051d2f9a2573db42ad6c4c1a5c75eeb861232a27ba1a8cef9b503decd54ead25a96e3dd6f98 q6voiced.conf " diff --git a/device/community/device-google-sargo/plasmacamerarc b/device/community/device-google-sargo/plasmacamerarc new file mode 100644 index 000000000..ba8414956 --- /dev/null +++ b/device/community/device-google-sargo/plasmacamerarc @@ -0,0 +1,5 @@ +[General] +# H264 +videoCodec=0 +# 720p +videoResolution=2