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

HiDPI for wayland system when WM scale factor is set #7608

Closed
meklonets opened this issue Jan 31, 2022 · 5 comments
Closed

HiDPI for wayland system when WM scale factor is set #7608

meklonets opened this issue Jan 31, 2022 · 5 comments

Comments

@meklonets
Copy link

For example I use swaywm with 24' monitor, 4k.
And I have "scale 2" set in my sway config. It is system-wide setting. Everything's smooth and every app gets 4k.
Besides wlfreerdp. Remote system gets FullHD instead UHD.

@akallabeth
Copy link
Member

you need to choose:

  1. Scale locally (that can be done with /smart-sizing argument)
  2. Scale remotely (/scale* options, require support of remote OS)

@meklonets
Copy link
Author

you need to choose:

  1. Scale locally (that can be done with /smart-sizing argument)
  2. Scale remotely (/scale* options, require support of remote OS)

I meant "pixels per inch".
Two features, you mentioned, change the sizes of interface's elements, making icons (for example) bigger or dynamic, but the resolution (grain) still FullHD.
If I remove the scale factor from Sway settings (all elements are tiny for 24', system-wide), then - yes, freerdp gets UHD, and only set we have is scale 125|140|180 scale. But 180 isn't enough scaling for 24" UHD monitors. But again in this case all other apps on swaywm are tiny.

@akallabeth
Copy link
Member

akallabeth commented Jan 31, 2022

@meklonets ok, so your problem is that with the sway scale factor the session size is reduced to FullHD?
Problem here is (just guessing from how it is done in gnome) that the scale factor just scales the application window locally.
FreeRDP on the other hand requires you to do this without any local scaling if you want a session matching your local resolution.

So, short answer: Can´t work that way, you always need FreeRDP without scale factor if you want the proper resolution for the RDP session.
(the /scale* options match what is supported by windows - RDP server, so nothing we can do client wise)

@meklonets
Copy link
Author

@akallabeth Got it. Thank you.

@microcai
Copy link

with scale=2, wlfreerdp did not tell compositor that it supports hidpi, so wlfreerdp window is scaled by compositor, thus the remote desktop is double scaled if you specify /scale* options.

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

3 participants