Page 1 of 1
4K suport for Ubuntu 18.04
Posted: 30 Aug 2018, 08:43
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.
Re: 4K suport for Ubuntu 18.04
Posted: 30 Aug 2018, 08:50
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.
Re: 4K suport for Ubuntu 18.04
Posted: 15 Apr 2020, 03:06
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
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.
Re: 4K suport for Ubuntu 18.04
Posted: 15 Apr 2020, 05:15
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?
Re: 4K suport for Ubuntu 18.04
Posted: 16 Apr 2020, 12:48
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?
Re: 4K suport for Ubuntu 18.04
Posted: 16 Apr 2020, 13:22
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

Using
GDK_SCALE is equally appropriate and will affect all GDK applications.
Re: 4K suport for Ubuntu 18.04
Posted: 16 Apr 2020, 14:08
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.
Re: 4K suport for Ubuntu 18.04
Posted: 16 Apr 2020, 14:26
by deerewright
Answered my own question. I did add it to filebot.sh. Works perfectly. THANKS!