https://bugs.kde.org/show_bug.cgi?id=528590

--- Comment #11 from Alan <[email protected]> ---
### Additional reproduction: Kubuntu 26.04, headless Wayland, virtual monitor

I can reproduce a similar issue on a different distribution and hardware
configuration.

**Environment**
- OS: Kubuntu 26.04 (Ubuntu Resolute)
- KDE Plasma: 6.6.6
- KWin: 6.6.6
- KRDP: 6.6.4-0ubuntu1 (also tested with a locally patched build,
`6.6.4-0ubuntu1+alan11`)
- Session: Wayland
- Client: Remmina Flatpak 1.4.43
- GPU: NVIDIA GeForce RTX 5060 Ti 16 GB + AMD Ryzen integrated GPU
- Host is running headless, without a physical display connected.
- SDDM autologin starts a Plasma session.

**Reproduction**

I run KRDP manually with:

```bash
XDG_RUNTIME_DIR=/run/user/1000 \
WAYLAND_DISPLAY=wayland-0 \
QT_QPA_PLATFORM=wayland \
QT_LOGGING_RULES="org.kde.krdp.*=true" \
WLOG_LEVEL=debug \
krdpserver --plasma --virtual-monitor 1920x1080@1
```

The RDP client connects successfully:
- RDP negotiation and TLS succeed.
- PAM authentication succeeds.
- Video stream initializes.
- The Plasma remote session starts.
- The desktop is visible in Remmina.

However, I cannot interact with the remote desktop using the mouse or keyboard.
The pointer is not visible, and keyboard input does not appear to have any
effect.

Clipboard channel negotiation also succeeds.

**Additional tests**

- Running with `--virtual-monitor` without `--plasma` uses the Freedesktop
Portal path, but results in a white screen followed by disconnection. Portal
logs report that no matching Wayland output can be found.
- I tested a local KRDP source patch in `createVirtualMonitorStream()` that
sets the stream size:

```cpp
stream->d->m_size = (QSizeF(resolution) / dpr).toSize();
```

This was based on the virtual-monitor stream-size issue discussed in KDE's
related bug reports. It did not appear to resolve my input problem.

**Debug logs**

I ran KRDP with the logging settings requested in this report. The log shows
successful connection, authentication, video initialization and Plasma session
startup. I did not notice an obvious fatal error, but I have not yet
established whether input events are received and rejected by FreeRDP, or
whether they fail further downstream.

I can attach the complete log and run further tests if useful.

Is there anything specific you would like me to test on this setup?


**Additional debug-log observations**

I checked the debug log for input-related messages while connected and
attempting to interact with the desktop.

- The client advertises `RNS_UD_CS_RELATIVE_MOUSE_INPUT`.
- The RDP connection reaches `CONNECTION_STATE_ACTIVE`.
- Neither `Input event before activation, ignoring` nor
`fastpath_recv_input_event` appears in the log.
- The only keyboard-related message found is:

```text
[DEBUG][com.winpr.input.scancode] - [loadFromSettings]:
[KeyboardMapping.json] configuration file does not exist at
/usr/share/WinPR/KeyboardMapping.json, skipping...
```

The log does not make it clear whether input events are reaching the KRDP
server at all, or whether they are being lost further downstream. I can provide
the complete debug log for investigation.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to