Name: imx471-camera-config Version: 1.0 Release: 5%{?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 Source2: configuration.yaml 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 libcamera configuration file enabling temporal noise reduction in the GPU software ISP (needs the patched libcamera from the same COPR). - 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 install -Dpm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/libcamera/configuration.yaml %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 %config(noreplace) %{_sysconfdir}/libcamera/configuration.yaml %{_udevrulesdir}/99-imx471-framerate.rules %changelog * Sun Sep 20 2026 Thomas Drake-Brockman - 1.0-5 - Low light frame rate floor 15 -> 20 fps - Lighter temporal denoise on luma and tighter motion thresholds, for shorter trails * Sat Sep 19 2026 Thomas Drake-Brockman - 1.0-4 - Tuning: 30 fps, falling to 15 fps in low light (needs the patched libcamera) * Sat Sep 19 2026 Thomas Drake-Brockman - 1.0-3 - Enable temporal noise reduction via /etc/libcamera/configuration.yaml - Restore the full-strength colour correction matrix now that chroma noise is filtered * Sat Sep 19 2026 Thomas Drake-Brockman - 1.0-2 - Halve the colour correction matrix strength to reduce chroma noise in dim light * Sat Sep 19 2026 Thomas Drake-Brockman - 1.0-1 - Initial package