Skip to content

Instantly share code, notes, and snippets.

@nstarke
Last active April 19, 2025 04:57
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!

@nacnud-sco
Copy link

If we can do this with a config file parameter, it should be something the program can work out on the fly and just "fix". Anyway, great call. Works on W11. Thanks!!

@ariankordi
Copy link

All this does for me is just make the window 2x larger without making it any clearer - in fact, it's still scaling that 2x window. I have not found a single other person report this nor have I found a way to make GNOME not scale certain Xwayland windows, because I'm sure that Xwayland or GNOME is doing it.

@Ambiophonique
Copy link

Ambiophonique commented Dec 22, 2024

VMARGS_LINUX=-Dsun.java2d.uiScale=1 is too small

VMARGS_LINUX=-Dsun.java2d.uiScale=2 is too big

difficult to adjust with no decimal value

@kjhota123
Copy link

Any way to have fractional scaling?

necroposting, but fractional scaling is now working as of Ghidra version 11.2.1 at least

@yvesb04
Copy link

yvesb04 commented Jan 28, 2025

In wayland it is very blurry at 125%, using gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer', 'xwayland-native-scaling']" seems to work in scaling the text properly at highdpi but all icons and UI is very small, is there any way to have fractional scaling and non blurryness for highDPI screens?

Any way to have fractional scaling?

necroposting, but fractional scaling is now working as of Ghidra version 11.2.1 at least

did you manage to get this fractional scaling without it being blurry?

@kjhota123
Copy link

kjhota123 commented Jan 28, 2025

necroposting, but fractional scaling is now working as of Ghidra version 11.2.1 at least

did you manage to get this fractional scaling without it being blurry?

I am using VMARGS_LINUX=-Dsun.java2d.uiScale=1.25 on Fedora 41, GNOME 47, my monitor is 1360x768, the text has a good anti-aliasing and a reasonable readability in general considering the limits of both my monitor and the user interface of Ghidra so it doesn't seem blurry to me, however icons still remain limited by their low bitmap resolution and the UI/UX of Ghidra so they don't seem to scale up at all

@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 !

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