Skip to content

cfview 1.0.0

Choose a tag to compare

@passenger6 passenger6 released this 18 Nov 12:10
· 5 commits to main since this release

cfview shows a display of a running Cuttlefish group in a window and sends mouse and keyboard input back to the guest. It reads the frames straight from the shared memory rings Cuttlefish keeps, so it needs no WebRTC, no browser and no video encoder.

Download

cfview-1.0.0-x86_64-linux: one binary for x86-64 Linux, 568 KB. It needs glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8 and later).

chmod +x cfview-1.0.0-x86_64-linux
./cfview-1.0.0-x86_64-linux        # display 0
./cfview-1.0.0-x86_64-linux 1      # display 1

Check the download: sha256sum -c cfview-1.0.0-x86_64-linux.sha256

What it needs

  • A running Cuttlefish group started with cvd. cfview finds the newest one under /var/tmp/cvd by itself.
  • A display with overlays, because Cuttlefish keeps the frame rings only then. A single VM lays its display over itself: --display0=width=1920,height=1080,overlays=0:0, with the size of your display. width and height are required by Cuttlefish; overlays=0:0 is display 0 of VM 0, the display itself.
  • libSDL2-2.0.so.0, loaded at start. On Debian or Ubuntu: sudo apt install libsdl2-2.0-0.
  • adb, for input. The Cuttlefish host package installs one and cfview finds it. Without adb it still shows the screen.

How it was built

From the tag v1.0.0, with cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28 (Rust 1.100, zig 0.13). The crate has no dependencies beyond the standard library.

Known limits

  • The configuration is looked for under /var/tmp/cvd only.
  • With several groups running, cfview takes the one configured last.