# Fedora's iio-sensor-proxy spec (source RPM 3.9-3) with the Qualcomm Snapdragon Sensor Core # drivers enabled. Fedora builds with -Dssc-support=disabled because libssc is not packaged in Fedora; the # release carries Fedora's number plus a suffix so this build replaces Fedora's in place, and sp11-sensors # excludes the package from dnf updates so a later Fedora build does not take the drivers away again. # Refresh from the target release's source RPM when Fedora changes the spec (scripts/45 refuses one with patches); # the project's own patches come from payload/sensors/iio-sensor-proxy/, copied next to the sources by scripts/45. %global debug_package %{nil} Name: iio-sensor-proxy Version: 3.9 Release: 3.sp11.2%{?dist} Summary: IIO accelerometer sensor to input device proxy, with Qualcomm Sensor Core support # tests/unittest_inspector.py is LGPL-2.1-or-later but it is not packaged License: GPL-3.0-or-later URL: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy Source0: %{name}-%{version}.tar.bz2 # The project's patch (payload/sensors/iio-sensor-proxy/; docs/sensors.md, Known issues): no sensor polls while the # system sleeps, under a logind delay lock, so an open Sensor Core stream no longer wakes the system from deep sleep. Patch0: 0001-Pause-sensor-polling-across-system-sleep.patch BuildRequires: meson BuildRequires: gcc BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gudev-1.0) BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(libssc) >= 0.2.1 BuildRequires: systemd BuildRequires: systemd-rpm-macros %{?systemd_requires} %description %{summary}. Fedora's %{version}-3 build plus -Dssc-support=enabled: the drivers that read the accelerometer, light and compass sensors of Qualcomm's Snapdragon Sensor Core through libssc (QMI over QRTR), which the Fedora package leaves out. Built for the Surface Pro 11, whose sensors sit behind that DSP. The proxy also stops every sensor when logind announces a system sleep, holding a delay lock until they are stopped, and starts them again after the wake. %prep %autosetup -p1 %build %meson -Dgtk_doc=false -Dgtk-tests=false -Dssc-support=enabled %meson_build %install %meson_install %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license COPYING %doc README.md %{_bindir}/monitor-sensor %{_libexecdir}/%{name} %{_unitdir}/%{name}.service %{_udevrulesdir}/*-%{name}.rules %{_datadir}/dbus-1/system.d/net.hadess.SensorProxy.conf %{_datadir}/polkit-1/actions/net.hadess.SensorProxy.policy %changelog * Thu Oct 08 2026 SP11 build - 3.9-3.sp11.2 - Pause sensor polling across system sleep: every sensor stops on logind's PrepareForSleep(true), under a delay lock held until they are stopped, and starts again on PrepareForSleep(false); one function decides polling, so a claim, release or sleep notice served inside a driver's start or stop no longer re-enters the driver. An open Sensor Core stream woke the Surface Pro 11 from deep sleep within seconds. * Sat Sep 19 2026 SP11 build - 3.9-3.sp11.1 - Rebuild Fedora's 3.9-3 with -Dssc-support=enabled (libssc) for the Surface Pro 11 sensors