hidpi scaling stopped working with 28.1?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
odeon
Posts: 57
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

hidpi scaling stopped working with 28.1?

Post by odeon »

Hi,

I run Ubuntu 25.10 and KDE Plasma on a laptop with a 4k screen. In earlier versions of oXygen (28 and below) I've used a custom_commons.vmoptions file in the install folder with sun.java2d.uiScale set to 2, which has worked brilliantly. When docked, I don't use scaling. But the other day I eagerly upgraded to 28.1 and then went on a trip, set scaling to 2, and opened oXygen 28.1 mid-flight.

It seems that custom_commons.vmoptions is no longer recognised. I get a tiny, unscaled UI.

Now, I'm running KDE Plasma and have had some issues (see common-problems/topic27696.html), so I thought I'd check Gnome, just to be safe, but Gnome has the same problem. No matter what I do in custom_commons.vmoptions, the thing won't scale and I am left with a tiny UI.

The only thing I can think of, right now, is that since KDE and the install UI don't like each other I've run the -q argument. It uninstalled the old 28, but seems to have installed 28.1 in the 28 directory in /opt. Pretty sure older installs differentaited between the integers and the decimal upgrades -- there should have been a 28.1 directory.

But that's just grasping at straws.

I'd appreciate any help.

And, as always, thanks for a great product.

/Ari
adrian
Posts: 2900
Joined: Tue May 17, 2005 4:01 pm

Re: hidpi scaling stopped working with 28.1?

Post by adrian »

HI,

I've asked QA to check into this (we test on Ubuntu 24 though). Until I have a confirmation, can you please also double check the file name (custom_commons.vmoptions), file permissions (read for the running user) and that you are starting Oxygen using the versioned script (oxygen28.1) or launchers.
If you have created the file again, also check the file contents, should be:

Code: Select all

-Dsun.java2d.uiScale=2
After starting Oxygen check in Help > About, System properties, if sun.java2d.uiScale is set.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
odeon
Posts: 57
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: hidpi scaling stopped working with 28.1?

Post by odeon »

Hi Adrian,

I've tested both launchers and the versioned scripts. The file isn't new, I keep it handy for any new oXygen install, so unless the spelling has changed I should be fine (and it seems it hasn't). The file permissions are the same as they've always been:

-rw-r--r-- 1 root root 26 Mar 23 13:52 custom_commons.vmoptions

And no, the sun.java2d.uiScale is not set in System Properties.

Thanks,

/Ari
adrian
Posts: 2900
Joined: Tue May 17, 2005 4:01 pm

Re: hidpi scaling stopped working with 28.1?

Post by adrian »

Hi,

I can confirm that "custom_commons.vmoptions" is not working in Linux with v28.1. We're currently investigating, but it seems to be an install4j 12 bug that we didn't catch during testing. We will fix this in the next maintenance build of v28.1.
Quick workaround would be to just pass that argument (prefixed with -J) to Oxygen when you start it:

Code: Select all

./oxygen28.1 -J-Dsun.java2d.uiScale=2
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
odeon
Posts: 57
Joined: Mon Mar 12, 2007 1:56 am
Location: Sweden

Re: hidpi scaling stopped working with 28.1?

Post by odeon »

Thanks.
Best,
/Ari
Post Reply