288 points · by glandium · 8y ago · 97 comments
gsettings set org.gnome.desktop.interface scaling-factor 1
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
Some applications also depend on Xft and X root window DPI..Xresources:
Xft.dpi: 144
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.antialias: 1
Xft.rgba: none
Xcursor.size: 48
Xcursor.theme: Adwaita
xrandr dpi (in my i3 startup config): $ xrandr --dpi 144
I have a smaller secondary monitor. I just render it at 1.5x resolution and scale down: $ xrandr --output DP-2-2 --scale 1.5x1.5 --pos 0x0
At least for me, the result is perfect HiDPI support (Chrome, GTK, Qt and IntelliJ respect it).With the latest xrandr master, you can set nearest-neighbor using "--filter nearest", which should provide better results.
While Android, Windows, Qt/KDE and the web went with real fractional scaling,
GTK/Gnome, macOS and iOS went with just increasing the framebuffer size and scaling it down.
As result, when rendering a GTK app (be it a video player or a game like Minecraft) on a 4K screen at 1.5x scale, you're actually rendering it at 6K resolution, which utterly destroys performance.
The Windows and Qt approach has it's own issues with fractional pixel positions, and the resulting problem with mapping integer input coordinates to these. And of course, it doesn't work nice with legacy apps (Gnome has to handle X11 apps, that won't tell anything about the scale they work with. See also: Gimp).
FWIW, this is possible under X11 directly. Try running:
xrandr --scale 2x2I'm currently running KDEv5 and while I got 'most' of the scaling adjusted properly, this setting fixed the size of the tabs, and other annoyances I was experiencing on FireFox.
Thank-you.
So I keep Gnome at 1.0x, and Firefox at 1.25x, which as an extra bonus means that "80%" scaling takes Firefox back to native scale again.
I had to disable it because videos would not play for long without freezing either on the browser or vlc. Only a hard restart of the machine would resolve this.
It is not for the first time, that Fedora package had something enabled before the upstream package did: CSDs went the same way.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1585393
[2] https://bodhi.fedoraproject.org/updates/FEDORA-2018-2d42997a...
Also, without XWayland I have no artifacts when scrolling fast in long documents. Very nice :-)
[1] https://mozillagfx.wordpress.com/2018/11/15/webrender-newsle...
Let's face it, everyone is sick of Linux cruft and is waiting on Redox to clean things up. Everything will come soon.
I'm still postponing switch to Wayland, until major KWin bugs (like flickering one) are fixed.
Alas, setting about:config gfx.webrender.all to true results in the window being blank, if using it in native wayland mode.
Apparently there's some upstream improvements coming to kwayland that will help.
WebRender itself is very stable. So much so that it is on by default for beta users on Windows with Nvidia. Recent weeks have also saw much better memory usage.
KWin itslef still has this bug which is very irritating: https://bugs.kde.org/show_bug.cgi?id=387313
I see some work here: https://github.com/szeged/webrender/issues/198
Sway is really fast, I don't think the slowness is a problem with sway. I am wondering if my x220's Intel card is just too slow. I will try shortly on a much faster system.
I'm waiting to hear from someone running it under GNOME/Wayland before filing bugs, though.
That's sad though, because it means my x230 probably won't fare any better. Are you using modesetting or the SNA (xf86-video-intel) driver?
edit: don't mind me, it uses modesetting.
I'd imagine your GPU is very much considered legacy.
My T450s cost me ~$2700 new, and it is faster in some cases, but the cost/performance ratio just does not pay off to have such a expensive system these days.
Should also note, that because the x220 has a higher TDP than newer ultrabooks I can get a few things done faster. The last time I tried emacs compiles near 20 seconds faster on the x220 than a T450s.
I also found a neat hack, not related to the x220, but any laptop really. When I am waiting on long compiles I take a compressed air can and turn it upside down and jet the cool liquid into the heat sink. The temp drops and you can shave a bit of time off a compile or what not if you have the wherewithal to continue to deliver small shots of cool fluid. I mostly feel okay doing it because it is only a $150 laptop...
Now I've switched to a T470s which seems a good trade off between size, connectivity and performance. It's roughly the same size as my Macbook Air (13", 2014) but a little lighter, and has ports for HDMI, Ethernet, USB 3.0 x3, audio, USB-C/TB3 and dock connector. I only get maybe 6 hours on the battery which is a bit disappointing though...
The new usb-c side dock solution, worse keyboards, and the ultrabook form factor's thermal properties...
Please check your cooling setup and replace the thermal paste with something high quality if needed as what you are doing right now is dangerous.
Computers can now easily have a 10 year usable lifespan.
Heck Nvidia provides drivers for your modern kernel for devices all the way back to 2007.
Maybe 4x is your cut-off point for where it's worth it to upgrade?
Anything requiring server is in server.
[1]: https://docs.fedoraproject.org/en-US/fedora/f28/system-admin...
Many would say to just buy AMD, but the power consuption story isn’t that great