Skip to content

Keep mpv playing where only a software renderer exists - #18394

Open
mitss1 wants to merge 1 commit into
omacom:quattrofrom
mitss1:mpv-gpu-sw
Open

mitss1 wants to merge 1 commit into
omacom:quattrofrom
mitss1:mpv-gpu-sw

Conversation

@mitss1

@mitss1 mitss1 commented Nov 10, 2026

Copy link
Copy Markdown

What changes

Adds gpu-sw=yes to Omarchy's /etc/mpv/mpv.conf, next to hwdec=auto-safe.

When the only OpenGL renderer is a software one (llvmpipe), mpv 0.41 rejects it and then aborts in its X11 fallback:

[vo/gpu-next/wayland] GL_RENDERER='llvmpipe (LLVM 23.1.4, 128 bits)'
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
mpv: ../mpv/video/out/x11_common.c:679: vo_x11_init: Assertion `!vo->x11' failed.

That is the situation on an Apple Silicon Mac whose GPU has no driver yet (the M3 Max case documented in omarchy-mac's README), and likely in a VM without GPU passthrough. gpu-sw=yes only tells mpv to accept a software renderer. With a hardware renderer it changes nothing.

omarchy-mac ships this line in its own mpv default, but omarchy-settings owns /etc/mpv/mpv.conf, so that default never installs (#18229). The rest of that file (vaapi-copy + OpenGL) turned out not to be wanted. On an M1 it is about 3x slower than auto-safe at 4K, and on the M4 auto-safe is correct once the kernel fix in aurora-silicon/linux#1392 is in (see the measurements in #18229). So gpu-sw=yes is the one part worth keeping, and it fits the shared default better than a Mac-only file. Removing omarchy-mac's mpv default would be a separate PR in omarchy-mac-pkgs.

Refs #18229

Verification

On an M1 MacBook Air (J313), Omarchy 4.5.0-3, mpv 0.41.0, mesa-aurora 26.3.0_devel.20261031. I ran mpv with --no-config --include=<file> on a 1080p H.264 testsrc2 clip.

  • Software renderer only. I forced it with LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe and an empty VK_DRIVER_FILES, so Vulkan is unavailable as on a driverless Mac.
    • Current file (hwdec=auto-safe): mpv aborts with the assertion above (exit 134).
    • With gpu-sw=yes: it plays (exit 0), on gpu-next/OpenGL with llvmpipe.
  • Hardware renderer (Asahi GPU), 4K H.264, 300 frames --untimed. The result is the same with and without the line: vaapi decode on gpu-next, 5.39 s vs 5.37 s wall, 0.86 s vs 0.88 s user CPU.
  • Not checked: a real driverless Mac (M3 Max) or a VM. I simulated the software renderer on the M1 as described above.
  • No test added. This is a one-line config value (AGENTS.md: no test for a small declarative change).

Screenshots

No visible change: an mpv config line that only matters where the GPU has no hardware renderer.

I used Claude as a coding assistant for the investigation and measurements. I ran the tests above on my own machine.

On a machine whose only OpenGL renderer is llvmpipe, such as an Apple
Silicon Mac whose GPU has no driver yet or a VM without GPU passthrough,
mpv 0.41 rejects the software renderer and then aborts in its X11
fallback (vo_x11_init: Assertion '!vo->x11' failed). gpu-sw=yes lets it
use that renderer; with a hardware renderer it changes nothing.

omarchy-mac's own mpv default carries this line, but omarchy-settings
owns /etc/mpv/mpv.conf, so that default never installs (omacom#18229). Moving
the line here covers those Macs without a Mac-only mpv file.
@greptile-apps

greptile-apps Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Adds gpu-sw=yes to the shared mpv defaults so playback can use a software renderer.

  • mpv keeps playing when only a software renderer is available.

Reviews (1) · Last reviewed commit: "Keep mpv playing where only a software r..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working compatibility Make Omarchy work better on everything! labels Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for the careful write-up, @mitss1. This can't land on quattro as it stands, because the file it edits is gone. #19034 (9599f76, merged on 15 November) replaced mpv with Omaview as Omarchy's media player and deleted etc/mpv/mpv.conf along with the rest of Omarchy's mpv setup. That is why this pull request now shows a conflict.

What was checked: the diff against current quattro, plus a search of bin/, default/, config/, install/ and migrations/ for anything that still ships an mpv config or starts mpv. Nothing does. The webcam overlay now plays through ffplay, finished recordings and yt-dlp downloads open in Omaview, and the battery sound plays with pw-play. mpv only stays installed because owe, the wallpaper engine, depends on it. Whether owe hits the same llvmpipe rejection on a driverless Mac is a question for owe, not for a system mpv config. Nothing ran on a worker, because the code this changes no longer exists on the base branch.

gpu-sw=yes is a valid option, and it only lets mpv accept a software renderer, so the change was sound on its own terms. Since Omarchy no longer ships /etc/mpv/mpv.conf, the ownership clash in #18229 should go away once that change reaches the omarchy-settings package. I haven't checked the packaging, though.

Reviewed by Opus 5.5 in Claude Code, with Codex at medium effort as a second opinion. Codex agreed the change is obsolete on quattro and also found nothing left to port. Its independence from the first review isn't guaranteed.

Next: this is waiting on the maintainer. The recommendation is to close it as superseded by #19034.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compatibility Make Omarchy work better on everything!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants