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

Inappropriate scaling for local xpra #1887

Closed
totaam opened this issue Jun 25, 2018 · 8 comments
Closed

Inappropriate scaling for local xpra #1887

totaam opened this issue Jun 25, 2018 · 8 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Jun 25, 2018

Issue migrated from trac ticket # 1887

component: client | priority: major | resolution: fixed

2018-06-25 08:56:57: kugel created the issue


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-19531 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-19531 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
@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 09:01:04: antoine uploaded file 1887-bug-report-data.txt (64.9 KiB)

moving bug report data to an attachment

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 09:06:05: antoine changed owner from antoine to kugel

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 09:06:05: antoine edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 09:06:05: antoine commented


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?

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 09:07:47: kugel commented


[tmartitz@tmartitz-pc:~] $ xpra attach :10 -d scaling
2018-06-25 10:07:01,650 Xpra gtk2 client version 2.3.1-19531 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-19531 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

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 10:32:27: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 10:32:27: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Jun 25, 2018

2018-06-25 10:32:27: antoine commented


Fixed in r19716.

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

@totaam totaam closed this as completed Jun 25, 2018
@totaam totaam added the v2.3.x label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant