Skip to content

Instantly share code, notes, and snippets.

@nstarke
Last active September 9, 2025 15:58
Show Gist options
  • Save nstarke/baa031e0cab64a608c9bd77d73c50fc6 to your computer and use it in GitHub Desktop.
Save nstarke/baa031e0cab64a608c9bd77d73c50fc6 to your computer and use it in GitHub Desktop.
Resize Ghidra GUI for High DPI screens

Resize Ghidra for High DPI screens

If you run Ghidra on a high DPI screen, you will probably find the GUI to be scaled down so small to be almost of no use.

There is a setting that you can adjust to scale the Ghidra GUI:

in $GHIDRA_ROOT/support is a file named launch.properties. In this launch.properties file is the following configuration key:

VMARGS_LINUX=-Dsun.java2d.uiScale=1

Change this line to:

VMARGS_LINUX=-Dsun.java2d.uiScale=2

Then launch ghidra and you should be good to go!

@ahmad-wahyudin
Copy link

I'm using Ghidra 11.3, my system is Fedora 41 KDE Plasma 6.3.
Why fractional scaling is not working in my system?
I try 1.1, 1.25, 1.5, and 1.9 it not scaling
Scale to 2 is too big for me
Please help..

@kjhota123
Copy link

I'm using Ghidra 11.3, my system is Fedora 41 KDE Plasma 6.3. Why fractional scaling is not working in my system? I try 1.1, 1.25, 1.5, and 1.9 it not scaling Scale to 2 is too big for me Please help..

I did not test myself but have you tried switching from Wayland to X11, or from X11 to Wayland and see if changes anything? once again, I don't have KDE so I have not tested anything, it's nothing more but a guess

@ahmad-wahyudin
Copy link

I think Fedora 41 abandoned x11, it's not worthed installing x11 in fedora only for testing it. i afraid there is will be broken package

@Utsukushii42
Copy link

thanks !

@Renari
Copy link

Renari commented Sep 9, 2025

VMARGS_LINUX=-Dsun.java2d.uiScale=1.5

did the trick for me, thanks

@Renari
Copy link

Renari commented Sep 9, 2025

VMARGS_LINUX=-Dsun.java2d.uiScale=1.5

did the trick for me, thanks

No clue what changed, but 1.5 was working for me and now I see the tons of posts saying fractional scaling doesn't work. Now I'm in the same boat, it worked originally and now it only works at 1.0 or 2.0, 1.5 no longer does anything and just gets truncated to 1 it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment