Adapt GUI for high-resolution (HiDPI) screen on Ubuntu Linux

Questions about YourKit Java Profiler
Post Reply
aracapau
Posts: 2
Joined: Fri Dec 30, 2016 4:21 pm

Adapt GUI for high-resolution (HiDPI) screen on Ubuntu Linux

Post by aracapau »

Hello,

I’m running YourKit Java Profiler 2016.02-b45 64-bit for the first time
on Ubuntu 16.04 LTS (64-bit OpenJDK 1.8.0_111).

Technically everything works fine, except, unfortunately, that I can
hardly use the profiler GUI because everything is so tiny as to be
barely recognisable. My laptop has a high-resolution or ‘HiDPI’ screen
(it’s a Lenovo Yoga 900-13, resolution is 3200×1800).

I’ve had trouble before with software that wasn’t HiDPI-ready. Has
anyone managed to adapt the GUI for HiDPI on Ubuntu? Is there a flag for
this?

Thank you.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Adapt GUI for high-resolution (HiDPI) screen on Ubuntu L

Post by Anton Katilin »

Hi,

Please ensure you use the Linux bundle: https://www.yourkit.com/download
It contains Oracle JRE which in general runs UI better than OpenJDK.

Is the problem mostly with icons or with the fonts too?

Unfortunately, there is no way to make icons larger in this release. It is possible to increase font size. To do this, add these lines to ~/.yjp/ui.ini

-Dyjp.font.name=Dialog
-Dyjp.font.size=20

where 20 is the font size - try to choose appropriate size for your system.

Best regards,
Anton
aracapau
Posts: 2
Joined: Fri Dec 30, 2016 4:21 pm

Re: Adapt GUI for high-resolution (HiDPI) screen on Ubuntu L

Post by aracapau »

Hello Anton,

increasing the font size with -Dyjp.font.size=24 worked perfectly and
resolves this issue for me. The icons are still tiny but that is only a
cosmetic problem.

Thank you very much!

David
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Adapt GUI for high-resolution (HiDPI) screen on Ubuntu L

Post by Anton Katilin »

[Update]

The property names changed in the latest YourKit Java Profiler versions. The following should be used instead:

-Dyk.font.name=Dialog
-Dyk.font.size=24
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Adapt GUI for high-resolution (HiDPI) screen on Ubuntu L

Post by Anton Katilin »

[Update #2]

1. Please note that options

-Dyk.font.name=Dialog
-Dyk.font.size=24

are not applied (ignored) on Windows.

2. To tweak font size on all systems including Windows, upcoming v2019.8 build #116 introduces new option

-Dyk.font.scale=N

To make fonts larger, you likely need to try values 1.5, 2, 2.5 etc.
The default (i.e. automatically detected) scale value is reported in the profiler log file <user home>/.yjp/log/profiler-ui-<pid>.log as "calculated screenScale".
Post Reply