Xpra: Ticket #1887: Inappropriate scaling for local xpra

Hello,

since a recent upgrade to 2.3.1 xpra seems to enable upscaling on local connections. I can workaround with --desktop-scaling 1 but I don't think that should be necessary?

Here's the log when the client attaches:

[tmartitz@tmartitz-pc:~] $ xpra attach :10
2018-06-25 09:19:55,315 Xpra gtk2 client version 2.3.1-r19531 64-bit
2018-06-25 09:19:55,316  running on Linux neon 16.04 xenial
2018-06-25 09:19:56,083 GStreamer version 1.8.3 for Python 2.7.12 64-bit
2018-06-25 09:19:56,162 No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
/usr/lib/python2.7/dist-packages/xpra/client/gl/gtk_base/gtkgl_check.py:142: GtkWarning: Unable to locate theme engine in module_path: "adwaita",
  w = gtk.Window()
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `gtk-primary-button-warps-slider' of type `gboolean' from rc file value "((GString*) 0x2d208a0)" of type `gboolean'
2018-06-25 09:19:56,311 OpenGL enabled with Mesa DRI Intel(R) Haswell Desktop
2018-06-25 09:19:56,406  desktop size is 4920x1920 with 1 screen:
2018-06-25 09:19:56,406   :0.0 (1299x507 mm - DPI: 96x96)
2018-06-25 09:19:56,406     monitor 1 1920x1200 at 0x360 (520x320 mm - DPI: 93x95)
2018-06-25 09:19:56,406     monitor 2 1920x1200 at 1920x360 (520x320 mm - DPI: 93x95)
2018-06-25 09:19:56,406     monitor 3 1080x1920 at 3840x0 (510x290 mm - DPI: 53x168)
2018-06-25 09:19:56,406  upscaled by 125%, virtual screen size: 3936x1536
2018-06-25 09:19:56,406   :0.0 (1299x507 mm - DPI: 76x76)
2018-06-25 09:19:56,406     monitor 1 1536x960 at 0x288 (520x320 mm - DPI: 75x76)
2018-06-25 09:19:56,407     monitor 2 1536x960 at 1536x288 (520x320 mm - DPI: 75x76)
2018-06-25 09:19:56,407     monitor 3 864x1536 at 3072x0 (510x290 mm - DPI: 43x134)
2018-06-25 09:19:56,408  keyboard settings: rules=evdev, model=pc101, layout=de
2018-06-25 09:19:56,774 enabled fast mmap transfers using 288MB shared memory area
2018-06-25 09:19:56,775 enabled remote logging
2018-06-25 09:19:56,776 Xpra X11 server version 2.3.1-r19531 64-bit
2018-06-25 09:19:56,777  running on Linux neon 16.04 xenial
2018-06-25 09:19:56,780  no need for scaling with mmap
2018-06-25 09:19:56,783 Attached to :10
2018-06-25 09:19:56,783  (press Control-C to detach)
2018-06-25 09:19:56,892 server does not support xi input devices
2018-06-25 09:19:56,892  server uses: xtest
2018-06-25 09:19:57,624 sound output Warning: found 3 audio input devices:
2018-06-25 09:19:57,624 sound output  * Internes Audio Digital Stereo (HDMI)
2018-06-25 09:19:57,624 sound output    alsa_output.pci-0000_00_03.0.hdmi-stereo
2018-06-25 09:19:57,624 sound output  * Internes Audio Analog Stereo
2018-06-25 09:19:57,624 sound output    alsa_output.pci-0000_00_1b.0.analog-stereo
2018-06-25 09:19:57,624 sound output  * Remapped Internes Audio Digital Stereo (HDMI)
2018-06-25 09:19:57,624 sound output    reverse-stereo
2018-06-25 09:19:57,624 sound output  to select a specific one,
2018-06-25 09:19:57,624 sound output  use the environment variable 'XPRA_PULSE_SINK_DEVICE_NAME'
2018-06-25 09:19:57,624 sound output using default pulseaudio device
2018-06-25 09:19:58,628 sound output using 'opus' audio codec
2018-06-25 09:19:58,629 sound output using 'ogg' container format
^C2018-06-25 09:23:55,698 sound output stopping
got signal SIGINT, exiting


Mon, 25 Jun 2018 08:01:03 GMT - Antoine Martin: attachment set

moving bug report data to an attachment


Mon, 25 Jun 2018 08:06:04 GMT - Antoine Martin: owner, description changed; milestone set

Looks like a bug, this is a local connection since you have mmap enabled. It does print no need for scaling with mmap and so it should have turned off scaling.

Can you please post the client's "-d scaling" log output?


Mon, 25 Jun 2018 08:07:47 GMT - Thomas Martitz:

