Hello, this is about KRDP.
After doing the workaround noted in this topic: https://discuss.kde.org/t/krdp-stopped-working-6-7-0/47955/14?u=skylark13
I am in the same situation as the last comment in that thread. In my case, after connecting it works great, but if I minimize the RDP window and then come back to it a bit later, the image no longer updates (but I still see the mouse moving on the “remote” system’s monitor).
My ~/.config/systemd/user/app-org.kde.krdpserver.service.d/override.conf has these contents, but the last 3 lines were just trying other things to see if I could solve this issue, but it occurs whether I have those or not.
[Service]
NoNewPrivileges=false
Environment=KPIPEWIRE_FORCE_ENCODER=libx264
Environment=LIBVA_DRIVERS_PATH=/nonexistent
Environment=LIBVA_DRIVER_NAME=dummy
Here’s what I see in journalctl between the moment I minimize the client window and the moment I close it to reconnect:
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] frame I:1 Avg QP: 0.00 size:1392157
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] frame P:52 Avg QP: 2.31 size: 85158
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] mb I I16..4: 100.0% 0.0% 0.0%
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] mb P I16..4: 1.9% 0.0% 0.0% P16..4: 16.1% 0.0% 0.0% 0.0% 0.0% skip:81.9%
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] coded y,uvDC,uvAC intra: 57.8% 47.6% 47.5% inter: 7.9% 7.1% 7.0%
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] i16 v,h,dc,p: 49% 40% 9% 2%
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] i8c dc,h,v,p: 57% 30% 11% 2%
Jul 20 23:53:54 excalibur krdpserver[1319012]: [libx264 @ 0x7f2b81520e00] kb/s:878548.31
Jul 20 23:55:54 excalibur krdpserver[1319012]: Cannot start recording on a stream without a node ID
I wonder if there’s something that can be found out and fixed from this, or if I can assist in finding the cause of this problem since I have such an easy repro. In case it makes a difference, the client RDP viewer is the one from Windows 11 (mstsc), and the host system is running CachyOS with KDE Plasma 6.7.3 and KRDP 6.7.3-1.1 from cachyos-extra-v3.
It’s really unfortunate because all other solutions I’ve found work even worse (rustdesk is the closest to usable, but it’s slow and sometimes has unacceptable artifacts even on a local network). KRDP would work great except I have to reconnect every time I switch to some other window on the client system.
I hope something can be done to improve this.