You are not logged in.

#1 2019-12-01 17:45:54

Blutkoete
Member
Registered: 2019-12-01
Posts: 6

[SOLVED] Password Dialog for Encrypted Luks On High DPI Display

I'm using a laptop with an encrypted file system (/boot not encrypted) together with grub. The laptop has a UHD display.

The text for the passphrase question for unlocking the root partition is really small. I already added the consolefont hook to mkinitcpio.conf, but the configured font only takes effect after I enter the password.

GRUB_GFXMODE is set to "auto" and GRUB_GFXPAYLOAD_LINUX is set to "keep".

My mkinitcpio.conf hooks are:

HOOKS=(base consolefont udev autodetect keyboard keymap modconf block encrypt lvm2 filesystems fsck)

I placed the consolefont hook behind base only for testing, before, it was between autodetect and keyboard.

Is there any way to apply the font already to the unlock root partition password dialog?

Last edited by Blutkoete (2019-12-06 11:09:02)

Offline

#2 2019-12-03 08:46:58

Blutkoete
Member
Registered: 2019-12-01
Posts: 6

Re: [SOLVED] Password Dialog for Encrypted Luks On High DPI Display

I've done some additional research and found out that while there appear a few (really a few) others that experienced this problem in the past [1,2,3,4], all those threads appear to end with no solution (one thread suggests it was working the past). [4] is from 2017 and back then the solution was to move the consolefont hook before the encrypt hook, which I did.

So it looks like I have to aim for either a workaround or finding out more about this myself.

I'll try to find out who is actually asking me the password question and why it is ignoring the consolefont hook.

[1] https://bbs.archlinux.org/viewtopic.php?id=236609
[2] https://www.reddit.com/r/archlinux/comm … sole_font/
[3] https://superuser.com/questions/1464149 … disk-in-de
[4] https://bbs.archlinux.org/viewtopic.php?id=231635

Last edited by Blutkoete (2019-12-03 08:50:51)

Offline

#3 2019-12-03 09:09:38

Blutkoete
Member
Registered: 2019-12-01
Posts: 6

Re: [SOLVED] Password Dialog for Encrypted Luks On High DPI Display

I found out that the problem only occurs when I boot linux-hardened, not when I boot linux (should have tried that earlier), and if I call lsinitcpio on  both, I see a difference: The hardened one contains consolefont.psfu, the other one consolfont.psf.

So this may be simply a feature of the hardened kernel I'm encountering here.

EDIT: I'll stop generating new posts now - sorry - and will just update this one if I find out something new of general interest*.

* As I perceive it - probably there is a wiki article I was simply not able to find.

Last edited by Blutkoete (2019-12-03 09:10:46)

Offline

#4 2019-12-03 10:30:15

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] Password Dialog for Encrypted Luks On High DPI Display

I have not used it myself but you could try using plymouth and plymouth-encrypt hooks to get a different password prompt and see if it is more to your taste

Offline

#5 2019-12-06 11:07:58

Blutkoete
Member
Registered: 2019-12-01
Posts: 6

Re: [SOLVED] Password Dialog for Encrypted Luks On High DPI Display

Thank you for the suggestion - maybe I'll try plymouth in the future, but for now I "solved" my problem and it was a real stupid user error:

I ran

mkinitcpio -p linux linux-hardened

all the time instead of the correct

mkinitcpio -p linux -p linux-hardened

(one -p per preset!)

and so the upgraded font never actually reached the image.

But at least I learned a lot about mkinitcpio trying to resolve my problem.

So putting the consolefont before the encrypt hook is still the valid solution, just update your images correctly.

Last edited by Blutkoete (2019-12-06 11:10:09)

Offline

Board footer

Powered by FluxBB