Name: imx471-camera-config Version: 1.0 Release: 1%{?dist} Summary: Sony IMX471 laptop camera tuning and frame rate setup for libcamera License: CC0-1.0 URL: https://gitlab.com/thomasfedb/imx471-webcam-fix Source0: imx471.yaml Source1: 99-imx471-framerate.rules BuildArch: noarch BuildRequires: systemd-rpm-macros Requires: libcamera-ipa Requires: v4l-utils Requires: systemd-udev %description Configuration for the Sony IMX471 MIPI camera found behind the Intel IPU7 in the ThinkPad X1 Carbon Gen 14 and ThinkPad X9, for use with libcamera's software ISP: - a software ISP tuning file (black level and a generic colour correction matrix). It is installed in /etc, which libcamera searches before /usr/share: remove this package once libcamera ships its own imx471.yaml. - a udev rule that raises the sensor's vertical blanking for 25 fps, because the driver defaults to 57.8 fps (17 ms maximum exposure) and the software ISP never changes it. %prep %build %install install -Dpm0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/libcamera/ipa/simple/imx471.yaml install -Dpm0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-imx471-framerate.rules %post # Reload explicitly: systemd's file trigger only runs at the end of the # transaction, after this scriptlet. udevadm control --reload >/dev/null 2>&1 || : udevadm trigger --action=add --subsystem-match=video4linux >/dev/null 2>&1 || : %files %dir %{_sysconfdir}/libcamera %dir %{_sysconfdir}/libcamera/ipa %dir %{_sysconfdir}/libcamera/ipa/simple %config(noreplace) %{_sysconfdir}/libcamera/ipa/simple/imx471.yaml %{_udevrulesdir}/99-imx471-framerate.rules %changelog * Sat Sep 19 2026 Thomas Drake-Brockman - 1.0-1 - Initial package