temp/iio-sensor-proxy: add patch to fix inverted rotation on sargo

The previous rule is too vague and would also tag /dev/fastrpc-cdsp
devices too. Sometimes iio-sensor-proxy would bind to this which
seemed to always produce inverted orientation values. If only
/dev/fastrpc-adsp* is tagged, then orientation always seems to be
correct.

fixes #3741

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7681>
This commit is contained in:
Clayton Craft 2026-01-02 17:19:54 -08:00 committed by The Friendly Merge Bot
parent bce90fc1ec
commit 481c2a8970
No known key found for this signature in database
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,25 @@
From 9d8e0b019583b549d61f1cfddc17ea32b17662c6 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Fri, 2 Jan 2026 17:18:27 -0800
Subject: [PATCH] fixup! data: add libssc udev rules
---
data/80-iio-sensor-proxy-libssc.rules | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/data/80-iio-sensor-proxy-libssc.rules b/data/80-iio-sensor-proxy-libssc.rules
index c4fad16..5eb3d46 100644
--- a/data/80-iio-sensor-proxy-libssc.rules
+++ b/data/80-iio-sensor-proxy-libssc.rules
@@ -6,6 +6,7 @@ ACTION=="remove", GOTO="iio_sensor_proxy_libssc_end"
# Set the sensor type for all the types we recognise for SDSP/ADSP.
# Some devices expose the sensors via a separate SDSP while others re-use ADSP.
# These DSPs expose itself as /dev/fastrpc-* in the misc subsystem.
-SUBSYSTEM=="misc", KERNEL=="fastrpc-*", ENV{IIO_SENSOR_PROXY_TYPE}+="ssc-accel ssc-light ssc-proximity ssc-compass"
+SUBSYSTEM=="misc", KERNEL=="fastrpc-adsp*", ENV{IIO_SENSOR_PROXY_TYPE}+="ssc-accel ssc-light ssc-proximity ssc-compass"
+SUBSYSTEM=="misc", KERNEL=="fastrpc-sdsp*", ENV{IIO_SENSOR_PROXY_TYPE}+="ssc-accel ssc-light ssc-proximity ssc-compass"
LABEL="iio_sensor_proxy_libssc_end"
--
2.52.0

View file

@ -3,7 +3,7 @@
pkgname=iio-sensor-proxy
pkgver=99993.8
_pkgver=3.8
pkgrel=3
pkgrel=4
pkgdesc="IIO sensors to D-Bus proxy"
url="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
arch="aarch64"
@ -32,6 +32,7 @@ source="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/archive/$_pkgve
0007-data-iio-sensor-proxy.service.in-add-AF_QIPCRTR.patch
0008-drv-ssc-implement-set_polling.patch
0009-tests-integration-test-add-SSC-sensors.patch
0010-fixup-data-add-libssc-udev-rules.patch
0013-integration-test-add-test-for-sensors-that-report-no.patch
"
@ -71,5 +72,6 @@ d4379f8e53eea02f53640752bef883870a44d0169cf821d3f5bb3245309cac1d1502a7848d5cce60
376999144da2c5a6374de73bfaaf0eb605c5c686640f4de8cbcabbe3e78f3fce4675d5bfdc2dd60dacaa84447a039cf22cc4e5fcda478ea77a00001f052a3d85 0007-data-iio-sensor-proxy.service.in-add-AF_QIPCRTR.patch
bf0ea8a078eb168937645a661fea5b979bf1747ee0c1cd556a238c25f4f26eefd6b2f7a1da1eb0b7d66dcafe24ce31521d71e1a188a324671b08178b392206af 0008-drv-ssc-implement-set_polling.patch
2a208aa064e4f3d6cb24701f65c5cdc5d35a99f61489ac0ab5f336aa8229bc1aa7571b6d7e928a3a28e53b8e35a07655ec3e8b432d7295d82606f8b1f206e7af 0009-tests-integration-test-add-SSC-sensors.patch
4f2d227efb645ce01f4ce997b2923d4a5b12a5d896c47b7e6189fd76abcae4659d5d1fb71608ce4809b19ac5a1129176c81063097826a4a19bc35ed5099537cb 0010-fixup-data-add-libssc-udev-rules.patch
9273f01d35e0f45ddc943808326d87f3a2e678ea29e607d3d70cabc9ea321db761cc170a86b3093553a4c3dfae1d81c5057d146b9a90ff490c85641f02b040df 0013-integration-test-add-test-for-sensors-that-report-no.patch
"