Files
omarchy-pkgs/pkgbuilds/v4l2-relayd/.omarchy
David Heinemeier HanssonandClaude Fable 5 36c5309d88 Restore the v4l2-relayd splashsrc patch clobbered by AUR sync
Commit 7922065 added 0002-escape-optional-splashsrc-expansion.patch
directly to the package dir, but the AUR sync bot regenerates the dir
from AUR plus .omarchy/patches, so the next sync (f886efe) dropped the
patch and reverted pkgrel to 2.1. That stale pkgrel then made the build
server rebuild 0.2.0-2.1, whose filenames already exist in production,
failing promotion.

Restore the patch and pkgrel=2.2, carry the customization as an
.omarchy/patches sync patch, and bump the metadata pkgrel suffix to 2
so future syncs keep producing 2.2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 09:53:23 -07:00
..
2026-05-08 01:04:52 -04:00

v4l2-relayd - reset output on idle

Overview

Omarchy carries a small patch for v4l2-relayd that resets the output pipeline after a real camera streaming session ends.

Without this, stale v4l2loopback state can cause format negotiation failures when switching between camera apps.

What the patches do

patches/reset-output-on-idle.patch

Adds the package source patch file:

0001-reset-output-on-idle.patch

That source patch modifies src/v4l2-relayd.c to:

  • track how long the input pipeline was active
  • ignore brief PipeWire/WirePlumber probes
  • after a real streaming session longer than 3 seconds, reset the output pipeline from READY back to PLAYING

patches/add-reset-output-source.patch

Updates PKGBUILD to:

  • include 0001-reset-output-on-idle.patch in source=()
  • add a SKIP checksum for the local patch file
  • apply the patch in prepare()

pkgrel

package.json includes a pkgrel suffix/offset so users who already received Omarchy's previous 0.2.0-2 build will upgrade to 0.2.0-2.1.

The pkgrel metadata is automatically removed by bin/sync-aur when AUR moves to a new pkgver.

Testing

bin/sync-aur v4l2-relayd
bin/repo build --package v4l2-relayd