The nightmare that is remote desktop

So I have been running cachyos KDE plasma for about 9 months now and whilst the experience has been mostly good (quite a large adjustment to fish), i am quite literally fed up with the remote desktop experience.

I run a multi monitor setup so i know that can be a bit difficult but literally nothing works.

  • firstly my built for some reason was missing krdp. so i installed it using paru.
  • after installation i had to enable it in the UI, which was simple
  • then i realized this was not allowed in the firewall (despite the previous step) so i added the correct 3389 rules.

i connect from my windows machine, it gets the certificate warning and then established a connection and immediately closes, i have found no way of working around this issue.

so naturally i move on to something else, i heard good things about rustdesk for cachyos so i give that a go and whilst from my linux maching to my windows machine works fine, the windows to linux machine has all sorts of issues, from screen share prompt in kde every time, no mouse control, rendering all 3 screens in one window etc etc.

i feel these are fundamentals in an OS, remote desktop is so important to work for an OS especially for someone in my situation i just dont get how the implementation can be so poor.

if anyone has any advice on resolving these issues i would be soo happy to get this working.

For clarity I have a triple monitor setup,
and im running an AMD radeon 6750xt

MooseH

As a rustdesk user, rustdesk on wayland is ass. Try using plasma-x11-sesion and see if that makes RustDesk work more to your liking.

I have all my other machines on chrome remote, so i tried getting that working for ages but got stuck at successful connection but black screen.

I moved to Sunshine+Moonlight with tailscale for remote access. The setup was 1000x easier than trying chrome remote or the other choices i ran through which i forget the names of at this moment.

It offers me what I need. Keyboard+mouse control. Its meant for local wireless game streaming but i dont really have a use for that yet.

I appreciate the advice but i really dislike the “go back to x11 approach” wayland has been out years now, distros are dropping x11 support and it really is time to move on, my remote worked flawlessly on kde neon so i was expecting a better experience with this too tbh

i did have a dabble with moonlight, i like it, maybe this is the answer for now.

I don’t care for the go back to x11 approach either, but specifically for Rustdesk, for the time being until they fix their wayland issues, x11 is the best option for Rustdesk. Have you tried using Remmina for RDP connections? I had a go at using tailscale for a virtual LAN and using Remmina to RDP into my work desktop, and it worked fine, but the latency was too slow for my needs (remote CAD design) but it didn’t have any issues with wayland.

I also had the exactly same problem with krdp (ceriticate waring → connection → immediate disconnection). Tried some work around with reinstalling xdg-desktop-portal and xdg-desktop-portal-kde, but nothing changes. I didn’t find much trouble shooting about krdp elseware. Hope someone can help. Here is the log for reference.

krdp log

Nov 04 22:30:49 cachyos-05b3fe systemd[1151]: Starting KRDP Server…
Nov 04 22:30:49 cachyos-05b3fe systemd[1151]: Started KRDP Server.
Nov 04 22:30:49 cachyos-05b3fe krdpserver[9586]: Listening for connections on QHostAddress(QHostAddress::Any) 3389
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: *************************************************
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: This build is using [experimental] build options:
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: * ‘WITH_VAAPI=ON’
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: *
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: [experimental] build options might crash the application
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:571] [9586:00002572] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x5593a589cc50]: *************************************************
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: Session setup completed, start processing…
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:988] [9586:00002588] [ERROR][com.freerdp.core.transport] - [transport_read_layer]: BIO_read returned a system error 104: Connection reset by peer
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:989] [9586:00002588] [ERROR][com.freerdp.core.peer] - [transport_read_layer]: ERRCONNECT_CONNECT_TRANSPORT_FAILED [0x0002000D]
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: Unable to check file descriptor
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:989] [9586:00002572] [WARN][com.freerdp.core.rdp] - [rdp_send_deactivate_all][0x5593a589cc50]: rdpMcs::userId == 0, skip sending PDU_TYPE_DEACTIVATE_ALL
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: [22:30:58:989] [9586:00002572] [ERROR][com.freerdp.core.transport] - [transport_default_write]: BIO_should_retry returned an error: error:80000020:system library::Broken pipe
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: Closing session
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “” interface “org.freedesktop.portal.Session” member “Close”: Object path cannot be empty
Nov 04 22:30:58 cachyos-05b3fe krdpserver[9586]: Closing Freedesktop Portal Session
Nov 04 22:31:06 cachyos-05b3fe krdpserver[9586]: Session setup completed, start processing…
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: New client connected: Windows platform Windows NT
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: Unable to check file descriptor
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: [22:31:15:156] [9586:0000258a] [ERROR][com.freerdp.api] - [rdp_peer_handle_state_active]: PostConnect for peer 0x5593a58596e0 failed
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: [22:31:15:156] [9586:0000258a] [ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_fds: transport->ReceiveCallback() - STATE_RUN_FAILED [-1]
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: Closing session
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “” interface “org.freedesktop.portal.Session” member “Close”: Object path cannot be empty
Nov 04 22:31:15 cachyos-05b3fe krdpserver[9586]: Closing Freedesktop Portal Session

I have similar issue.Installed xdg-desktop-portal xdg-desktop-portal-kde. Also installed freerdp package to make remmina work with rdp. Set up port and user in kde settings, enabled service.

On windows client set 32bit, disabled “Persistent bitmap caching“ and unchecked all the “beauty“ checkboxes. Also set UsePAM yes in sshd.conf.

journalctl -fe

ноя 24 17:23:10 ALIGN krdpserver[49081]: Session setup completed, start processing… ноя 24 17:23:10 ALIGN krdpserver[49081]: [17:23:10:405] [49081:0000bfd0] [ERROR][com.freerdp.core.rdp] - [tpkt_ensure_stream_consumed_][0x55ee8f972460]: [rdp_read_info_packet] Received invalid TPKT header length 600, 214 bytes too long! ноя 24 17:23:17 ALIGN krdpserver[49081]: Correcting invalid color depth from client: 16 ноя 24 17:23:17 ALIGN krdpserver[49081]: New client connected: Windows platform Windows NT ноя 24 17:23:17 ALIGN krdpserver[49081]: Attempting authenticating user with PAM ноя 24 17:23:17 ALIGN krdpserver[49081]: Unable to check file descriptor ноя 24 17:23:17 ALIGN krdpserver[49081]: [17:23:17:861] [49081:0000bfd0] [ERROR][com.freerdp.api] - [rdp_peer_handle_state_active]: PostConnect for peer 0x55ee8ed06090 failed ноя 24 17:23:17 ALIGN krdpserver[49081]: [17:23:17:861] [49081:0000bfd0] [ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_fds: transport->ReceiveCallback() - STATE_RUN_FAILED [-1] ноя 24 17:23:17 ALIGN krdpserver[49081]: Closing session ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “/org/freedesktop/portal/desktop” interface “org.freedesktop.portal.RemoteDesktop” member “NotifyKeyboardKeycode”: Marshalling failed: Invalid object path passed in arguments ноя 24 17:23:17 ALIGN krdpserver[49081]: QDBusConnection: error: could not send message to service “org.freedesktop.portal.Desktop” path “” interface “org.freedesktop.portal.Session” member “Close”: Object path cannot be empty ноя 24 17:23:17 ALIGN krdpserver[49081]: Closing Freedesktop Portal Session

Next i tried to rollback to

sudo pacman -U https://archive.archlinux.org/packages/x/xdg-desktop-portal-kde/xdg-desktop-portal-kde-6.2.5-1-x86_64.pkg.tar.zst

But result the same.

Next i updated package to latest again and tried to connect from WindowsApp on Android and error now different. Also i see for a moment something like one-time screen blink on pc. Also i started to see KDE notification when trying to connect.

journalctl -fe

оя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: ************ *************************************
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: This build i s using [experimental] build options:
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: * ‘WITH_VAAP I=ON’

ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: *
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: [experimenta l] build options might crash the application
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:140] [62952:0000f5e8] [WARN][com.freerdp.core.rdp] - [log_build_warn][0x56165f5f5d00]: ************ *************************************
ноя 24 21:09:00 ALIGN krdpserver[62952]: Session setup completed, start processing…
ноя 24 21:09:00 ALIGN krdpserver[62952]: New client connected: Android platform Unspecified version
ноя 24 21:09:00 ALIGN krdpserver[62952]: Attempting authenticating user with PAM
ноя 24 21:09:00 ALIGN krdpserver[62966]: pam_unix(login:account): setuid failed: Операция не позволена //I beleive on english this is: Operation not permitted
ноя 24 21:09:00 ALIGN krdpserver[62952]: PAM authentication succeeded for user “pavletto” ноя 24 21:09:00 ALIGN krdpserver[62952]: Video stream initialized
ноя 24 21:09:00 ALIGN krdpserver[62952]: Initializing Freedesktop Portal Session
ноя 24 21:09:00 ALIGN kded6[942]: Registering “:1.305/StatusNotifierItem” to system tray ноя 24 21:09:00 ALIGN krdpserver[62952]: Started Freedesktop Portal session
ноя 24 21:09:00 ALIGN krdpserver[62952]: Received caps: ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_8 AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_81 AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_10 AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.core.peer] - [rdp_set_error_info]: ERRINFO_GRAPHICS_SUBSY STEM_FAILED [0x0001112F]
ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_102 AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_recv_caps_advertise_pdu ]: context->CapsAdvertise failed with error 20
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_receive_pdu]: rd pgfx_recv_caps_advertise_pdu failed with error 20!
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_receive_pdu]: Er ror while parsing GFX cmdId: RDPGFX_CMDID_CAPSADVERTISE (0x0012)
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_handle_messages] : rdpgfx_server_receive_pdu failed with error 20!
ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:321] [62952:0000f5f8] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_thread_func]: rd pgfx_server_handle_messages failed with error 20
ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_103 AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: RDPGFX_CAPVERSION_104 AVC: false YUV420: true
ноя 24 21:09:00 ALIGN krdpserver[62952]: UNKNOWN_VERSION AVC: false YUV420: false
ноя 24 21:09:00 ALIGN krdpserver[62952]: Client does not support H.264 in YUV420 mode! ноя 24 21:09:00 ALIGN krdpserver[62952]: [21:09:00:332] [62952:0000f5f3] [ERROR][com.freerdp.core.transport] - [transport_read_layer]: BIO_read retrie s exceeded
ноя 24 21:09:00 ALIGN krdpserver[62952]: Unable to check file descriptor
ноя 24 21:09:00 ALIGN krdpserver[62952]: Closing session
ноя 24 21:09:00 ALIGN xdg-desktop-portal-kde[39030]: Failed to notify “Created too many similar notifications in quick succession”
ноя 24 21:09:00 ALIGN krdpserver[62952]: VAAPI: VA-API NVDEC driver [direct backend] in use for device “/dev/dri/renderD128”
ноя 24 21:09:01 ALIGN krdpserver[62952]: Closing Freedesktop Portal Session
ноя 24 21:09:01 ALIGN kded6[942]: Service “:1.305” unregistered

