Skip to content

u/IRunArchLinuxBTW

In this archive from Mar 2020 to Nov 2022

7
posts
8
comments
0
media
66
score

Top posts

High DPI issue: 96 DPI is too small, 128 DPI is too big, 112 DPI is perfect, but Chromium and Electron programs don't support it

Hello! I have a small 1080p monitor. I'm using the KDE System Settings interface to change the "Fonts DPI" value as suggested by the ArchWiki. The default DPI setting (96 DPI) is a bit too small: I struggle at reading text. 128 DPI is a bit too large: everything becomes way too big and too few windo...

25 points13 comments
Open on Reddit

Running the same Arch Linux installation both natively on my computer and in a Virtual Machine (hyper-v?)

My computer broke so I put my hard drive in my sister's until I get a new one. Now she has two disks: hers with her Windows 10 and its ESP partition, and mine with my Arch and my ESP partition. My Arch partition is encrypted with LUKS. I put my hard drive offline in my sister's OS, then added it to...

8 points10 comments
Open on Reddit

A stop job is running...

This is a common problem, I searched and found many results, but most are outdated and no longer work. Sometimes when I try to turn off my computer, it hangs for a few minutes showing: A stop job is running for Session ${n} of user ${user} It's because some process refuses to terminate. I don't reme...

4 points1 comments
Open on Reddit

Top comments

It seems like it's working. Using --force-device-scale-factor=1.16 gives me what I want. Thank you.

It's very weird though. It looks like Chrome based applications support Xft.dpi too, just like the GTK applications do, but only for 96 DPI (scale factor 1) and for 128 DPI (scale factor 1.333). Nothing in between. While with --force-device-scale-factor it's possible to use values in between too.

​

Would you know whether it's possible to set the scale factor value in an environment variable or configuration file? Having to add it to the command line of every Chrome-based application one by one sounds stupid.

6 points

I'm confused since Linux/X.org DPI has been dynamic since the age of CRT monitors.

I'm not sure. According to the ArchWiki most program use xrdb's Xft.dpi. It mentions using the value from xdpyinfo, but it makes it sound like that method is deprecated:

Some programs may still interpret the DPI given by the X server (most interpret X Resources, though, directly or indirectly). Older versions of i3 (before 2017) and Chromium (before 2017) used to do this.

​

In any case, it doesn't matter to me why these choices were made: I'm happy to manually set Xft.dpi to my favorite value.

The problem is that Chromium doesn't support any value between 97 and 127. I guess it wouldn't support those values even if it computed the DPI automatically from xdpyinfo.

2 points

The idea of installing Arch in a VM and then copying it to a disk once everything works is very smart.

However I'd be afraid I might run into a number of new issues... How do you copy the disk image over the network, SSH? If the new machine doesn't have enough RAM (eg. less than 4GB), the disk image may not fit in the Arch Live's in-memory filesystem. And the UUIDs are going to be different and you'll have to fix them...

A midway approach that may work better for me, is to first try an installation in a virtual machine with the new software I'm trying for the first time (luks and rEFInd, in this case), and then do a clean install on the new hardware using the knowledge and experience I made.

1 points

EFI, ESP, GPT etc are simple concepts and I understand them well.

What I have problems with is making it work: there are too many alternatives and options and things that could go wrong, and almost no way to debug it or understand what went wrong.

I just installed a Arch with full system encryption (LUKS) and rEFInd. It's the first time I tried these two things. These are issues I ran into:

  • Initially I placed my initramfs etc (the `/boot/` directory) in a `/arch/` directory on the ESP. `refind-install` found it (it created a `refind_linux.conf` in that directory), but then rEFInd wouldn't show any option to boot Arch.
    Eventually I figured out that the location of that directory was a problem: I moved it to `/EFI/arch/` on the ESP and only at that point rEFInd could find it.
    This is documented nowhere. I had to blindly try random stuff and had to reboot like 5 times before getting it right.
  • Then it took me 2 reboots to add all the mkinitcpio hooks I needed. It's a bit confusing having to choose between the `udev` and the `systemd` hooks and for instance I didn't realize that `sd-vconsole` was needed (thought that the default value of us keyboard and default font was OK).
  • Then it took me a few more attempts to make LUKS work. The documentation is a bit confusing and scattered: `udev` and `systemd` use different parameters and it's not completely obvious to understand what options and values to use.
    By mistake I used `rd.luks.name=**UUID=**XXXX=cryptroot` instead of `rd.luks.name=XXXX=cryptroot` (I found the former syntax somewhere on the internet) and nothing was telling me that the syntax/name I had used was wrong. All I could see was that the kernel wouldn't ask me for a password and try to mount a non-existing `/dev/mapper/cryptoor`. It was a friend who spotted the issue after I begged him for help and he compared my options with his.

Do you think I could have figured out and fixed this kind of problems with fewer attempts and reboots, considering that I'm new to both LUKS and rEFInd? How?

I probably had to reboot into the live CD 10 times, and every attempt took me almost 10 minutes (a long wait for the Arch Live to boot, then opening the luks device, mounting the various partitions, chrooting etc without any bash history).

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.