Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.9.x : VNC resizes do not work after upgrading Fedora 39 to Fedora 40 #3047

Open
superbonaci opened this issue Apr 26, 2024 · 16 comments
Open
Labels

Comments

@superbonaci
Copy link

xrdp version

0.9.25

Detailed xrdp version, build options

xrdp 0.9.25
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --build=x86_64-redhat-linux-gnu
      --host=x86_64-redhat-linux-gnu
      --program-prefix=
      --disable-dependency-tracking
      --prefix=/usr
      --exec-prefix=/usr
      --bindir=/usr/bin
      --sbindir=/usr/sbin
      --sysconfdir=/etc
      --datadir=/usr/share
      --includedir=/usr/include
      --libdir=/usr/lib64
      --libexecdir=/usr/libexec
      --localstatedir=/var
      --runstatedir=/run
      --sharedstatedir=/var/lib
      --mandir=/usr/share/man
      --infodir=/usr/share/info
      --enable-fuse
      --enable-pixman
      --enable-painter
      --enable-vsock
      --enable-ipv6
      --with-socketdir=/run/xrdp
      --with-imlib2
      build_alias=x86_64-redhat-linux-gnu
      host_alias=x86_64-redhat-linux-gnu
      CC=gcc
      CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
      LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes
      LT_SYS_LIBRARY_PATH=/usr/lib64:
      PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig

  Compiled with OpenSSL 3.2.1 30 Jan 2024

Operating system & version

Fedora 40

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

No response

What desktop environment do you use?

Plasma/KDE

Environment xrdp running on

physical

What's your client?

Microsoft

Area(s) with issue?

Graphic glitches

Steps to reproduce

The screen resolution in KDE keeps fixed at 1024x768, does not resize when resizing the RDP client. Only adds black bars to bottom and right.

✔️ Expected Behavior

Resize

❌ Actual Behavior

Does not resize

Anything else?

No response

@superbonaci superbonaci changed the title Session fixed after upgrading Fedora 39 to Fedora 40 bug Plasma resolution does not resize after upgrading Fedora 39 to Fedora 40 Apr 26, 2024
@matt335672
Copy link
Member

This may be a duplicate of #3021, or at least related to it.

Can you paste xrdp.log following a connection?

@matt335672
Copy link
Member

Scrub the last comment - #3021 is using the krdc client.

I still need that log though.

@matt335672
Copy link
Member

Thanks.

Looking at the sources, there's not a lot of logging for client resizes on V0.9.x. It's a bit better on v0.10.x

A couple of things to check:-

  1. If you really are using a Microsoft client, be aware than mstsc.exe doesn't support this functionality. The client from the Windows App store does (although it has its share of other problems).
  2. Make sure drdynvc=true is set in the [Channels] section of xrdp.ini.
  3. Failing all of that, can you set LogLevel=DEBUG in /etc/xrdp/xrdp.ini? That will slow things up a bit. Then try a resize and see if you get any useful logs in /var/log/xrdp.log.

@superbonaci
Copy link
Author

you didn't tell me that I had to try resizing. This is the log:

[20240429-10:16:33] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 50816
[20240429-10:16:33] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:33] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:33] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:38] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 51155
[20240429-10:16:38] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:38] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:38] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:40] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 59354
[20240429-10:16:40] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:40] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:40] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:40] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 64863
[20240429-10:16:40] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:40] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:40] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:41] [INFO ] Layout from OldLayout (geom=1044x817 #screens=1) : 1804289383:(1044x817+0+0)
[20240429-10:16:41] [INFO ] Layout from NewLayout (geom=1052x821 #screens=1) : 1804289383:(1052x821+0+0)
[20240429-10:16:41] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240429-10:16:41] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240429-10:16:41] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240429-10:16:42] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 52114
[20240429-10:16:42] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:42] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:42] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:42] [INFO ] Layout from OldLayout (geom=1052x821 #screens=1) : 1804289383:(1052x821+0+0)
[20240429-10:16:42] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240429-10:16:42] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240429-10:16:42] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240429-10:16:42] [INFO ] Layout from NewLayout (geom=1184x936 #screens=1) : 1804289383:(1184x936+0+0)
[20240429-10:16:43] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 23341
[20240429-10:16:43] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:43] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:43] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-10:16:45] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 62240
[20240429-10:16:45] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-10:16:45] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-10:16:45] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]

@superbonaci
Copy link
Author

this is the log after DEBUG and rebooting, is this enough?

[20240429-11:26:36] [DEBUG] item ls_btn_cancel_height, value 30
[20240429-11:26:36] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-11:26:36] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:36] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 60080
[20240429-11:26:36] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:36] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20240429-11:26:36] [DEBUG] item ini_version, value 1
[20240429-11:26:36] [DEBUG] item fork, value true
[20240429-11:26:36] [DEBUG] item port, value 3389
[20240429-11:26:36] [DEBUG] item use_vsock, value false
[20240429-11:26:36] [DEBUG] item tcp_nodelay, value true
[20240429-11:26:36] [DEBUG] item tcp_keepalive, value true
[20240429-11:26:36] [DEBUG] item security_layer, value negotiate
[20240429-11:26:36] [DEBUG] item crypt_level, value high
[20240429-11:26:36] [DEBUG] item certificate, value
[20240429-11:26:36] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-11:26:36] [DEBUG] item key_file, value
[20240429-11:26:36] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-11:26:36] [DEBUG] item ssl_protocols, value TLSv1.2, TLSv1.3
[20240429-11:26:36] [DEBUG] TLSv1.3 enabled
[20240429-11:26:36] [DEBUG] TLSv1.2 enabled
[20240429-11:26:36] [DEBUG] item autorun, value
[20240429-11:26:37] [DEBUG] item allow_channels, value true
[20240429-11:26:37] [DEBUG] item allow_multimon, value true
[20240429-11:26:37] [DEBUG] item bitmap_cache, value true
[20240429-11:26:37] [DEBUG] item bitmap_compression, value true
[20240429-11:26:37] [DEBUG] item bulk_compression, value true
[20240429-11:26:37] [DEBUG] item max_bpp, value 32
[20240429-11:26:37] [DEBUG] item new_cursors, value true
[20240429-11:26:37] [DEBUG] item use_fastpath, value both
[20240429-11:26:37] [DEBUG] item blue, value 009cb5
[20240429-11:26:37] [DEBUG] item grey, value dedede
[20240429-11:26:37] [DEBUG] item ls_top_window_bg_color, value 009cb5
[20240429-11:26:37] [DEBUG] item ls_width, value 350
[20240429-11:26:37] [DEBUG] item ls_height, value 430
[20240429-11:26:37] [DEBUG] item ls_bg_color, value dedede
[20240429-11:26:37] [DEBUG] item ls_logo_filename, value
[20240429-11:26:37] [DEBUG] item ls_logo_x_pos, value 55
[20240429-11:26:37] [DEBUG] item ls_logo_y_pos, value 50
[20240429-11:26:37] [DEBUG] item ls_label_x_pos, value 30
[20240429-11:26:37] [DEBUG] item ls_label_width, value 65
[20240429-11:26:37] [DEBUG] item ls_input_x_pos, value 110
[20240429-11:26:37] [DEBUG] item ls_input_width, value 210
[20240429-11:26:37] [DEBUG] item ls_input_y_pos, value 220
[20240429-11:26:37] [DEBUG] item ls_btn_ok_x_pos, value 142
[20240429-11:26:37] [DEBUG] item ls_btn_ok_y_pos, value 370
[20240429-11:26:37] [DEBUG] item ls_btn_ok_width, value 85
[20240429-11:26:37] [DEBUG] item ls_btn_ok_height, value 30
[20240429-11:26:37] [DEBUG] item ls_btn_cancel_x_pos, value 237
[20240429-11:26:37] [DEBUG] item ls_btn_cancel_y_pos, value 370
[20240429-11:26:37] [DEBUG] item ls_btn_cancel_width, value 85
[20240429-11:26:37] [DEBUG] item ls_btn_cancel_height, value 30
[20240429-11:26:37] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-11:26:37] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:45] [DEBUG] dynamic_monitor_data: msg_type 2 msg_length 56
[20240429-11:26:45] [DEBUG]   MonitorLayoutSize 40 NumMonitor 1
[20240429-11:26:45] [DEBUG] VNC matched ExtendedDesktopSize rectangle x=0, y=0 geom=1184x938
[20240429-11:26:45] [DEBUG] Skipping RFB_ENC_EXTENDED_DESKTOP_SIZE encoding x=0, y=0 geom=1184x938
[20240429-11:26:45] [DEBUG] VNC server supports resizing
[20240429-11:26:45] [INFO ] Layout from OldLayout (geom=1184x938 #screens=1) : 1804289383:(1184x938+0+0)
[20240429-11:26:45] [DEBUG] VNC setting screen id to 1804289383 from server
[20240429-11:26:45] [DEBUG] Server layout differs from the client layout. Changing server layout
[20240429-11:26:45] [DEBUG] VNC Sending SetDesktopSize
[20240429-11:26:45] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240429-11:26:45] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240429-11:26:45] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240429-11:26:45] [DEBUG] Skipping RFB_ENC_EXTENDED_DESKTOP_SIZE encoding x=0, y=0 geom=1276x1010
[20240429-11:26:45] [DEBUG] Skipping RFB_ENC_EXTENDED_DESKTOP_SIZE encoding x=0, y=0 geom=1276x1010
[20240429-11:26:45] [DEBUG] Skipping RFB_ENC_EXTENDED_DESKTOP_SIZE encoding x=0, y=0 geom=1276x1010
[20240429-11:26:45] [DEBUG] VNC matched ExtendedDesktopSize rectangle x=1, y=0 geom=1276x1010
[20240429-11:26:45] [DEBUG] VNC server successfully resized
[20240429-11:26:45] [INFO ] Layout from NewLayout (geom=1276x1010 #screens=1) : 1804289383:(1276x1010+0+0)
[20240429-11:26:46] [DEBUG] dynamic_monitor_data: msg_type 2 msg_length 56
[20240429-11:26:46] [DEBUG]   MonitorLayoutSize 40 NumMonitor 1
[20240429-11:26:46] [DEBUG] Skipping RFB_ENC_RAW encoding
[20240429-11:26:46] [DEBUG] VNC server does not support resizing
[20240429-11:26:46] [DEBUG] Resizing client to server 1276x1010
[20240429-11:26:46] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240429-11:26:46] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240429-11:26:46] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240429-11:26:46] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20240429-11:26:46] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20240429-11:26:46] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20240429-11:26:47] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 63632
[20240429-11:26:47] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:47] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20240429-11:26:47] [DEBUG] item ini_version, value 1
[20240429-11:26:47] [DEBUG] item fork, value true
[20240429-11:26:47] [DEBUG] item port, value 3389
[20240429-11:26:47] [DEBUG] item use_vsock, value false
[20240429-11:26:47] [DEBUG] item tcp_nodelay, value true
[20240429-11:26:47] [DEBUG] item tcp_keepalive, value true
[20240429-11:26:47] [DEBUG] item security_layer, value negotiate
[20240429-11:26:47] [DEBUG] item crypt_level, value high
[20240429-11:26:47] [DEBUG] item certificate, value
[20240429-11:26:47] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-11:26:47] [DEBUG] item key_file, value
[20240429-11:26:47] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-11:26:47] [DEBUG] item ssl_protocols, value TLSv1.2, TLSv1.3
[20240429-11:26:47] [DEBUG] TLSv1.3 enabled
[20240429-11:26:47] [DEBUG] TLSv1.2 enabled
[20240429-11:26:47] [DEBUG] item autorun, value
[20240429-11:26:47] [DEBUG] item allow_channels, value true
[20240429-11:26:47] [DEBUG] item allow_multimon, value true
[20240429-11:26:47] [DEBUG] item bitmap_cache, value true
[20240429-11:26:47] [DEBUG] item bitmap_compression, value true
[20240429-11:26:47] [DEBUG] item bulk_compression, value true
[20240429-11:26:47] [DEBUG] item max_bpp, value 32
[20240429-11:26:47] [DEBUG] item new_cursors, value true
[20240429-11:26:47] [DEBUG] item use_fastpath, value both
[20240429-11:26:47] [DEBUG] item blue, value 009cb5
[20240429-11:26:47] [DEBUG] item grey, value dedede
[20240429-11:26:47] [DEBUG] item ls_top_window_bg_color, value 009cb5
[20240429-11:26:47] [DEBUG] item ls_width, value 350
[20240429-11:26:47] [DEBUG] item ls_height, value 430
[20240429-11:26:47] [DEBUG] item ls_bg_color, value dedede
[20240429-11:26:47] [DEBUG] item ls_logo_filename, value
[20240429-11:26:47] [DEBUG] item ls_logo_x_pos, value 55
[20240429-11:26:47] [DEBUG] item ls_logo_y_pos, value 50
[20240429-11:26:47] [DEBUG] item ls_label_x_pos, value 30
[20240429-11:26:47] [DEBUG] item ls_label_width, value 65
[20240429-11:26:47] [DEBUG] item ls_input_x_pos, value 110
[20240429-11:26:47] [DEBUG] item ls_input_width, value 210
[20240429-11:26:47] [DEBUG] item ls_input_y_pos, value 220
[20240429-11:26:47] [DEBUG] item ls_btn_ok_x_pos, value 142
[20240429-11:26:47] [DEBUG] item ls_btn_ok_y_pos, value 370
[20240429-11:26:47] [DEBUG] item ls_btn_ok_width, value 85
[20240429-11:26:47] [DEBUG] item ls_btn_ok_height, value 30
[20240429-11:26:47] [DEBUG] item ls_btn_cancel_x_pos, value 237
[20240429-11:26:47] [DEBUG] item ls_btn_cancel_y_pos, value 370
[20240429-11:26:47] [DEBUG] item ls_btn_cancel_width, value 85
[20240429-11:26:47] [DEBUG] item ls_btn_cancel_height, value 30
[20240429-11:26:47] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-11:26:47] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:50] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:x.x.x.x port 58352
[20240429-11:26:50] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)
[20240429-11:26:50] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20240429-11:26:50] [DEBUG] item ini_version, value 1
[20240429-11:26:50] [DEBUG] item fork, value true
[20240429-11:26:50] [DEBUG] item port, value 3389
[20240429-11:26:50] [DEBUG] item use_vsock, value false
[20240429-11:26:50] [DEBUG] item tcp_nodelay, value true
[20240429-11:26:50] [DEBUG] item tcp_keepalive, value true
[20240429-11:26:50] [DEBUG] item security_layer, value negotiate
[20240429-11:26:50] [DEBUG] item crypt_level, value high
[20240429-11:26:50] [DEBUG] item certificate, value
[20240429-11:26:50] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240429-11:26:50] [DEBUG] item key_file, value
[20240429-11:26:50] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240429-11:26:50] [DEBUG] item ssl_protocols, value TLSv1.2, TLSv1.3
[20240429-11:26:50] [DEBUG] TLSv1.3 enabled
[20240429-11:26:50] [DEBUG] TLSv1.2 enabled
[20240429-11:26:50] [DEBUG] item autorun, value
[20240429-11:26:50] [DEBUG] item allow_channels, value true
[20240429-11:26:50] [DEBUG] item allow_multimon, value true
[20240429-11:26:50] [DEBUG] item bitmap_cache, value true
[20240429-11:26:50] [DEBUG] item bitmap_compression, value true
[20240429-11:26:50] [DEBUG] item bulk_compression, value true
[20240429-11:26:50] [DEBUG] item max_bpp, value 32
[20240429-11:26:50] [DEBUG] item new_cursors, value true
[20240429-11:26:50] [DEBUG] item use_fastpath, value both
[20240429-11:26:50] [DEBUG] item blue, value 009cb5
[20240429-11:26:50] [DEBUG] item grey, value dedede
[20240429-11:26:50] [DEBUG] item ls_top_window_bg_color, value 009cb5
[20240429-11:26:50] [DEBUG] item ls_width, value 350
[20240429-11:26:50] [DEBUG] item ls_height, value 430
[20240429-11:26:50] [DEBUG] item ls_bg_color, value dedede
[20240429-11:26:50] [DEBUG] item ls_logo_filename, value
[20240429-11:26:50] [DEBUG] item ls_logo_x_pos, value 55
[20240429-11:26:50] [DEBUG] item ls_logo_y_pos, value 50
[20240429-11:26:50] [DEBUG] item ls_label_x_pos, value 30
[20240429-11:26:50] [DEBUG] item ls_label_width, value 65
[20240429-11:26:50] [DEBUG] item ls_input_x_pos, value 110
[20240429-11:26:50] [DEBUG] item ls_input_width, value 210
[20240429-11:26:50] [DEBUG] item ls_input_y_pos, value 220
[20240429-11:26:50] [DEBUG] item ls_btn_ok_x_pos, value 142
[20240429-11:26:50] [DEBUG] item ls_btn_ok_y_pos, value 370
[20240429-11:26:50] [DEBUG] item ls_btn_ok_width, value 85
[20240429-11:26:50] [DEBUG] item ls_btn_ok_height, value 30
[20240429-11:26:50] [DEBUG] item ls_btn_cancel_x_pos, value 237
[20240429-11:26:50] [DEBUG] item ls_btn_cancel_y_pos, value 370
[20240429-11:26:50] [DEBUG] item ls_btn_cancel_width, value 85
[20240429-11:26:50] [DEBUG] item ls_btn_cancel_height, value 30
[20240429-11:26:50] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|RDP], selected [SSL]
[20240429-11:26:51] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:x.x.x.x port 3389)

@matt335672
Copy link
Member

Thanks - that's exactly what I needed.

You're getting these messages on a resize request. They show the request coming in from the client for a resize:-

[20240429-11:26:46] [DEBUG] dynamic_monitor_data: msg_type 2 msg_length 56
[20240429-11:26:46] [DEBUG]   MonitorLayoutSize 40 NumMonitor 1

Then this happens when the VNC server successfully resizes:-

[20240429-11:26:45] [DEBUG] VNC Sending SetDesktopSize
. . .
20240429-11:26:45] [DEBUG] VNC server successfully resized

However, you're also seeing this happen:-

[20240429-11:26:46] [DEBUG] dynamic_monitor_data: msg_type 2 msg_length 56
[20240429-11:26:46] [DEBUG]   MonitorLayoutSize 40 NumMonitor 1
[20240429-11:26:46] [DEBUG] Skipping RFB_ENC_RAW encoding
[20240429-11:26:46] [DEBUG] VNC server does not support resizing
[20240429-11:26:46] [DEBUG] Resizing client to server 1276x1010

What's happening here is although the VNC server supports resizing, xrdp is not remembering this from previously. It sends a resize request, and instead of an acknowledgement it gets another screen update. So it assumes the VNC server doesn't support resizing and just asks the client to resize instead. So this is definitely a bug.

