Re: Console screen resolution / font during initramfs
Hi,
On Tue, Jul 29, 2025 at 01:33:12PM -0400, Felix Miata wrote:
> Andy Smith composed on 2025-07-29 13:34 (UTC):
> > I found a bit of time to tinker yesterday but unfortunately no matter
> > what I put with video= always led to no difference and a log line
> > saying:
>
> > (video=1600x1200@119.82e)
> > kernel: [ 2.910222] i915 0000:00:02.0: [drm] User-defined mode not supported: "1600x1200": 119 340129 1600 1736 1912 2224 1200 1201 1204 1285 0x20 0x6
>
> > (video=1600x1200)
> > kernel: [ 2.973614] i915 0000:00:02.0: [drm] User-defined mode not supported: "1600x1200": 60 160961 1600 1704 1880 2160 1200 1201 1204 1242 0x20 0x6
>
> With a 15:10 2880x1920 display, I would not expect a 4:3 1600x1200 mode to
> be supported, though not impossible. Can you configure use of 1600x1200
> running in X? When you run xrandr in X11 or whatever its equivalent in Wayland
> is, is 1600x1200 a listed/supported mode?
Yes that mode is offered/usable in Wayland and yes xrandr also shows
that mode. There's xrandr output in the first post of this thread.
> Supported modes can also be found in
> /sys/class/drm/<output-name>/modes.
This however only shows the maximum resolution:
$ cat /sys/class/drm/card0-eDP-1/modes
2880x1920
2880x1920
The panel obviously must be capable of other modes because grub sets
one.
I think the vtys must be at this maximal resolution but with a larger
font to make it bearable, as when I run "fbset" in a vty it says
2880x1920.
> > What I observe during boot is:
>
> > 1. Absolutely minuscule text at grub menu, persisting up to and
> > including point of asking for LUKS passphrase
>
> Is your Grub menu a GUI configuration, or plain text? Mine on UEFI displays
> are all using ordinary text for a Grub menu that looks like about 44-48 lines
> tall and all but two characters of the full display width.
It's graphical.
> > 2. After LUKS passphrase given, screens to reset either font size or
> > resolution or both (hard to tell) into something a lot more readable.
> > This is still the scrolling text of the boot process.
>
> This may be plymouth at work. I never have it installed.[1] Try adding also
> to kernel cmdline noplymouth and/or plymouth.enable=0 and/or plymouth=0
> and see what happens. Alternatively, check if using encryption requires
> it, and if not, purge it.
Thanks, I'll give this a go later and see what happens.
> After some more experimenting,I think all you should need to do is set the
> FONTFACE= and FONTSIZE= to your preferences from the console-setup man page,
I think this was already set when I ran "dpkg-reconfigure
console-setup":
$ grep -Ev '^(#|$)' /etc/default/console-setup
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Lat15"
FONTFACE="Terminus"
FONTSIZE="16x32"
VIDEOMODE=
16x32 Terminus was the biggest font I could select from the list
provided, so I think I'm all set there.
> then run setupcon -f as root or with sudo or su - to enlarge the font used
> in your default display mode 2880x1920.
Right so I think that is where I am now - biggest font (16x32) is making
my default resolution 2880x1920 just about readable.
Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Reply to: