Skip to content

Upstream Comparison

This project (zjhcx/extraspace) is an active fork of Tymonoman/extraspace (diverging after commit b5bfd52). The upstream repository established the core architecture — native GNOME Wayland virtual monitors via mutter D-Bus APIs, 4-socket USB (adb forward) transport, multi-touch input forwarding, and virtual webcam passthrough. The current version builds on that foundation with major additions for hardware-accelerated low-latency streaming, GNOME desktop integration, wireless fallback, and internationalization.

Area Original Tymonoman/extraspace (b5bfd52) Current zjhcx/extraspace
Video Encoding Primarily software encoding (x264enc / openh264enc) Prefers gst-plugin-va hardware encoding (vah264enc / vah264lpenc + vapostproc VAMemory zero-copy), with automatic CPU fallback
Webcam Decoding Software decoding Prefers VA-API vah264dec hardware decoding with automatic fallback
Low Latency & Recovery Basic streaming + idle keepalive keyframes Adds H.264 SPS VUI zero-reorder rewriting, intra refresh, latest-frame overwrite, RFI recovery, and tiered MediaCodec setup fixing OMX decoders without KEY_LOW_LATENCY
Default Sizing & Scaling Fixed default sizing Defaults to 1.0x native tablet panel size, pins PipeWire caps for GNOME 46–49, and supports configurable logical scaling
Monitor Layout Memory Position resets on reconnect DisplayConfig persistence: remembers virtual monitor placement, scale, and arrangement across reconnects (toggleable in Settings)
Transport USB (adb forward) only USB (adb forward) primary, plus experimental LAN TCP fallback with automatic local network discovery
System Tray Main window only Adds AppIndicator / SNI system tray integration for background operation and quick stream controls
Bidirectional Power & Lock Sync None Sleeps the tablet screen when the host locks (via Android Device Admin / SleepAdminReceiver), rebuilds the mutter session after GNOME lock inhibit, and provides an auto-sleep toggle
Feature Toggles Always-on defaults Dual-tab Display / Settings UI with independent toggles for layout memory, touch input, auto-sleep, and experimental TCP fallback
Internationalization (i18n) English only Both GTK4 host UI and Android app support English, Simplified Chinese, Traditional Chinese (TW/HK), and Japanese
Documentation English README Adds Simplified Chinese README.zh.md and this bilingual documentation site (with search, sitemap, and llms.txt)

1. Hardware Encoding & Zero-Reorder Low-Latency Pipeline

Section titled “1. Hardware Encoding & Zero-Reorder Low-Latency Pipeline”
  • VA-API First: Prioritizes gst-plugin-va (vah264enc / vah264lpenc with vapostproc) where CBR/VBR bitrate control is genuinely respected, and uses vah264dec for incoming tablet webcam streams — drastically reducing host CPU usage.
  • Broad Android Decoder Compatibility: Implements tiered zero-reorder MediaCodec configuration so OMX decoders lacking KEY_LOW_LATENCY do not crash on configure, paired with a host-side H.264 SPS VUI rewriter to eliminate decoder frame-reordering latency.
  • Zero-Copy & Batching: Uses zero-copy GStreamer buffer mapping, vectored writes, buffered reads, and off-UI-thread touch event batching.
  • Persistent Display Placement: Reads and restores GNOME DisplayConfig via xs-mutter’s layout module (layout.rs), so reconnecting the tablet restores its exact position and scaling automatically.
  • Lock-Screen Recovery & Power Sync: Monitors GNOME lock/power state to put the tablet to sleep when the host locks and cleanly rebuilds the mutter virtual monitor session after unlock if inhibited.
  • System Tray Mode: Lets Extraspace stay running quietly in the background with quick tray controls.
  • Once the companion APK has been installed over USB, enabling experimental TCP fallback lets the host and tablet discover each other on the local network and stream over TCP without a cable.
  • Reorganizes the GTK4 host app into Display and Settings tabs (Ctrl+,) with live telemetry and per-feature toggles.
  • Adds full localization (English, Simplified Chinese, Traditional Chinese, Japanese) across both desktop and Android apps.
  • Updates CI (android-actions/setup-android v4) and introduces this bilingual Starlight documentation site.
  • Choose the current version (zjhcx/extraspace) if you want VA-API hardware acceleration, broader Android MediaCodec compatibility, persistent monitor placement, system tray mode, lock/power sync, multi-language UI, or experimental LAN TCP fallback.
  • Visit the upstream repository (Tymonoman/extraspace) if you want to inspect the original minimal implementation or check upstream hardware reports.