Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Cursor‑following auto‑zoom on Linux Wayland: reading the cursor from the GPU in Rust

说明与用途

HyperGSR 通过读取 GPU 硬件光标平面获取光标坐标,无需 root,实现 Wayland 和 X11 上的自动缩放摄像机。

问题

Wayland does not expose a global cursor position, making auto‑zoom screen recorders difficult to implement.

结果

HyperGSR achieves about 56 MB RAM usage at 1080p60 while providing smooth cursor‑following auto‑zoom on native Wayland and X11 without root.

工作流

  • Open /dev/dri/card* with libdrm
  • Enable universal planes and atomic properties
  • Find the cursor plane (e.g., plane #92)
  • Read CRTC_X, CRTC_Y, and FB_ID properties
  • Use these coordinates to drive a spring‑physics camera
  • Record via PipeWire and encode with NVENC or VAAPI

证据

Wayland won’t tell an app where the cursor is.

来源

HyperGSR reads the cursor straight from the GPU's hardware cursor plane, without root, and moves a critically damped spring camera to wherever you are working, the way Screen Studio does on macOS.

来源

It runs on native Wayland (COSMIC, GNOME, KDE Plasma, Hyprland, Sway) and on X11.

来源

  • 记录日期: 2026-10-17T13:41:28.422Z