Bug 494810 - Ability to choose screen for krdpserver
Summary: Ability to choose screen for krdpserver
Status: REPORTED
Alias: None
Product: KRdp
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.2.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-15 12:25 UTC by quicksilver03
Modified: 2025-05-13 21:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description quicksilver03 2024-10-15 12:25:29 UTC
SUMMARY
As a user with 2 screens, I'm unable to start a KRdp session because the combined size of the 2 screens is more than what the hardware is able to encode.

STEPS TO REPRODUCE
1. Enable Remote Desktop on a computer (the server), make sure that the krdpserver process is running
2. Connect 2 screens to the server, to create a desktop wide enough (5120 pixels in my case)
3. Try to connect from a remote system

OBSERVED RESULT
The RDP window on the remote system appears for a split second and then closes; a log on the remote system states "The disconnection was initiated by the user logging off their session on the server".
A log entry on the server states:

Oct 15 14:07:05 cobalt krdpserver[274114]: [h264_vaapi @ 0x7f84f422ec80] Hardware does not support encoding at size 5120x1440 (constraints: width 256-4096 height 128-2304).

DESIRED RESULT
If I could choose to share one screen on krdpserver, instead of the whole desktop, then the video hardware would be able to keep up and RDP connection could be established.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 3 4300GE with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Piotr Dobrogost 2025-04-02 20:34:44 UTC
According to https://invent.kde.org/plasma/krdp#command-line-options you can use `--monitor` option in KRdp – "The index of the monitor to use for streaming video. If not supplied the whole workspace is used."
Comment 2 quicksilver03 2025-04-03 21:00:01 UTC
(In reply to Piotr Dobrogost from comment #1)
> According to https://invent.kde.org/plasma/krdp#command-line-options you can
> use `--monitor` option in KRdp – "The index of the monitor to use for
> streaming video. If not supplied the whole workspace is used."

Thanks, I've been able to establish a RDP connection by launching krdpserver as follows

    krdpserver \
      --username myuser \
      --password mypassword \
      --certificate mycert.cer \
      --certificate-key mycert.key \
      --monitor 0

This showed my main monitor successfully on the client.

The krdp package I have installed today in my Fedora boxes is version 6.3.3-1.fc41.
Comment 3 Piotr Dobrogost 2025-04-03 21:11:52 UTC
> Thanks, I've been able to establish a RDP connection by launching krdpserver as follows

Are you starting KRdp manually?
You can turn "Autostart on login" option in System Settings -> Remote Desktop.
Comment 4 quicksilver03 2025-04-12 13:13:08 UTC
Unfortunately the Remote Desktop control panel does not offer the option to choose a monitor, and thus the "Autostart on login" doesn't really work for me. However, I've been able to define a systemd user service to start krdpserver with the options I need.
Comment 5 Piotr Dobrogost 2025-04-12 14:13:22 UTC
I think you should be able to set your ExecStart in a drop-in file without creating new service file.
The unit is at /usr/lib/systemd/user/app-org.kde.krdpserver.service so the drop-in file should be placed inside ~/.config/systemd/user/app-org.kde.krdpserver directory. This has the advantage of keeping in sync with eventual, future upstream changes to the unit.
Comment 6 quicksilver03 2025-04-27 12:43:36 UTC
Piotr,

Thanks for your assistance, I got remote desktop working acceptably with Fedora 41.

I think that this bug can be closed now.
Comment 7 John Kizer 2025-04-28 05:39:20 UTC
Hi - just to check, while it sounds like there's a solution for you using a manually-created drop-in file, is the feature request here of having a "choose screen" option presented in System Settings > Remote Desktop still potentially valid?

Thanks!
Comment 8 Bug Janitor Service 2025-05-13 03:46:49 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 quicksilver03 2025-05-13 21:39:59 UTC
(In reply to John Kizer from comment #7)
> Hi - just to check, while it sounds like there's a solution for you using a
> manually-created drop-in file, is the feature request here of having a
> "choose screen" option presented in System Settings > Remote Desktop still
> potentially valid?

Yes, the feature request to have the ability to choose a screen for krdpserver to show is still valid.