Commit graph

11 commits

Author SHA1 Message Date
Stephen Hellings
ae528b5132 fix: Electron offscreen rendering and DRM render node propagation
Three root causes prevented Electron frames from reaching the compositor:

1. --disable-gpu killed Chromium's rendering pipeline, preventing the
   'paint' event from firing in offscreen mode. Replaced with
   --use-gl=swiftshader so Chromium can composite internally while the
   native wo_dmabuf module handles GPU buffer allocation separately.

2. DISPLAY=:0 with no X server caused Electron to fail silently on
   pure Wayland sessions (Ly/logind). Replaced with
   --ozone-platform=headless which lets Chromium's OSR pipeline work
   without any display server connection.

3. WO_DRM_RENDER_NODE was never set, so the native wo_dmabuf.node
   module always defaulted to /dev/dri/renderD128 regardless of which
   GPU the compositor actually opened. Now resolved via sysfs
   (card1 -> renderD128, card2 -> renderD129, etc.) and passed through
   to Electron.

Also: retry EACCES/EPERM as transient during DRM device open (logind
session activation can lag behind libseat's is_active() flag on Ly).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 12:31:09 -04:00
Stephen Hellings
eee56bc5f4 Attempt 4... 2026-03-09 11:35:01 -04:00
Stephen Hellings
4dcb10d9f1 Attempt 3 to fix launching permission denied 2026-03-09 11:21:08 -04:00
Stephen Hellings
5e154e19f9 Attempt 2 to fix launching permission denied 2026-03-09 09:45:30 -04:00
Stephen Hellings
d9fa1323c3 More robust retries when page flip fails 2026-03-09 03:22:10 -04:00
Stephen Hellings
cbe2dd43bd Do not use npm for pkg 2026-03-08 23:39:36 -04:00
Stephen Hellings
d184ab69e4 Fix types + build issue 2026-03-08 23:38:12 -04:00
Stephen Hellings
e03fe3739f Commit lockfile 2026-03-08 23:27:48 -04:00
Stephen Hellings
ee5b7f764e Upd PKGBUILD 2026-03-08 23:22:34 -04:00
stephen hellings
e442ad43a0
Create LICENSE 2026-03-08 23:12:27 -04:00
Stephen Hellings
33359b814e Initial commit 2026-03-08 23:04:02 -04:00