-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Heterogeneous DPI support on Linux #41345
Comments
Does Chromium support this? |
As much as I could find, there have been some efforts last year to develop Wayland display support for Chromium: |
Here's an active development branch for the Ozone port for Wayland: https://github.com/Igalia/chromium/tree/ozone-wayland-dev |
Any news on this? |
This is a huge blocker for me. Any movement on this issue? Moving to a Wayland port would solve this problem and possibly other linux display-related issues. Unfortunately the Wayland issue #1739 was closed prematurely without a solution. |
@jhasse Nooooope. Obviously an issue for VSCode as well. Previous screens are 1080p on 24" screen. You can imagine how it's not cool to work with... Ubuntu 19.04/Wayland on a Dell XPS 2014 with 1080p HP side screen. |
For a half workaround (which is far from ideal as the menu bar still stays huge), you can zoom out with CTRL+-. At least your editor will be small. If you are not using the menu bar (File, Edit ...) then you can even hide it with
|
@bpasero there are two upstream bugs which are blocking this:
Until both of these are closed none of the updated Electron builds will solve the blurriness under Wayland as they'll be running via XWayland which has no means of knowing the DPI of the display it's on. At the moment the window will be upscaled from the lowest display's DPI to the display it's currently on. On a laptop with a 4k display and external 1080p display this means Code will look right on the external display and blurry on the 4k one. |
I would say that the chromium issue is solved enough to support this, at least for testing purposes. The current stable chromium release only requires the ozone/wayland build flags to be compiled for ozone/wayland (no downstream patches). It works, and correctly scales the window to match the DPI of the display it's rendered on. |
@bpasero would be awesome if you could hook us up with such builds |
@deepak1556 fyi on #41345 (comment) |
@bpasero These builds did nothing for me. Still experiencing this issue on latest GNOME/latest Fedora with fractional DPI scaling set to 125%. |
Any updates on this? VSCode has become painful to use on Linux due to this. |
@KAepora, things are moving, see electron/electron#10915 (comment) for recent progress. |
@tjanez Thank you, I've switched back to Xorg until this is resolved. Thankfully, VSCode works great on HiDPI on Xorg but I do miss the Wayland advantages across the rest of my computer. |
It looks like the native Wayland support in Chromium/Electron is just about ready, so hopefully VSCode will soon be able to take advantage of that... |
This is april 2021. Gnome 40 is already out and neither chrome nor vscode supports hidpi monitor scaling on wayland. I tried all the quick fix on the web but none works. Is there any progress ? |
In fact this was the reason why I've switched off from Linux as my main OS.. |
Did you try with KDE Plasma (on Wayland) and an electron 12 build of vscode? AFAIK it used to work even with XWayland vscode, but it was blurry (shouldn't if you use compile it from the electron 12 branch). Don't know about Gnome though. |
I know that feeling, that's really a dealbreaker... A friend of mine got it sort of working with Wayland Plasma, but at the time it was so unstable that he decided to match the dpi of the laptop. |
@carwyn , do I have to set any variable in those exploration builds? I installed the rpm package on Fedora 34, but it still runs on xwayland. NVM, I checked the aur package and found out that I had to add
|
#72759 is a duplicate issue with a number of up-to-date user reports after the recent upgrade from Electron 14 to 17. With #148507 fixed in insider, this is the first time VSCode is running stably for me as a native Wayland client, so scaling support is the last blocking issue for this to be usable. |
I have noted while using wayland fractional scaling with two monitors at 150% and 100% and launching VS code with the arguments |
Steps to Reproduce:
Like any other X11 application, Visual Studio Code cannot adapt to heterogeneous scaling.
Wayland support, discussed in #1739, is needed to enable this. I feel that opening a new issue is justified by the problem described, which was not mentioned by the commenters on that issue.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: