Skip to content

Install wf-recorder on Macs so screen recording works - #626

Merged
maralcbr merged 1 commit into
quattro-upstreamfrom
mac/106-screen-recording
Sep 27, 2026
Merged

maralcbr merged 1 commit into
quattro-upstreamfrom
mac/106-screen-recording

Conversation

@maralcbr

Copy link
Copy Markdown
Member

Screen recording on Apple Silicon uses wf-recorder, because gpu-screen-recorder can't capture there: on an Asahi M1 it lists only portal capture and -w eDP-1 exits with "no /dev/dri/cardX device found" (the display controller and the GPU are separate DRM devices). No package list named wf-recorder, so the converged image shipped without it and every recording failed with wf-recorder: command not found (reproduced on the M2).

  • install/omarchy-apple.packages now carries wf-recorder (aarch64 [extra] 0.6.0-2), so images, omarchy-reinstall-pkgs and the migration engine's default-package step install it. x86_64 defaults are unchanged.
  • A migration installs it where the platform's defaults name it and it is missing. A failed lookup or install fails the migration, so it runs again.
  • Recorder selection and the 48 kHz pins (-R 48000, finalize -ar 48000) are unchanged.

Tests

  • New test/shell.d/screenrecording-backend-test.sh: each platform's defaults carry the recorder it uses, migration cases (including lookup and install failure), and the real script with stubbed recorders: Apple runs wf-recorder on the focused monitor at 48 kHz, x86_64 runs gpu-screen-recorder.
  • Full shell suite on x86_64 as non-root: 345/353 pass; the 8 failures fail the same on the base (no omarchy-pkgs checkout, sudo, fonts). Recording, process, sample-rate and platform-package tests also pass natively on the M2.
  • M2 (converged install): before, recording failed with command not found. After the migration: 5 s fullscreen recordings with desktop audio, and with desktop plus microphone, are h264 3456x2234 plus AAC 48000 Hz stereo, 5.1-5.2 s, ~60 fps, decode cleanly and play in mpv; the combined-audio null sink is unloaded after stop.

Second review: no blocking findings. Noted: omarchy-upgrade-to-quattro retires wf-recorder before its migrations run, so a Mac taking that path would remove and then reinstall it. Macs don't upgrade through that script, so it's left alone here.

Screen recording picks wf-recorder on Apple Silicon, where gpu-screen-recorder
finds no display device to capture (Asahi's display controller and GPU are
separate DRM devices), but no package list named it. The converged image
shipped without it and every recording failed with "wf-recorder: command not
found".

The Apple package list now carries it, and a migration installs it where the
platform's defaults name it and it is missing. x86_64's defaults are
unchanged.
@maralcbr
maralcbr merged commit b5d2268 into quattro-upstream Sep 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant