Files
pmaports-rtwo/temp/iio-sensor-proxy/0001-WIP-iio-sensor-proxy.c-Do-not-exit-based-on-sensor-e.patch
T
Clayton Craft 6180adfdf2 temp/iio-sensor-proxy: upgrade to 3.8
I dropped 2 patches that seem to have been merged upstream.
I also updated the pkgver format to follow what we do for other forked
pkgs, so hopefully the upstream compat monitoring thing will detect when
this pkg is out of date again

This adds a new patch to fix #3787

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7099>
2025-10-01 14:46:19 +00:00

38 lines
1.1 KiB
Diff

From c73bdbca1b4278ada24dde68e0d09c352dcaa004 Mon Sep 17 00:00:00 2001
From: "Sicelo A. Mhlongo" <absicsz@gmail.com>
Date: Tue, 30 Sep 2025 13:17:16 +0200
Subject: [PATCH] WIP: iio-sensor-proxy.c: Do not exit based on sensor events
...
---
src/iio-sensor-proxy.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/iio-sensor-proxy.c b/src/iio-sensor-proxy.c
index 5f26d3d..7505783 100644
--- a/src/iio-sensor-proxy.c
+++ b/src/iio-sensor-proxy.c
@@ -766,8 +766,7 @@ name_acquired_handler (GDBusConnection *connection,
bail:
data->ret = 0;
- g_debug ("No sensors or missing kernel drivers for the sensors");
- g_main_loop_quit (data->loop);
+ g_debug ("No sensors or missing kernel drivers for the sensors. Waiting for hotplug sensors");
}
static gboolean
@@ -1050,9 +1049,6 @@ sensor_changes (GUdevClient *client,
send_driver_changed_dbus_event (data, i);
}
}
-
- if (!any_sensors_left (data))
- g_main_loop_quit (data->loop);
} else if (g_strcmp0 (action, "add") == 0) {
for (i = 0; i < G_N_ELEMENTS(drivers); i++) {
SensorDriver *driver = (SensorDriver *) drivers[i];
--
2.51.0