hi dpi

Fedora 26 / Gnome 3 Hi DPI Settings and Quirks

Thursday, August 24th, 2017 | Insights, Linux, Quirks, Tech-savvy | No Comments

I was about to release another “post-installation tasks” post when I thought it might be a good idea to focus on a specific topic first: Hi DPI (aka 4k resolution monitors) and how Fedora, my weapon of choice, is performing. Fedora ships with Gnome 3 on Wayland. So this will be my starting point.

Set-up Gnome to use Hi DPI mode

This sounds to easy. But rest assured, this is only the first general steps as a lot of apps, even Gnome (3.24.2) itself, does not respect / support this setting consistently. (here are two native Gnome examples of mixed Hi Res and Low Res components Example 1 Example 2)

Still, for me the overall experience is finally worth setting up a Hi DPI desktop environment.

Install Gnome Tweak Tool

$ sudo dnf install gnome-tweak-tool

Fire it up, go to “Window” and set the Hi DPI mode to 2x. (In the near future Gnome wants to support arbitrary scaling factors, on a per device i.e. monitor basis. Looking forward to that!) You may need to log in and out of your session for the setting to take effect.

Update 25.08.17 There is another Gnome setting, and after that Gnome itself renders just fine! Bliss! Thanks Michael Reinartz for pointing this out!

$ gsettings set org.gnome.desktop.interface scaling-factor 2

Apps that work well out of the box (on my machine)

Firefox 55.0.1
Thunderbird 52.2.1
Opera 47

and after the “Update 25.08.17” hint:
Audacious 3.8.2 (Winamp Interface)
Nautilus 3.24.2.1
Terminal 3.24.2

Apps that scale well after some handiwork

Chromium 60 (maybe Chrome – I don’t use it right now)
Chromium needs a special parameter: --force-device-scale-factor=2, just add it to a copy of the .desktop file in your personal user space.

cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications/

Put that parameter just behind the executable:

...
Exec=/usr/bin/chromium-browser %U --force-device-scale-factor=2
...

eclipse 4.7 Oxygen

I use a launch script for eclipse, just add export SWT_GTK3=0 to it. The export UBUNTU_MENUPROXY=0 fixed a problem with disappearing menus in eclipse. I can omit the entry without problems, I just leave it here in case you might need it.

#!/bin/bash
 
export SWT_GTK3=0
export UBUNTU_MENUPROXY=0
./eclipse/eclipse -showlocation

Apps that do not scale at all (yet)

Audacity 2.1.3
They say you need to recompile it with wxWidgets --with-gtk=3
@see http://wiki.audacityteam.org/wiki/Linux_Issues#Hi-DPI

Gimp 2.8
There are themes available with hi res icons but I will just wait for 2.9 as it should support Hi DPI natively.

Spotify 1.0.59.395
At least the full screen mode looks nice 😉

Conclusion

As you can see Hi DPI is still work in progress. Still, I figure Hi DPI usable by now and will not go back. Looking at a “printed screen” is just too amazing.

Hope I gave you some insights and if you have something to add just leave a comment. Thanks!

Tags: , , ,

Search

Categories