Boot messages become very tiny part way through boot

My monitor has a native resolution of 3840 x 2160.

During boot, the text is a reasonable size. Part way through the boot, the text becomes very tiny. I suspect that the system has figured out the native resolution and is using it. Once X11 comes up, I have a monitor configuration like this:

Section "Screen"
Identifier "Screen0"
Device "Card0"
SubSection "Display"
Modes "1920x1080"
EndSubSection
EndSection

After that, the text is again readable.

I do not yet understand the boot sequence enough to figure out who changes the resolution to the monitor's native resolution.

Can anyone give me a hint so I can make my boot messages readable again.

Thanks!
 
Can you describe your hardware, please? Specifically the GPU type and which DRM driver you are using.
 
Looks like the kms module changes the resolution.
Maybe try a different vt font to make things readable first using vidcontrol -f /usr/share/vt/fonts/<font file>
Terminus is larger than the default...
 
I think the Xorg DDX driver changes the resolution (on a laptop when i915kms loads mid-boot my external display turns on); it's also tiny text on the resolution switch (I guess max res on TTY? it might default 96 DPI/not be HiDPI friendly without manual config?)

If I kldunload or don't load i915kms my laptop keeps the lower-res/bigger text, but I wonder if there's a way to set that pre-DE resolution?
 
This occurs just after these messages (the last readable ones):

uhub3 on uhub2
uhub3: <VIA Labs, Inc. USB2.0 Hub, class 9/0, rev 2.10/7.04, addr 7> on usbus1
uhub3: MTT enabled

Looking in /var/log/messages, is see that what immediately follows is:

[drm] Got Intel graphics stolen memory base 0x4b800000, size 0x4000000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
i915/adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/i915/adlp_dmc_ver2_16.bin either
adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/adlp_dmc_ver2_16.bin either
i915_adlp_dmc_ver2_16.bin: could not load binary firmware /boot/firmware/i915_adlp_dmc_ver2_16.bin either
drmn0: successfully loaded firmware image 'i915/adlp_dmc_ver2_16.bin'
... some stuff that does not seem related ...
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
start FB_INFO:
height=2160 width=3840 depth=32
pbase=0x4000340000 vbase=0xfffffe00cd940000
name=drmn0 id=i915drmfb flags=0x0 stride=15360
end FB_INFO

And there it is, the i915kms driver changing the resolution to 3840x2160. I just need to find out if there is a way to tell it to use a different resolution.
One post suggested using set gop at boot time, but I am not sure if he was addressing the same situation. Trying that next.
 
what is the contents of /etc/rc.conf, specificially the "kld_list" line? If you have something that refers to i915kms or equivalent nvidia/amd that is likely the root cause
 
The kld_list in rc.conf is:

kld_list="i915kms hidraw hkbd fusefs"

I was able to fix the problem by adding this line to loader.conf.local in the /boot directory:

kern.vt.fb.default_mode="1280x720"

Thank you for your assistance. (I spent about 10 years, off and on, trying to get a FreeBSD desktop working. Once I discovered the forums, it got much, much easier.)
 
Back
Top