Console screen resolution / font during initramfs
Hi,
I have a Debian 12 laptop with quite a small screen which is quite high
DPI — 13" diagonal with resolution 2880x1920.
I like to remove "quiet" and "splash" from the kernel command line in
grub settings as I prefer to see all the text fly past. In this case
this is somewhat ruined by the fact that before the initramfs is done,
the text is microscopic on this display. This would include the part
where it asks me for my LUKS passphrase.
I think probably if I left "splash" in the command line then this would
show a nice image and a more friendly LUKS passphrase prompt, but I
don't really want to do that unless I absolutely have to. I'd rather
make the font bigger and/or resolution lower during the initramfs.
Is that possible?
I already found:
# dpkg-reconfigure console-setup
This appears to only take effect after the initramfs is done. The font
changes to the larger one I have selected there. It doesn't help me
during the initramfs.
I don't know what these variables in /etc/default/grub do, what their
valid values are or if they should be used at all in my situation:
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
("vbeinfo" is not a recognised command at my grub command line.)
# I don't know what this would do either.
#GRUB_GFXPAYLOAD_LINUX=keep
Possibly this DOES need to be a grub setting though as that will apply
until the userland does something else?
Based on this:
https://bbs.archlinux.org/viewtopic.php?id=292604
maybe I should be using the "video=" kernel command line?
The poster there is using
video=DP-2:1920x1080@59.96e
The top few lines of "xrandr" for me are:
XWAYLAND1 connected primary 2304x1536+1920+0 (normal left inverted right x axis y axis) 290mm x 190mm
2304x1536 119.95*+
2048x1536 119.95
1920x1440 119.97
1600x1200 119.82
(weird chosen resolution because I have it at 1.25x scale.)
I'm not sure what the display name would be. This gave me a bit more
info on that:
https://wiki.archlinux.org/title/Kernel_mode_setting#Forcing_modes
$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
DP-1: disconnected
DP-2: disconnected
DP-3: disconnected
DP-4: connected
eDP-1: connected
I've currently got an exteranl display attached by USB-C so I think that
might be DP-4 and my internal display would be eDP-1. So maybe I should
try:
video=eDP-1:1600x1200@119.82e
Anyone played with this sort of thing?
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Reply to: