Linux: menu entry for the capture card; plan: capture card is the main path

- scripts/linux/smoovplay-capture.sh: fullscreen on SMOOVPLAY_MONITOR (default
  HDMI-A-2), log in ~/.cache/smoovplay/last-run.log, notification on failure
- scripts/linux/install-desktop-entry.sh: 'SmoovPlay (capture card)' entry
- verified launching through KDE (kioclient exec) on the RTX 5080 box
This commit is contained in:
bonzi committed 2026-11-19 10:54:35 +00:00
1 parent 7e778fa2d1
commit 51ce5332e0
3 files changed
+60

No files matched your search

+7
View File
@@ -363,5 +363,12 @@ Done and verified:
NVDEC, NVENC, GLFW on Wayland + CUDA↔GL interop with read-back, nvidia-vfx, chiaki-ng tap, V4L2/ALSA for the
GC311, real-time scheduling). Tested here; the GPU checks fail cleanly without a GPU.
**2026-11-19: on the desktop.** Phase 0 passed (target.md). Capture card (GC311) works end to end: V4L2 + ALSA,
1080p60 MJPEG on NVDEC, RIFE (TensorRT, full detail), RTX VSR (nvidia-vfx) to 4K60 on the BenQ W1800 over HDMI,
20 ms p50 arrival->screen. PS5 Remote Play through chiaki-ng-smoovplay also works, but looked no better and adds
network delay. **Decision (Zeb): the capture card is the main path**; Remote Play stays as the secondary one.
The simple UI is a menu entry for now: `scripts/linux/install-desktop-entry.sh` -> "SmoovPlay (capture card)",
fullscreen on HDMI-A-2, settings from the in-video menu.
Not verifiable without the desktop: everything on the GPU and display (Phase 0, 2), a real PS5 session (Phase 3
gate), the GC311 (Phase 5).
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Adds "SmoovPlay (capture card)" to the application menu for this checkout (~/.local/share/applications).
# bash scripts/linux/install-desktop-entry.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../.." && pwd)"
APPS="${XDG_DATA_HOME:-$HOME/.local/share}/applications"
mkdir -p "$APPS"
chmod +x "$ROOT/scripts/linux/smoovplay-capture.sh"
cat >"$APPS/smoovplay-capture.desktop" <<EOF
[Desktop Entry]
Type=Application
Name=SmoovPlay (capture card)
GenericName=Console frame generation
Comment=Play the capture card's console at 60-120 fps with AI frame generation and upscaling
Exec=$ROOT/scripts/linux/smoovplay-capture.sh
Icon=$ROOT/installer/icon/smoovplay-256.png
Terminal=false
Categories=Game;
Keywords=smoovplay;ps5;capture;frame generation;
StartupNotify=false
EOF
command -v desktop-file-validate >/dev/null && desktop-file-validate "$APPS/smoovplay-capture.desktop"
command -v update-desktop-database >/dev/null && update-desktop-database "$APPS" 2>/dev/null || true
echo "installed $APPS/smoovplay-capture.desktop"
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# SmoovPlay from a capture card, fullscreen: what the "SmoovPlay (capture card)" menu entry runs.
# Settings (frame rate, upscaler, model) come from ~/.config/smoovplay/settings.json and the in-video menu (M).
#
# SMOOVPLAY_CARD the card's name, as `run.py --list-devices` shows it (default: Live Gamer MINI)
# SMOOVPLAY_MONITOR the output fullscreen goes to, by part of its name (default: HDMI-A-2, the projector)
#
# The log of the last run is ~/.cache/smoovplay/last-run.log.
set -uo pipefail
ROOT="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/../.." && pwd)"
LOG_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/smoovplay"
mkdir -p "$LOG_DIR"
LOG="$LOG_DIR/last-run.log"
export SMOOVPLAY_MONITOR="${SMOOVPLAY_MONITOR:-HDMI-A-2}"
export FRAMEGEN_VFX_PATH="${FRAMEGEN_VFX_PATH:-${XDG_DATA_HOME:-$HOME/.local/share}/smoovplay/vfx}"
export PYTHONUNBUFFERED=1
cd "$ROOT"
"$ROOT/.venv/bin/python" "$ROOT/run.py" --capture "${SMOOVPLAY_CARD:-Live Gamer MINI}" --display --fullscreen \
--monitor "$SMOOVPLAY_MONITOR" "$@" >"$LOG" 2>&1
rc=$?
if [ "$rc" -ne 0 ] && command -v notify-send >/dev/null; then
why="$(grep -E '^\[capture\]|Error|error' "$LOG" | tail -1)"
notify-send -a SmoovPlay -i "$ROOT/installer/icon/smoovplay-256.png" "SmoovPlay stopped" \
"${why:-exit code $rc}. Log: $LOG"
fi
exit "$rc"