[tmartitz@tmartitz-pc:~] $ xpra attach :10 -d scaling
2018-06-25 10:07:01,650 Xpra gtk2 client version 2.3.1-r19531 64-bit
2018-06-25 10:07:01,651  running on Linux neon 16.04 xenial
2018-06-25 10:07:01,652 parse_scaling(('auto', 4920, 1920, 0.1, 8.0))
2018-06-25 10:07:01,652 matched=True : 4920x1920 with limits ((3960, 2160, 1, 1), (7680, 4320, 1.25, 1.25), (8192, 8192, 1.5, 1.5), (16384, 16384, 1.6666666666666667, 1.6666666666666667), (32768, 32768, 2, 2), (65536, 65536, 4, 4)): 1.25x1.25
2018-06-25 10:07:02,418 GStreamer version 1.8.3 for Python 2.7.12 64-bit
2018-06-25 10:07:02,498 No OpenGL_accelerate module loaded: No module named OpenGL_accelerate
/usr/lib/python2.7/dist-packages/xpra/client/gl/gtk_base/gtkgl_check.py:142: GtkWarning: Unable to locate theme engine in module_path: "adwaita",
  w = gtk.Window()
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `gtk-primary-button-warps-slider' of type `gboolean' from rc file value "((GString*) 0x1fe68a0)" of type `gboolean'
2018-06-25 10:07:02,648 OpenGL enabled with Mesa DRI Intel(R) Haswell Desktop
2018-06-25 10:07:02,744  desktop size is 4920x1920 with 1 screen:
2018-06-25 10:07:02,744   :0.0 (1299x507 mm - DPI: 96x96)
2018-06-25 10:07:02,744     monitor 1 1920x1200 at 0x360 (520x320 mm - DPI: 93x95)
2018-06-25 10:07:02,744     monitor 2 1920x1200 at 1920x360 (520x320 mm - DPI: 93x95)
2018-06-25 10:07:02,744     monitor 3 1080x1920 at 3840x0 (510x290 mm - DPI: 53x168)
2018-06-25 10:07:02,744  upscaled by 125%, virtual screen size: 3936x1536
2018-06-25 10:07:02,745   :0.0 (1299x507 mm - DPI: 76x76)
2018-06-25 10:07:02,745     monitor 1 1536x960 at 0x288 (520x320 mm - DPI: 75x76)
2018-06-25 10:07:02,745     monitor 2 1536x960 at 1536x288 (520x320 mm - DPI: 75x76)
2018-06-25 10:07:02,745     monitor 3 864x1536 at 3072x0 (510x290 mm - DPI: 43x134)
2018-06-25 10:07:02,748  keyboard settings: rules=evdev, model=pc101, layout=de
2018-06-25 10:07:03,126 enabled fast mmap transfers using 288MB shared memory area
2018-06-25 10:07:03,127 enabled remote logging
2018-06-25 10:07:03,128 Xpra X11 server version 2.3.1-r19531 64-bit
2018-06-25 10:07:03,129  running on Linux neon 16.04 xenial
2018-06-25 10:07:03,131  no need for scaling with mmap
2018-06-25 10:07:03,131 scaleset(1, 1) current scaling: 1.25, 1.25
2018-06-25 10:07:03,132 scale_change(0.8, 0.8)
2018-06-25 10:07:03,132 scale_change(0.8, 0.8) screen size change not permitted during embargo time - try again
2018-06-25 10:07:03,134 Attached to :10
2018-06-25 10:07:03,135  (press Control-C to detach)
2018-06-25 10:07:03,139 scaleset(1.25, 1.25) current scaling: 1.25, 1.25
2018-06-25 10:07:03,139 scale_change(1.0, 1.0)
2018-06-25 10:07:03,139 scale_change(1.0, 1.0) ignored, scaling is disabled
2018-06-25 10:07:03,239 server does not support xi input devices
2018-06-25 10:07:03,241  server uses: xtest
2018-06-25 10:07:03,998 sound output Warning: found 3 audio input devices:
2018-06-25 10:07:03,998 sound output  * Internes Audio Digital Stereo (HDMI)
2018-06-25 10:07:03,998 sound output    alsa_output.pci-0000_00_03.0.hdmi-stereo
2018-06-25 10:07:03,998 sound output  * Internes Audio Analog Stereo
2018-06-25 10:07:03,998 sound output    alsa_output.pci-0000_00_1b.0.analog-stereo
2018-06-25 10:07:03,998 sound output  * Remapped Internes Audio Digital Stereo (HDMI)
2018-06-25 10:07:03,998 sound output    reverse-stereo
2018-06-25 10:07:03,998 sound output  to select a specific one,
2018-06-25 10:07:03,999 sound output  use the environment variable 'XPRA_PULSE_SINK_DEVICE_NAME'
2018-06-25 10:07:03,999 sound output using default pulseaudio device
2018-06-25 10:07:04,907 sound output using 'opus' audio codec
2018-06-25 10:07:04,908 sound output using 'ogg' container format

Mon, 25 Jun 2018 09:32:27 GMT - Antoine Martin: status changed; resolution set

Fixed in r19716.

You can find 2.4 beta builds with this fix for Ubuntu Xenial here: https://xpra.org/beta/.


Sat, 23 Jan 2021 05:36:26 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1887