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

shadow: Restarting gnome-session on host (Alt+F2, r) changes the display characteristics on the remote host. #4099

Open
stdedos opened this issue Jan 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stdedos
Copy link
Collaborator

stdedos commented Jan 17, 2024

Describe the bug

It might be hard to replicate, given the environment. However, given that the connection to the remote host is a shadow connection, AFAIU under no circumstances should the client decide the display characteristics of the remote host (Analysis, DPI, Scaling, etc)

Server is a one-monitor, Full HD laptop. Client, however, is more complicated:

$ xrandr | grep -P '^\S|\*'
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
eDP-1 connected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+  50.00    59.94  
DP-3-8 disconnected (normal left inverted right x axis y axis)
DP-3-1 disconnected (normal left inverted right x axis y axis)
DP-3-1-8 disconnected (normal left inverted right x axis y axis)
DP-3-1-1 disconnected (normal left inverted right x axis y axis)
DVI-I-5-4 disconnected (normal left inverted right x axis y axis)
DVI-I-4-3 disconnected (normal left inverted right x axis y axis)
DVI-I-3-2 disconnected (normal left inverted right x axis y axis)
DVI-I-2-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
   2560x1440    144.00*+ 120.00    99.95    59.95  

In addition to that, the client is connected via DisplayLink to the displays above - and the lid is closed (eDP-1 connected, but no selected modes).

I am suspecting that during the client's "Alt+F2, r" sequence, the xrandr state might revert first to eDP-1, full-hd and then come back to the mode above.