I’ve tried to set:

\\\~/.config/krdprc
[Graphics]
H264CodecEnabled=false
AVC444ModeEnabled=false
HardwareEncodingEnabled=false
journalctl -fe

ноя 24 21:16:10 ALIGN krdpserver[63265]: Session setup completed, start processing…

ноя 24 21:16:10 ALIGN krdpserver[63265]: New client connected: Android platform Unspecified version

ноя 24 21:16:10 ALIGN krdpserver[63265]: Attempting authenticating user with PAM

ноя 24 21:16:10 ALIGN krdpserver[63355]: pam_unix(login:account): setuid failed: Операция не позволена //Operation not permitted

ноя 24 21:16:10 ALIGN krdpserver[63265]: PAM authentication succeeded for user “pavletto” ноя 24 21:16:10 ALIGN krdpserver[63265]: Video stream initialized

ноя 24 21:16:10 ALIGN krdpserver[63265]: Initializing Freedesktop Portal Session

ноя 24 21:16:10 ALIGN kded6[942]: Registering “:1.313/StatusNotifierItem” to system tray

ноя 24 21:16:10 ALIGN krdpserver[63265]: Started Freedesktop Portal session

ноя 24 21:16:10 ALIGN krdpserver[63265]: Received caps:

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_8 AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_81 AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.core.peer] - [rdp_set_error_info]: ERRINFO_GRAPHICS_SUBSYSTEM_FAILED [0x0001112F]

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_recv_caps_advertise_pdu]: context->CapsAdvertise failed with error 20

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_10 AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_receive_pdu]: rdpgfx_recv_caps_advertise_pdu failed with error 20!

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_receive_pdu]: Error while parsing GFX cmdId: RDPGFX_CMDID_CAPSADVERTISE (0x0012)

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_handle_messages]: rdpgfx_server_receive_pdu failed with error 20!

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:620] [63265:0000f77d] [ERROR][com.freerdp.channels.rdpgfx.server] - [rdpgfx_server_thread_func]: rdpgfx_server_handle_messages failed with error 20

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_102 AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_103 AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: RDPGFX_CAPVERSION_104 AVC: false YUV420: true

ноя 24 21:16:10 ALIGN krdpserver[63265]: UNKNOWN_VERSION AVC: false YUV420: false

ноя 24 21:16:10 ALIGN krdpserver[63265]: Client does not support H.264 in YUV420 mode! ноя 24 21:16:10 ALIGN krdpserver[63265]: Hardware encoding is not supported on this device.

ноя 24 21:16:10 ALIGN krdpserver[63265]: [libx264 @ 0x7f4c1c054e00] -qscale is ignored, -crf is recommended.

ноя 24 21:16:10 ALIGN krdpserver[63265]: [libx264 @ 0x7f4c1c054e00] MB rate (18000000) > level limit (16711680)

ноя 24 21:16:10 ALIGN krdpserver[63265]: [libx264 @ 0x7f4c1c054e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512

ноя 24 21:16:10 ALIGN krdpserver[63265]: [21:16:10:628] [63265:0000f778] [ERROR][com.freerdp.core.transport] - [transport_read_layer]: BIO_read retries exceeded

ноя 24 21:16:10 ALIGN krdpserver[63265]: Unable to check file descriptor

ноя 24 21:16:10 ALIGN krdpserver[63265]: Closing session ноя 24 21:16:10 ALIGN krdpserver[63265]: [libx264 @ 0x7f4c1c054e00] profile Constrained Baseline, level 6.2, 4:2:0, 8-bit

ноя 24 21:16:10 ALIGN krdpserver[63265]: Closing Freedesktop Portal Session ноя 24 21:16:10 ALIGN kded6[942]: Service “:1.313” unregistered

ноя 24 21:16:10 ALIGN xdg-desktop-portal-kde[39030]: Failed to notify “Created too many similar notifications in quick succession”

Next tried with options like:

Environment="FREERDP_GRAPHICS_DEFAULT_CODEC=RAW"
Environment="FREERDP_H264_ENABLED=0"

in different places but result always the same -(

I have found cachy os wayland my default desktop is also lacking in any Remote Access Program that is “easy to setup”. I hope the developers are aware this is a missing link in the OS and needs a solution for the beginner to intermediate users. Due to this I am looking to leave the Cachy OS behind and go back to another DISTRO that has a track record where this is easy to setup and actually works. Having a built in Remote Program without spending hours to setup is completely missing I have attempted RUST, REMMINA and GNOME-REMOTE-DESKTOP and while these install none of them work and it is not worth the aggravation. Perhaps I may return in a couple years when it finally matures. Thank you

For me I use rustdesk without any real issues all though I only remote from my cachyos laptop into my windows desktop. The ONLY issue I had is that wayland wasn’t forwarding my super key keybinds correctly and I had to manually set a kwin window rule to not engage with the super key when rustdesk was in focus and then everything worked perfectly.

That said, I know rustdesk doesn’t do well remoting into another wayland session yet.

Could I request a fix on this from the DEV Team to add to the Wayland edition a built in simple easy to use program that sets up quickly for Cachy OS, where would I do that? Thank you

What are you even requesting? There’s nothing for the CachyOS dev team to do. The problem is with wayland and remote desktop software. Either use an X11 session, and X11 DE or WM, or figure out which remote desktop software/protocol you want to use and then how to configure your particular software and DE/WM solution.

For me, I have Hyprland, KDE, and Cosmic installed on my laptop. In KDE I had to add a kwin window rule to have the system ignore the meta key when Rust Desk is in focus. That can’t be done in cosmic which means I can’t use Cosmic to successfully remote into my work PC from Cosmic. In hyprland, I needed to configure a custom window rule, a bash script that runs in the back ground, and a keybind submap that only is active when Rustdesk is in focus.

Seriously though, if remote desktop software is super important to you AND you want to do little troubleshooting, just install Plasma X11 session.

Why am I even requesting, As this it the forum I am requesting for assistance on remote desktop issue, no need to get “your panties” in a bunch their “girlie”. I will use other friendly forums on the web to get my information.

I think you’re on the right track.

Search the internet first before asking questions in the forum. After targeted research (Arch wiki, Arch Linux, and all the other Arch-based forums, including this one), you’ll often find the solution to the problem and won’t even need to ask any questions.

Who’s panties are in a twist. I just don’t understand what you’re even asking the CachyOS dev team to do. It’s not an issue they can fix. They don’t code wayland compositors and they don’t code remote clients. Like I said for KDE, at least for me remoting into a windows PC, it’s as simple as adding a Kwin window rule in the KDE settings to ignore the meta key while Rustdesk is in focus. For something like hyprland I have this added to my hyprland.conf

exec-once = ~/.config/hypr/scripts/watch-rustdesk-submap.sh &
submap = clean
bind = CTRL+ALT, L, submap, reset  # Optional: Manual escape hotkey (Ctrl+Alt+L). Adjust as needed.
submap = reset  # Resets to default submap for any following config lines.

And the bash script reference:

#!/usr/bin/env bash
# Event-driven Hyprland workspace -> submap watcher using socat for automatic reconnects
# Requirements: hyprctl, socat
set -euo pipefail

SOCAT=${SOCAT:-socat}
HYPR_SOCKET_PATH="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
ACTIVATED_CLEAN_WORKSPACE=false

# Use socat to connect to the Hyprland socket and keep reconnecting.
# Options used:
# -u : unidirectional (read-only from socket)
# UNIX-CONNECT:...,forever,interval=2 : reconnect forever, waiting 2s between attempts
"$SOCAT" -u "UNIX-CONNECT:${HYPR_SOCKET_PATH},forever,interval=2" - 2>/dev/null |
while IFS= read -r evline; do
    if ! printf '%s\n' "$evline" | grep -qi "activewindow>>"; then
        continue
    fi

    if printf '%s\n' "$evline" | grep -qi "activewindow>>rustdesk" && \
       printf '%s\n' "$evline" | grep -qi "Remote Desktop"; then
        hyprctl dispatch submap clean
        ACTIVATED_CLEAN_WORKSPACE=true
    elif [ "$ACTIVATED_CLEAN_WORKSPACE" = true ]; then
        hyprctl dispatch submap reset
        ACTIVATED_CLEAN_WORKSPACE=false
    fi
done

Anyway, this isn’t really an issue the CachyOS dev team can do anything about. But remote desktop software works as expected under Plasma X11 session, XFCE, Cinnomon, i3, LXDE, LXQT, Mate, etc (ie any x11 based DE or WM)

My apologies and thank you for your explanation.

Just an update i settled for running moonlight-qt and moonlight client, both of these have worked really well, one thing i noticed is i had to wack the bandwidth off the charts to reduce input lag.

I think many people here do not realize you can chose to run either Wayland or X11 when logging in if you have both installed. So you can continue to run Wayland natively but use X11 for the remote sessions only.

What I would like to see is an entry in the CachyHello App to install x11KDE and remote desktop with firewall port opening as a triggered question. I have done something similar at work for ubuntu clients so our users can set it up without having any tech knowledge or skill what so ever.

I think people does not realize they can use Wayland for native log in and x11 just for remote sessions.