-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Using xpra client on a wayland host with display scaling results in blurry windows #3994
Comments
Manjaro is not a supported distro.
What does this mean, where is it configured? Please include a screenshot. |
For what concerns xpra, manjaro should appear just like arch (which I guess is also an unsupported distro...) Using KDE the wayland compositor lets you set a scaling factor for HiDPI displays. On the client I have it set to use 150% scaling, with an option to let legacy X11 applications do the scaling by themselves. The alternative would be do system scaling of X11 applications, which implies having Xwayland doing the scaling of otherwise unscaled apps. The latter necessarily results in some blur. I'll attach a screenshot as soon as I am on the affected machine. |
What / where is this?
xpra does not use Xwayland on the client. |
This version does not exist! |
Sorry for the typo, that was |
FWIW: under Wayland, xpra does not use X11 at all. So the 150% scaling should be handled by Wayland and I'm not sure if there is an API for us to get the true dimensions of the window and the scaling factor to use with it. |
Thanks for the info. Before further reporting, I have managed updating my system so that the reporting can be meaningful. I am now on xpra 6.0 on both the local machine and the remote one. This took some time because for some reason arch linux is stuck at 4.4.5 (strange as it may seem for a rolling distro). So now I am building my own xpra package for arch/manjaro and I hope I am doing it correctly. Now, with a more recent xpra I can run it without the need to force it to X11 mode on the local host via the The problem is that the windows from the remote host remain extra blurry. This is an issue, specifically for terminal (konsole in my case) windows, where reading the text is possible but painful (to the extent of physical rather than metaphorical headaches). I believe that this depends on my specific situation where the remote machine is not HiDPI, but the local one is with desktop scaling set to 150%. My understanding is that xpra is unaware of this scaling (does 100%) that is done by the composer (that scales up to 150%) causing all the blurryness. I know that fractional scaling on wayland is a quite complicate thing if not worse, however, I understand that in order to provide a crisp display there is a way for wayland applications to know that the scaling is applied so that they can provide higher resolution rasters before the scaling. Waypipe seems to provide a more crisp display for konsole, so there should be a way to do it (obviously using waypipe in place of xpra is not an option, because xpra does much more and can deal with X11 applications). As a final note, an interesting thing is that when you start xpra on the local host it says:
Here the 300x190mm is correct. However the 1707x1067 is the display resolution adjusted for the scaling. The real resolution is 2560x1600 and the 1707x1067 is actually the real resolution divided by 1.5 (150%). As a consequence the computed DPI is wrong. The real one is > 200dpi. |
I have noticed that running xpra with Where does the 0.5 come from? Cannot really understand. 1/1.5 should be 0.667. So this looks like the ratio between the standard 96dpi and the actual ~200 dpi of my screen (can this be the case?). With 0.667 everything is definitely too large. Unfortunately, with the desktop scaling at 0.5 there are other issues. When I scroll down the konsole and I get to the end, the konsole does not scroll but displays a messed up bottom line, until I scroll more... So there seems to be some rounding issue in understanding when the konsole should actually scroll. |
I see the same issue with Debian Bookworm / GNOME 3 / Wayland. Fractional scaling is turned on in GNOME 3. On all my monitors, Xpra is blurry; on my High DPI monitors, I'm seeing a lower resolution image being upscaled.
On client startup, the "desktop size" shown in the logs is not in raw pixels. The monitors vary between 4K (the two DELL S2721QSes and the SHP 0x1551) and 1080P (MSI MP161), with different scaling factors on each one (fractional scaling on the SHP 0x1551).
The logs also contain a lot of If I run the client with --dpi=144, the text/etc in my windows gets bigger but the windows themselves are still as blurry as they ever were. |
Since GTK has no plans to support fractional scaling, it is not exposing the actual window dimensions to us, the only way I can think of to fix would be to get the fractional scaling value from somewhere else then transform all coordinates (but per monitor!) before sending them to the server. So don't hold your breath. I don't think this is going to happen. |
Describe the bug
Launching
xpra start ...
on an X11 host. Trying to usexpra attach ...
on a wayland client with display scaling (150%). Windows get displayed on the wayland machine but are a bit blurry (in any case readable). The--dpi
option also seems to do nothing.To Reproduce
See description
System Information (please complete the following information):
The text was updated successfully, but these errors were encountered: