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

Linux GUI apps look pixelated at Hi-DPi environment #75

Closed
XuCpeng opened this issue Apr 24, 2021 · 5 comments
Closed

Linux GUI apps look pixelated at Hi-DPi environment #75

XuCpeng opened this issue Apr 24, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@XuCpeng
Copy link

XuCpeng commented Apr 24, 2021

Environment

Windows build number: 10.0.21364.0
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.17.1
Display Resolution: 3840*2160

Steps to reproduce

Set display Scale and layout option to 175%, and set WESTON_RDP_DISABLE_FRACTIONAL_HI_DPI_SCALING=false in .wslgconfig.

  1. Install Intel GPU driver for WSL
  2. Install ubuntu from Microsoft Store
  3. sudo apt install firefox
  4. open firefox

Expected behavior

Applications should be scaled and kept clear.

Actual behavior

Applications is scaled but blurred (or pixelated? ). (Not only firefox, but also other applications have the same display effect.)

image

I tried to reinstall WSL and Ubuntu, and tried to use 200% scaling, but it didn't work. I'm not sure if this is a bug or an unimplemented feature.

@XuCpeng XuCpeng added the bug Something isn't working label Apr 24, 2021
@hideyukn88
Copy link
Member

@XuCpeng , thank you for reporting this, yes, this is currently known limitation due to the quality of scaling used in RDP client software in Windows OS (mstsc.exe). This is also tracked in #3.

Also if you prefer to let firefox to natively scale up, you can disable WSLg's auto scaling using the method mentioned at #30, and enable HI-DPI scaling at firefox itself.

@spronovo
Copy link
Collaborator

This issue is already tracked by #3, closing as duplicate.

spronovo pushed a commit that referenced this issue Apr 26, 2021
…erfile because /var/run is a symlink to /run which is a tmpfs mount created at boot. (#75)

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
@Yogu
Copy link

Yogu commented May 5, 2021

Also if you prefer to let firefox to natively scale up, you can disable WSLg's auto scaling using the method mentioned at #30, and enable HI-DPI scaling at firefox itself.

How do you enable Hi-DPI scaling in firefox (or any application that supports it?) On a native Linux environment (with KDE / Gnome), this usually just works out of the box and applications scale themselves properly and nicely. Don't really understand what the RDP client needs to do here. Is it possible to enable scaling (and also fractional scaling) for all applications that natively support it?

@hideyukn88
Copy link
Member

@Yogu , there is no common framework for HI-DPI, so needs to be done by each framework or by applications separately, please refer https://wiki.archlinux.org/title/HiDPI, while this is for archlinux's wiki but apply to most of distro.

And the reason this is nicely done with, for example, Ubuntu desktop (from Canonical), is because, currently almost all Linux distro for WSL is mainly configured for console usage (not GUI), thus many of desktop specific packages/configurations are not installed/pre-configured by distro vendor. Thus those have to be done manually, this is similar to the situation when enabling GUI top on more console based distro, such as Ubuntu server.

@Yogu
Copy link

Yogu commented May 5, 2021

@hideyukn88 Ah, makes sense. Thanks!

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

4 participants