The good news is this is fixed in v0.10.x which is in beta at the moment. At the moment we don't have plans for other fixes to v0.9.x apart from security fixes. I'll mark this a a v0.9.x problem so if this changes we can pick it up.

This is possibly happening when the VNC server is busy and refreshes are happening. It's possible if the resizes are done when the server is quiet there won't be a problem.

@matt335672 matt335672 changed the title Plasma resolution does not resize after upgrading Fedora 39 to Fedora 40 V0.9.x : VNC resizes do not work after upgrading Fedora 39 to Fedora 40 Apr 30, 2024
@superbonaci
Copy link
Author

Are there any beta builds to try? Or must be compiled?

@matt335672
Copy link
Member

We don't provide binary packages here - that's up to the distros.

Fedora uses Koji as its build system. When a beta is available it will show up here:-

https://koji.fedoraproject.org/koji/packageinfo?packageID=9026

@superbonaci
Copy link
Author

@matt335672 is not possible to distribute xrdp stable/beta as flatpak/snap? that would be great.

@matt335672
Copy link
Member

Maybe, but it's not an area we'd want to get into at present.

@superbonaci
Copy link
Author

superbonaci commented May 7, 2024

I've uninstalled the xrdp package from fedora 40 and manually compiled and installed latest commit from this project following the wiki, but the issue is now work because the connection closes immediately during resize. RDP client: Error code 0x200d.

@matt335672
Copy link
Member

@superbonaci
Copy link
Author

What's the difference between the two?

@matt335672
Copy link
Member

One's been through user-acceptance-testing at one of our enterprise users, and the other hasn't.

@superbonaci
Copy link
Author

I mean what is the difference between xrdp and xorgrdg (not git commit versus zip), and can or must I have both of them installed at the same time?

@matt335672
Copy link
Member

I see you're using the VNC backend, so you don't need xorgxrdp - my mistake.

xorgxrdp is a module for Xorg which provides an alternative to Xvnc. It's not enabled by default for Fedora/RHEL/etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants