Files
pmaports-rtwo/temp/iio-sensor-proxy/0010-fixup-data-add-libssc-udev-rules.patch
T
Clayton Craft 481c2a8970 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>
2026-01-06 18:27:17 +00:00

26 lines
1.2 KiB
Diff

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