diff --git a/inventory.yaml b/inventory.yaml index 4850237..176a4be 100644 --- a/inventory.yaml +++ b/inventory.yaml @@ -325,7 +325,7 @@ hosts: kind: workstation os: macos role: dev - lan_ip: 192.168.8.174 + lan_ip: 192.168.178.182 mesh: netbird: fqdn: mac-mini-234-17.netbird.selfhosted @@ -338,12 +338,12 @@ hosts: kind: workstation os: linux role: dev + lan_ip: 192.168.178.181 mesh: netbird: fqdn: ludo-mini.netbird.selfhosted - # ssh.user defaults to root; uncomment + set to the actual login user - # before relying on `homelab ssh ludo-mini` or netbird-ssh INTO this host. - # ssh: { user: ludo } + ssh: + user: dtoro netbird-vps: kind: external os: linux diff --git a/investigations/2026-06-03-moonlight-sunshine-wifi-jitter.md b/investigations/2026-06-03-moonlight-sunshine-wifi-jitter.md index 842055a..f5a6a06 100644 --- a/investigations/2026-06-03-moonlight-sunshine-wifi-jitter.md +++ b/investigations/2026-06-03-moonlight-sunshine-wifi-jitter.md @@ -40,31 +40,45 @@ Moonlight/Sunshine streams real-time video over UDP. Any jitter spike or dropout ### mac-mini — Moonlight (via `defaults write`) | Setting | Before | After | Rationale | -|---------|--------|-------|-----------| -| bitrate | 57 Mbps | 25 Mbps | Reduce to a level WiFi can sustain consistently | -| framepacing | off (0) | on (1) | Smooths frame timing over variable latency | -| fps | 30 | 60 | Restored to game-appropriate value | +||---------|--------|-------|-----------| +|| bitrate | 57 Mbps | 25 Mbps | Reduce to a level WiFi can sustain consistently | +|| framepacing | off (0) | on (1) | Smooths frame timing over variable latency | +|| fps | 30 | 60 | Restored to game-appropriate value | + +### mac-mini — Moonlight (current, wired — 2026-06-04) + +| Setting | WiFi value | Wired value | Rationale | +||---------|-----------|-------------|-----------| +|| bitrate | 60 Mbps | 80 Mbps | Wired 1 GbE can sustain comfortably | +|| framepacing | on (1) | off (0) | Wired latency is consistent, no smoothing needed | +|| fps | 60 | 60 | Unchanged | ### ludo-mini — Sunshine (via SSH) -| Setting | Before | After | Rationale | -|---------|--------|-------|-----------| -| bitrate | 80 Mbps | 40 Mbps | Match Moonlight's reduced bitrate ceiling | -| fec_percentage | 5 | 2 | Less forward-error-correction overhead over WiFi | -| packetsize | (default) | 1024 | Smaller packets = less WiFi retransmit cost | +| Setting | WiFi value | Wired value | Rationale | +||---------|-----------|-------------|-----------| +|| bitrate | 40 Mbps | 80 Mbps | Wired can handle full bandwidth | +|| fec_percentage | 2 | 5 | Restored to default — wired has no dropout concern | +|| packetsize | 1024 | 1316 | Restored to default (Ethernet MTU) | Sunshine restarted after changes; confirmed active. +## Resolution + +### 2026-06-04 — mac-mini wired to LAN + +mac-mini plugged into Ethernet (en0, 192.168.178.182). This definitively resolves the WiFi jitter that caused streaming instability. All WiFi-era conservative settings reverted to appropriate wired values on both ends. + ## Open questions -1. **Ethernet wiring** — mac-mini has an active en0 port. Plugging it into the same switch/router as ludo-mini would eliminate WiFi jitter entirely. This is the definitive fix. +~~1. **Ethernet wiring** — mac-mini has an active en0 port. Plugging it into the same switch/router as ludo-mini would eliminate WiFi jitter entirely. This is the definitive fix.~~ **RESOLVED** — mac-mini now wired via en0. 2. **WiFi alternatives** — If wiring is impractical, a WiFi 6 (802.11ax) USB adapter or Thunderbolt-to-Ethernet adapter would help, but wired Ethernet is the only reliable solution for game streaming. 3. **Netbird route** — `192.168.8.0/24` is routed over Netbird `utun100`. If Moonlight ever falls back to that subnet (ludo-mini's 192.168.8.133 LAN IP), traffic tunnels unnecessarily. Moonlight correctly uses 192.168.178.181, so this is not currently an issue. ## Changelog -### 2026-06-03 — Initial investigation and mitigations -- Diagnosed WiFi jitter as root cause of unstable Sunshine/Moonlight streaming -- Applied Moonlight bitrate reduction (57→25 Mbps), frame pacing, fps fix -- Applied Sunshine bitrate reduction (80→40 Mbps), fec_percentage (5→2), packetsize (1024) -- Documented findings and open questions \ No newline at end of file +### 2026-06-04 — mac-mini wired to LAN, configs reverted from WiFi mitigations +- mac-mini connected via en0 (wired Ethernet, 192.168.178.182), WiFi mitigations no longer needed +- Moonlight: bitrate 60→80 Mbps, framepacing disabled +- Sunshine: bitrate 40→80 Mbps, fec_percentage 2→5, packetsize restored to default (1316) +- First root cause in investigation (Open questions #1) resolved \ No newline at end of file