3 Commits
Author SHA1 Message Date
bonzi 0bf25d63f5 Linux capture cards: V4L2 picture + ALSA sound; GC311 plays on the RTX 5080
- framegen/capture_linux.py: devices via VIDIOC_QUERYCAP (/sys/class/video4linux),
  formats via ENUM_FMT/FRAMESIZES/FRAMEINTERVALS -> capture.Mode, ALSA cards from
  /proc/asound, busy/permission errors in plain words (names the app holding it)
- capture.CardSource: Linux opens video4linux2 + alsa as two inputs, sound on its
  own thread; needs PyAV built against system FFmpeg (--no-binary av)
- PyAV's bundled libasound: point ALSA_CONFIG_PATH at the system config
- winutil: nice -10 via rtkit MakeThreadHighPriorityWithPID instead of SCHED_RR
  (RLIMIT_RTTIME got the process SIGKILLed during startup); '--' before args
- Verified on the GC311: 1080p60 MJPEG via NVDEC, 62 fps, 0 dropped, sound in sync
2026-11-19 09:34:25 +00:00
bonzi d44820c2fc Phase 0 on the RTX 5080: results, rtkit fixes
- docs/linux-port/target.md: sm_120 native, RIFE 1080p 6.9 ms (PyTorch fp16),
  NVDEC 0.61 ms, CUDA->GL on Wayland 0.18 ms, GC311 = 1080p60 MJPEG/H.264
- winutil: rtkit MakeThreadRealtimeWithPID (busctl is another process) and
  lower the hard RLIMIT_RTTIME to rtkit's max; SCHED_RR 10 verified
- linux_spike: time the matmul with CUDA events
2026-11-19 08:56:24 +00:00
bonzi 7eba48426f Linux: chiaki-ng minimises itself on request, Arch PKGBUILD, Phase 0 spike script
- frame tap: window_request word (offset 100, feature bit 32): SmoovPlay asks
  chiaki-ng to minimise/restore its own windows (Wayland forbids doing it from
  outside); run.py uses it on Linux. Covered by chiaki_tap/selftest.py
- chiaki_tap/PKGBUILD (chiaki-ng-smoovplay, v1.10.1) + build_linux.sh; built in
  an archlinux:latest container (needs system curl: the bundled one fails with
  Arch's OpenSSL)
- scripts/linux_spike.py: Phase 0 checks in one command
- docs/linux-port: progress log, QUICKSTART
2026-11-19 08:39:37 +00:00