How to fix UI Scaling in Linux

Imagine this, you’ve bought a shiny new monitor may be 28 inch or may be 32 inch with all the latest features and 4k resolution, or even 8k ! But little did you know before buying the monitor. Because all you have ever used is a 1080p monitor.

Now you have plugged in the monitor and turned your computer on like a happy little kid. But as soon as the monitor lit up, you discovered that you can’t see anything without squinting. Everything is so damn small ! The user interface, the fonts, the mouse pointer everything !!

Can you relate yourself with this penguin ? Good ! now read ahead.

I believe you’re using a desktop environment like KDE or GNOME. If you’re using a window manager like hyprland or i3 or dwm or something else, you already know a lot of advanced stuffs. So, this tutorial is not for you. You can figure out on your own !

If you’re using xorg, it will be easy for you. If you’re using wayland, it will be even easier for you. If you don’t know what wayland or xorg is, don’t worry, just run the following command in your terminal.

echo $XDG_SESSION_TYPE

As you can see I am running wayland. If you’re using xorg, you’ll see “x11” here.

If Wayland

If you are using KDE, open “System Settings” and click on “Display & Monitor” on the left sidebar. And then change the value of “Scale” to something like 150%. Whatever suits you.

Your changes should be applied immediately. No need to restart.

If X11

X11 also has the same scaling option, but the thing is, it is by a “whole number”, and not by fraction. Meaning, you can scale by 200%. 300% and so on. If you’re happy with 200%, it’s fine. But, If 200% is too big and 100% is too small, then you’ll need 150% or even 125%. But, 125% or 150% means you’re doing “Fractional Scaling”. Fractional scaling is not supported in X11. Wayland is newer protocol, so it supports Fractional scaling.

But worry not, it’s not the end of the world. For X11, we’ll change the “dpi” of the screen instead of doing the fractional scaling. Which will also work.

If you find the cursor is too small, change the cursor size from the cursor settings under “Global theme”.

Now, restart your computer to reflect all the changes you have made !

If you’re using any other desktop environment than KDE, the basic rule is simple, if you’re on X11, change the DPI from settings, if you’re using Wayland, change the scaling directly. But there are some distros which allows you to change the scaling in X11, for example Linux Mint. You can try that yourself and see if it works for you.

How to enable multilib and install Steam on Arch Linux

You know, with all the packages hanging out in the Arch User Repository (AUR), I thought I’d be cruising along smoothly. But, nope, this is Arch. It wouldn’t be Arch if I didn’t hit a wall where I had to pull something from a repository that wasn’t already enabled by default.

Enter the villain of this tale: the Steam client.

Now, even though my Steam Deck gets most of my love when it comes to gaming, there are a few games I just can’t resist playing on my Laptop (HP Omen 16). (Because let’s face it, sometimes bigger screens and higher frames per second are just too tempting.)

Steam, being its quirky self, wants the multilib repository enabled. Why? Because it loves 32-bit libraries, and Arch, being the ultra-modern, 64-bit hipster, doesn’t have them by default.

But hey, no drama. All you need to do is open up your trusty /etc/pacman.conf with your favorite text editor, un-comment a couple of lines, hit save, and run an update. Voila! Steam is ready to roll.

Nano is my go-to editor because I fear Vim. You can use vim if you’re brave enough ! Edit the following file:

sudo nano /etc/pacman.conf

Look for the line which says [multilib], better search for it.

See the little ‘#’ there ? That means the lines are commented out so it won’t be effective. We will just remove the ‘#’ from there. Oh! and do it for [multilib] section only, not [multilib-testing]. Unless of course you’re a space engineer and knows what you’re doing ! Your computer might be on fire or your cat might die ! I don’t know.

Now, save the file. We use control + O to save in nano. Use !wq if you’re a Vim fanatic.

Now, refresh the cache

sudo pacman -Syyu

Do you see there are 3 progress bars ? One for ‘core’, one for ‘extra’ and one for ‘multilib’ which we just enabled.

Now you can install and use packages from Multilib universe. Install Steam by typing the following command!

% pacman -S steam

Bye bye !

swoosh!!