Somehow between the start and the end of the "Alt+F2, r" sequence, the server is instructed to switch to 4480x1440, at 200% scale (among DPI changes which I cannot find in gnome-settings.

To Reproduce

$ xpra shadow ssh://u@h
/usr/lib/python3/dist-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,

2024-01-17 22:56:06,096 Xpra GTK3 client version 5.0.5-r27
2024-01-17 22:56:06,180  running on Linux Ubuntu 20.04 focal
2024-01-17 22:56:06,180  window manager is 'GNOME Shell'
2024-01-17 22:56:06,869 GStreamer version 1.16.3
2024-01-17 22:56:06,930 created unix domain socket '/run/user/1000/xpra/clients/h-3123335'
2024-01-17 22:56:07,438 Connected (version 2.0, client OpenSSH_8.2p1)
2024-01-17 22:56:07,694 Warning: unknown SSH host 'h'
2024-01-17 22:56:13,025 host key confirmed
2024-01-17 22:56:13,117 Authentication (publickey) failed.
2024-01-17 22:56:13,117 SSH agent key 'MD5:ec:4e:5a:ca:a8:7c:64:77:a1:c3:83:70:1f:90:98:b1' rejected for user 'u'
2024-01-17 22:56:13,140 Authentication (publickey) successful!
2024-01-17 22:56:13,718 ssh server OS is 'linux-gnu'
2024-01-17 22:56:13,846 paramiko SSH agent forwarding enabled
2024-01-17 22:56:13,886  keyboard settings: rules=evdev, model=pc105, layout=us,gr,us
2024-01-17 22:56:13,905  desktop size is 4480x1440:
2024-01-17 22:56:13,906   :1.0 (1185x381 mm - DPI: 96x96) workarea: 4408x1413 at   72x27  
2024-01-17 22:56:13,906     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2488x1413 at   72x27
2024-01-17 22:56:13,906     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1848x1053 at 2632x27
2024-01-17 22:56:14,182  SSH: 'Entering daemon mode; any further errors will be reported to:'
2024-01-17 22:56:14,183  SSH: "  '/run/user/1000/xpra/0/server.log'"
2024-01-17 22:56:15,446 enabled remote logging
2024-01-17 22:56:15,446 Xpra shadow server version 5.0
2024-01-17 22:56:15,447  remote desktop size is 1920x1080
2024-01-17 22:56:15,447   :0.0 (508x285 mm - DPI: 96x96) workarea: 1848x1053 at   72x27  
2024-01-17 22:56:15,447     LGD eDP-1        (309x174 mm - DPI: 158x158)
2024-01-17 22:56:15,597 audio playback found 2 audio output devices:
2024-01-17 22:56:15,598 audio playback  * LG SH2(38)
2024-01-17 22:56:15,598 audio playback    bluez_sink.08_EF_3B_AE_F6_38.a2dp_sink
2024-01-17 22:56:15,598 audio playback  * Built-in Audio Digital Stereo (HDMI)
2024-01-17 22:56:15,598 audio playback    alsa_output.pci-0000_00_1f.3.hdmi-stereo
2024-01-17 22:56:15,598 audio playback  to select a specific one,
2024-01-17 22:56:15,598 audio playback  use the environment variable 'XPRA_PULSE_SINK_DEVICE_NAME'
2024-01-17 22:56:15,598 audio playback using default pulseaudio device
2024-01-17 22:56:15,637 running, 1 window
2024-01-17 22:56:16,113 audio playback using 'opus' audio codec
2024-01-17 22:56:22,460 server is not responding, drawing spinners over the windows
2024-01-17 22:56:23,138 server is OK again
2024-01-17 23:55:53,585 server is not responding, drawing spinners over the windows
2024-01-17 23:55:55,340 server is OK again
2024-01-18 00:02:53,558 UI thread is now blocked
2024-01-18 00:02:53,590 sending updated screen size to server: 6400x1440
2024-01-18 00:02:53,591   :1.0 (1693x381 mm - DPI: 96x96) workarea: 4408x1413 at   72x27  
2024-01-18 00:02:53,591     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2560x1440
2024-01-18 00:02:53,592     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1920x1080 at 2560x0
2024-01-18 00:02:53,592     LGD eDP-1        1920x1200 at 4480x0    (336x210 mm - DPI: 145x145) workarea: 1920x1200 at 4480x0
2024-01-18 00:02:53,857 UI thread is running again, resuming
2024-01-18 00:02:56,606 sending updated screen size to server: 6400x1440
2024-01-18 00:02:56,607   :1.0 (1693x381 mm - DPI: 96x96) workarea: 4480x1440
2024-01-18 00:02:56,607     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2560x1440
2024-01-18 00:02:56,607     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1920x1080 at 2560x0
2024-01-18 00:02:56,607     LGD eDP-1        1920x1200 at 4480x0    (336x210 mm - DPI: 145x145) workarea: 1920x1200 at 4480x0
2024-01-18 00:03:00,060 UI thread is now blocked
2024-01-18 00:03:00,308 UI thread is running again, resuming
2024-01-18 00:03:01,561 UI thread is now blocked
2024-01-18 00:03:01,875 UI thread is running again, resuming
2024-01-18 00:03:03,076 UI thread is now blocked
2024-01-18 00:03:04,016 sending updated screen size to server: 4480x1440
2024-01-18 00:03:04,016   :1.0 (1185x381 mm - DPI: 96x96)
2024-01-18 00:03:04,016     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2560x1440
2024-01-18 00:03:04,016     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1920x1080 at 2560x0
2024-01-18 00:03:04,558 UI thread is running again, resuming
2024-01-18 00:03:07,650 UI thread is now blocked
2024-01-18 00:03:07,673 UI thread is running again, resuming
2024-01-18 00:03:07,674 trying to re-connect to the notification service
2024-01-18 00:03:07,686 Error processing notification:
2024-01-18 00:03:07,686  org.freedesktop.DBus.Error.ServiceUnknown: The name :1.197 was not provided by any .service files
2024-01-18 00:03:07,772 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2024-01-18 00:03:07,772  request 35
2024-01-18 00:03:09,974 sending updated screen size to server: 4480x1440
2024-01-18 00:03:09,974   :1.0 (1185x381 mm - DPI: 96x96) workarea: 4411x1413 at   69x27  
2024-01-18 00:03:09,974     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2491x1413 at   69x27
2024-01-18 00:03:09,975     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1851x1053 at 2629x27
2024-01-18 00:22:01,299 window 13 has been moved to monitor 1: GSM DP-3 1920x1080 at 2560,0
2024-01-18 00:22:05,291 window 13 has been moved to monitor 0: SAM DVI-I-2-1 2560x1440 at 0,0
2024-01-18 00:23:24,836 server is not responding, drawing spinners over the windows
2024-01-18 00:23:30,603 server is OK again
2024-01-18 00:24:54,850 server is not responding, drawing spinners over the windows
2024-01-18 00:24:59,613 server is OK again
2024-01-18 00:25:34,855 server is not responding, drawing spinners over the windows
2024-01-18 00:25:36,108 server is OK again
2024-01-18 00:25:39,857 server is not responding, drawing spinners over the windows
2024-01-18 00:25:45,123 server is OK again
2024-01-18 00:25:54,858 server is not responding, drawing spinners over the windows
2024-01-18 00:25:58,618 server is OK again
2024-01-18 00:30:54,895 server is not responding, drawing spinners over the windows
2024-01-18 00:31:04,429 server is OK again
2024-01-18 00:32:36,794 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO_BEGIN with format=8 (!=32)
2024-01-18 00:32:56,589 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO_BEGIN with format=8 (!=32)
2024-01-18 00:32:56,590 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,591 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,591 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,596 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,609 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,613 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,619 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,620 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,621 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,622 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,622 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,622 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,622 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,826 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO_BEGIN with format=8 (!=32)
2024-01-18 00:32:56,826 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,827 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,827 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,850 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO_BEGIN with format=8 (!=32)
2024-01-18 00:32:56,851 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,851 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:56,851 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:32:57,993 sending updated screen size to server: 4480x1440
2024-01-18 00:32:57,994   :1.0 (1185x381 mm - DPI: 96x96) workarea: 4411x1413 at   69x27  
2024-01-18 00:32:57,994     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2491x1413 at   69x27
2024-01-18 00:32:57,994     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1875x1053 at 2605x27
2024-01-18 00:33:00,560 sending updated screen size to server: 4480x1440
2024-01-18 00:33:00,561   :1.0 (1185x381 mm - DPI: 96x96) workarea: 4411x1413 at   69x27  
2024-01-18 00:33:00,561     SAM DVI-I-2-1    2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2491x1413 at   69x27
2024-01-18 00:33:00,561     GSM DP-3         1920x1080 at 2560x0    (510x290 mm - DPI: 96x95) workarea: 1851x1053 at 2629x27
2024-01-18 00:33:04,913 server is not responding, drawing spinners over the windows
2024-01-18 00:33:05,416 server is OK again
2024-01-18 00:33:27,282 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO_BEGIN with format=8 (!=32)
2024-01-18 00:33:27,283 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:33:27,283 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)
2024-01-18 00:33:27,283 Warning: ignoring ClientMessage type=_NET_STARTUP_INFO with format=8 (!=32)

System Information (please complete the following information):

  • Server/Client OS: Ubuntu 20.04
  • Xpra Server/Client Version: xpra v5.0.5-r27

Additional context
Add any other context about the problem here.
Please see "reporting bugs" in the wiki section.

@stdedos stdedos added the bug Something isn't working label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant