HydraIssues

Absolute mouse coordinates break on every multi-slot body: the wide virtual desktop is now by design, not a fault
open bug Project: hydrabody Reporter: 13 Nov 2026 12:30

Description

#428 found that a wide virtual desktop breaks absolute mouse coordinates: Moonlight normalises them against the whole desktop, so clicks land on a different display. Video and audio look perfect and nothing is clickable. It cost Rupelmonde two hours across four sessions on 2026-08-01.

#428 attributed the wide desktop to DUPLICATE VDD ADAPTER INSTANCES, which was correct for cosmic in August. That attribution is now too narrow, and the remaining cause is deliberate.

A multi-slot body has a wide virtual desktop by design

Slot support sets the VDD monitor count from the slot count. rewriteVDDSettingsCount (pkg/provider/slot_displays.go:381, called from slot_displays_windows.go:128) writes <monitors><count> to match. So ONE adapter instance on a two slot body makes TWO monitors, and the desktop is twice as wide.

The code says so plainly at pkg/provider/slot_displays.go:81:

OriginX and OriginY are where this display's top-left corner sits on the virtual desktop. A slot's experience must be launched AT this point or its window appears on the primary display instead [...] Note the origin is frequently NEGATIVE: a display placed left of the primary one starts below zero, and cosmic's physical panel sits at x = -1920. Measured on cosmic with three slots live.

That is exactly the geometry #428 identified as the cause of misplaced clicks, and it is the intended state of a multi-slot body rather than a provisioning defect.

Multi-stream is live on three bodies.

Nothing in the body addresses the mouse consequence

A search across the repository for absolute mouse handling, coordinate normalisation or virtual desktop extent finds every mention framed as a VIDEO problem: portrait switching failing because Sunshine spans a wide desktop. The mouse consequence appears only in #428 and is never connected to slots.

The documented diagnostic is a FALSE PASS

The runbook section "Multiple VDD devices (Sunshine capturing wide virtual desktop)" gives this symptom:

Sunshine log shows Desktop resolution [3840x1080] or similar double-wide resolution.

Desktop resolution reports the display Sunshine CAPTURED, not the extent of the desktop. When Sunshine captures one display of a wide desktop, which is the normal multi-slot case, the line reads as a single display and the check passes a broken machine.

Measured on zappy-cactus-6 on 2026-11-13:

Sunshine log, both slots    Desktop resolution [1920x1080]              PASS
hydrabody debug screenshot  1920x1080                                  PASS
interactive session query   virtual_screen Width=3840, monitor_count 2 FAIL
session 0 query             Width=1024 Height=768                      known lie

One live VDD instance, <count>2</count> for two slots. No duplicate adapters involved. ROOT\DISPLAY\0000 reports err=22, CM_PROB_DISABLED, so it was disabled deliberately and is not tick loop residue.

#428's own evidence agrees: it recorded that on cosmic, with four displays spanned, the debug screenshot during a live stream returned a 1920x1080 image of the castle. Sunshine captured one display and made it primary. So cosmic's Desktop resolution would also have read as a single display while the desktop spanned four monitors. The documented symptom describes a DIFFERENT configuration, where Sunshine spans the whole desktop and video breaks. In the #428 configuration video is correct and only the mouse is wrong, and the log line cannot tell you so.

Only a query from inside the interactive session found it. Session 0 reports a fictional 1024x768, so a normal cluster exec cannot answer this either.

Also wrong: the recovery's state file step is a no-op on some bodies

The recovery says to delete C:\Sunshine\config\display_device.state so Sunshine re-derives a clean topology. On zappy that file does not exist at all: zero state files, and both slots run dd_configuration_option = verify_only. Anyone following the recipe deletes nothing and believes the topology was reset.

Asks

  1. Decide whether absolute mouse input is supportable on a multi-slot body at all, or whether a slot must present itself to a client as a single display.
  2. Give the body a health signal that catches this. Counting ROOT\DISPLAY\* instances catches duplicate adapters and MISSES the slot count case entirely. The signal that caught zappy is the virtual desktop EXTENT compared against the captured display, which is also the only reading that distinguishes the two causes.
  3. Correct the runbook symptom so Desktop resolution is not presented as sufficient, and mark the state file step as conditional on the body not being verify_only.
  4. Note that isVDDInstalled reads only a version marker file and never enumerates instances, so the body cannot currently detect either cause.

Related

  • #428 the original mouse symptom and root cause, still open
  • #233 the pre v2.0.44 tick loop, the OTHER cause of a wide desktop
  • #524 dedupe is remotely risky, GPU or session wedge needs a physical reboot
  • #866 the slot work that made the wide desktop deliberate
  • #504 multi-stream, live on three bodies

Comments (1)

api 13 Nov 2026 12:31

The condition is invisible from the cluster, which is where an operator stands

The body description above covers why the on-machine checks miss this. The operator side is worse, because every remote signal reads healthy and one of them is actively reassuring.

  • service_versions reports hydrabody present and at a normal version.
  • The node record carries no display topology at all. Its fields are id, name, hostname, ip, district, venue, roles, gpu, os, arch, status, created_at, node_version, service_versions. Nothing describes monitors, slots, the VDD count or the desktop extent.
  • The eligible body query answers normally, so the body is offered for streaming.
  • The debug screenshot returns a correct, good looking image, because it captures the primary display and Sunshine makes its captured display primary. A reviewer looking at it sees the experience rendering properly.

So an operator who checks every signal available remotely concludes the body is healthy, and the screenshot gives them a picture that confirms it.

The only reading that disagrees is the virtual desktop extent, and that has to be taken from inside the interactive session, which is the one place a cluster exec cannot reach without a scheduled task. From session 0 the same query returns a fictional 1024x768.

That is the shape of the whole defect: every cheap reading is wrong in the reassuring direction, and the only correct reading is the most expensive one to take. It is the same pattern as a 202 that means queued rather than run, and as Responding returning True for a wedged process.

This matters for ask 2 above. A health signal computed on the body and reported upward is not a nicety here. Without one there is no remote route to this condition at all, and the next instance will be found the way Rupelmonde found it: a visitor clicking a button that does not respond, for two hours.