Repository navigation
Linux/Wayland: absolute mouse, clean reconnects, PipeWire capture fix (WIP) - #6
Draft
flyboy-byte wants to merge 1 commit into
Draft
flyboy-byte wants to merge 1 commit into
flyboy-byte wants to merge 1 commit into
Conversation
… (WIP) Work in progress. KDE Plasma 6 is usable; GNOME has an open video-freeze bug. Status, test matrix and dead ends are in docs/LINUX.md. - Absolute pointer via NotifyPointerMotionAbsolute, scaled by the portal stream size; drop the drifting relative-motion fallback - Close the portal Session on stop and dispose LinuxInputHandler on disconnect, so a reconnect gets a fresh session - Unset DISPLAY on Wayland so libwebrtc captures via PipeWire, not XWayland (black frames) - Bundle cli/ with the Linux build; settings UI installs it to /usr/local/bin/afk - All platforms: Disconnected is no longer terminal (only Failed); getDisplayMedia minimum-resolution constraints relaxed; flutter_webrtc ^1.4.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft / work in progress — I'm not planning to continue this. I'm opening it so the work and what I
learned are available to you or anyone else who wants Linux support. Feel free to take any part of it, or
close it.
What this does
It builds on the portal-based Linux input in v1.5.3 and gets KDE Plasma 6 (Wayland) to a usable
state: the screen streams and tap-to-cursor is pixel-exact.
NotifyPointerMotionAbsolute, scaled by the portal stream size (thisdiffers from the display size under fractional scaling). The relative-motion fallback is removed
because it drifted.
Session.Closeon stop and disposesLinuxInputHandleron disconnect.Before this, a reconnect left a stale session and KDE showed two screen-sharing indicators.
DISPLAYon Wayland so libwebrtc captures through PipeWire instead ofXWayland.
cli/is bundled with the build, and settings symlinks it to/usr/local/bin/afk.RTCPeerConnectionStateDisconnectedis no longer treated as terminal; onlyFailedis.getDisplayMediamandatoryminimum-resolution constraints are replaced withframeRate: {ideal: 30, max: 30}.flutter_webrtcis bumped from^1.3.0to^1.4.1.Verification
flutter analyzeflutter build linux --releasezwlr_virtual_pointer)Not done
absolute pointer's stream node) and the one libwebrtc opens inside
getDisplayMedia. The likely fixis to feed our session's PipeWire stream into WebRTC directly, which flutter_webrtc doesn't currently
expose.
docs/LINUX.mdhas the full status: the test matrix, the dead ends (uinput is invisible to Waylandcompositors; a v4l2loopback bridge didn't work), and how to get the PipeWire fd out of the portal in
Dart, for whoever takes on the GNOME fix.
🤖 Generated with Claude Code