I reproduced a very similar KRDP black-screen/disconnect failure on
Kubuntu/Ubuntu 26.04 with krdp 6.6.4 and Windows Remote Desktop.

I put together and tested a small backport series against Ubuntu's
krdp_6.6.4-0ubuntu1 source package. The series applies cleanly and
builds successfully.

Patch summary:

Backport upstream commit dbe1ed4: move PipeWireEncodedStream ownership into 
VideoStream.
Backport upstream commit 20a205f: explicitly set portal cursor_mode.
Propagate encoded stream size back to AbstractSession so portal input scaling 
is valid after stream start.
Report RTT-only network characteristics instead of bogus bandwidth values from 
incomplete bandwidth autodetect.

Verification:
  - Applied cleanly to a fresh krdp_6.6.4-0ubuntu1 source extraction.
  - Built successfully with BUILD_EXAMPLES=ON and BUILD_PLASMA_SESSION=ON.
  - Locally tested with PAM auth and MSTSC; black-screen/disconnect is resolved.


Let me know if this patchset works for you, it did wonders for me and I was 
able to connect to my desktop remotely through Windows Remote Desktop.

Also, slightly unrelated: If you are having authentication failures when
using Windows Remote Desktop, save your connection information with
cmdkey from Windows Powershell. This happens because KRDP expects the
client to send user/pass on connection, unlike a Windows Terminal
Server. Example: cmdkey /generic:<hostname-or-ip>
/user:<kubuntu_username> /pass:<kubuntu_password> then connect as usual
in Windows Remote Desktop.

Another slightly unrelated note: KRDP also expects a monitor to be
always attached to allow remote clients into the remote desktop session.
If you have a desktop/server without a monitor or have a KVM switch that
doesn't retain EDID state, connections will fail. I worked around this
using a slight kernel cmdline tweak that forces on my graphics output
with saved monitor EDID information. I added these options to my
cmdline: drm.edid_firmware=DP-3:edid/msi-mag342cqr.bin,DP-4:edid/xec-
es-g27f6q.bin video=DP-3:e video=DP-4:e

** Attachment added: "krdp-6.6.4-backport-series.tar.gz"
   
https://bugs.launchpad.net/ubuntu/+source/krdp/+bug/2141392/+attachment/5975994/+files/krdp-6.6.4-backport-series.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141392

Title:
  Black screen and disconnect in rdp client

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/krdp/+bug/2141392/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to