You are not logged in.

#1 2021-02-18 17:30:39

zuntik
Member
Registered: 2017-08-11
Posts: 46

HiDPI issue with Pycharm

Hi,

I've been using arch for 5 years now and I've always had issues with HiDPI on my 14inch laptop. Especially with java apps. Pycharm is one of them but there are others. I use kde plasma and set the scaling to 150%. The Archwiki HiDPI page discusses how to fix IntelliJ IDEA by providing the

-Dsun.java2d.uiScale

option. I've never used IntelliJ but I think Pycharm is pretty much the same thing.
On the welcome screen of Pycharm (before a project is loaded), there is a gear button on the bottom left corner that once pressed shows an `Edit Custom VM Options` button. and I provided it with

-Dsun.java2d.uiScale=2

and that works as expected but it's too big. The problem is that if I provide it with

-Dsun.java2d.uiScale=1.5

, which is the correct value for my screen size,  it doesn't work. It's like it's back to scaling = 1 again. This is clearly a bug. What workaround is there?

Thank You

Offline

#2 2021-12-02 09:44:41

Gruentee
Member
Registered: 2012-07-30
Posts: 4
Website

Re: HiDPI issue with Pycharm

Note, currently fractional scale factor is not supported on Linux in the JRE-managed HiDPI mode. So if Xft.dpi defines a fraction scale, then the IDE is automatically switched to the legacy IDE-managed HiDPI mode (and the GDK_SCALE is not applied).

That's what they write on Jetbrains' documentation page concerning fractional scaling…


For every complex problem there is an answer that is clear, simple and wrong. ~ H.L. Mencken

Offline

Board footer

Powered by FluxBB