4K suport for Ubuntu 18.04

Support for Ubuntu and other Desktop Linux distributions
Post Reply
antisgae
Posts: 13
Joined: 29 Aug 2018, 22:48

4K suport for Ubuntu 18.04

Post by antisgae »

I'm using a ubuntu 18.04 and a 4K monitor, seems automatically filebot uses system config for fonts, but not for the rest of the gui, icons are small, and the most important, like fonts gets bigger but not the height of the lines where the names of the episodes are handled, the fonts are bigger and you can see only a small portion of the text.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 4K suport for Ubuntu 18.04

Post by rednoah »

1.
Please provide sysinfo output and screenshots.


2.
Java 9 and above should have improved support for HiDPI. It works on Windows and MacOS but effectively untested on Linux because I don't have a 4K monitor and I haven't found any options to simulate HiDPI mode on Gnome or KDE. Might work. Might not. Might be possible to to force things with Java properties such as -Dsun.java2d.uiScale=2 maybe.
:idea: Please read the FAQ and How to Request Help.
deerewright
Posts: 4
Joined: 15 Apr 2020, 02:54

Re: 4K suport for Ubuntu 18.04

Post by deerewright »

I am running Pop!_OS 19.04 and Filebot 4.9.1. with Openjdk 11. I already have 200% scaling on a 3200x1800 display, but filebot does not seem to honor the scaling. I found that if I run

Code: Select all

 GDK_SCALE=2 filebot
it scales properly for me. So, I added "export GDK_SCALE=2" to the beginning of /usr/share/filebot/bin/filebot.sh, now it scales properly every time I start filebot.

If anyone has a better/more appropriate way, please reply.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 4K suport for Ubuntu 18.04

Post by rednoah »

rednoah wrote: 30 Aug 2018, 08:50 Might be possible to to force things with Java properties such as -Dsun.java2d.uiScale=2 maybe.
Have you tried this yet?
:idea: Please read the FAQ and How to Request Help.
deerewright
Posts: 4
Joined: 15 Apr 2020, 02:54

Re: 4K suport for Ubuntu 18.04

Post by deerewright »

rednoah wrote: 15 Apr 2020, 05:15
rednoah wrote: 30 Aug 2018, 08:50 Might be possible to to force things with Java properties such as -Dsun.java2d.uiScale=2 maybe.
Have you tried this yet?
No, I haven't. Where/how do I enter Java properties?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: 4K suport for Ubuntu 18.04

Post by rednoah »

deerewright wrote: 16 Apr 2020, 12:48 Where/how do I enter Java properties?
You can pass them onto FileBot via the JAVA_OPTS environment variable:

Code: Select all

export JAVA_OPTS="-Dsun.java2d.uiScale=2"
You can set system-wide environment variables like so:
https://help.ubuntu.com/community/Envir ... nvironment


:idea: Using GDK_SCALE is equally appropriate and will affect all GDK applications.
:idea: Please read the FAQ and How to Request Help.
deerewright
Posts: 4
Joined: 15 Apr 2020, 02:54

Re: 4K suport for Ubuntu 18.04

Post by deerewright »

Forgive my ignorance, but is the JAVA_OPTS environment variable you cite system wide? In other words, would it affect all other Java apps? If so, I would rather have it just affect Filebot. (Most of my other java apps are scaling as desired.) Would placing

Code: Select all

export JAVA_OPTS="-Dsun.java2d.uiScale=2"
into the filebot.sh file work?

Thanks again for your help.
deerewright
Posts: 4
Joined: 15 Apr 2020, 02:54

Re: 4K suport for Ubuntu 18.04

Post by deerewright »

Answered my own question. I did add it to filebot.sh. Works perfectly. THANKS!
Post Reply