can't set virtual console resolution

when EFI booting my x250 Thinkpad into 14.3-RELEASE.

I have the resolution during boot via /boot/loader.conf
Code:
exec="gop set 2" # during boot, 800x600x32
kern.vt.color.0.rgb="#303000"
kern.vt.color.15.rgb="#00f000"
kern.vt.fb.default_mode="640x480x16" # has no effect

But not on the virtual terminals afterwards.

I know https://forums.freebsd.org/threads/drm-user-defined-mode-not-supported.96680/#post-710068, read
vt() and
Code:
$ cat /usr/local/etc/pkg/repos/kmods.conf
# https://forums.freebsd.org/threads/new-install-of-14-2.96276/#post-684792
FreeBSD-kmods: {
        enabled: yes,
        priority: 0,
        url: pkg+https://pkg.freebsd.org/${ABI}/kmods_quarterly_${VERSION_MINOR},
        signature_type: "fingerprints",
        fingerprints: "/usr/share/keys/pkg",
        mirror_type: "srv",
}
$ dmesg | fgrep drm
[drm] Got Intel graphics stolen memory base 0xce000000, size 0x2000000
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
lkpi_iic0: <LinuxKPI I2C> on drmn0
lkpi_iic1: <LinuxKPI I2C> on drmn0
lkpi_iic2: <LinuxKPI I2C> on drmn0
lkpi_iic3: <LinuxKPI I2C> on drmn0
lkpi_iic4: <LinuxKPI I2C> on drm1
lkpi_iic5: <LinuxKPI I2C> on drm2
lkpi_iic6: <LinuxKPI I2C> on drm4
[drm] Initialized i915 1.6.0 20201103 for drmn0 on minor 0
VT: Replacing driver "efifb" with new "drmfb".
name=drmn0 id=i915drmfb flags=0x0 stride=5504

Mind there is no connector.

How can I get consistent 800x600 on all virtual consoles?
 
Try setting efi_max_resolution="800x600" in /boot/loader.conf, see if that works better for you.

Code:
           efi_max_resolution

           vbe_max_resolution
                     Specify the maximum desired resolution for the EFI or VBE
                     framebuffer console.  The following values are accepted:

                     Value           Resolution
                     480p            640x480
                     720p            1280x720
                     1080p           1920x1080
                     1440p           2560x1440
                     2160p           3840x2160
                     4k              3840x2160
                     5k              5120x2880
                     WidthxHeight    WidthxHeight
loader.conf(5)
 
added
Code:
$ fgrep efi_ /boot/loader.conf
efi_max_resolution="800x600"
rebooted, no effect.
 
kern.vt.fb.default_mode="640x480x16" # has no effect
That one is wrong by the way, you only give it the resolution, not the number of color bits. So kern.vt.fb.default_mode="640x480"
 
thanks SirDice, changed to
Code:
$ fgrep 800x600 /boot/loader.conf
exec="gop set 2" # during boot, 800x600x32
# kern.vt.fb.default_mode="800x600x32"
kern.vt.fb.default_mode="800x600"
efi_max_resolution="800x600"
reboot, still no effect.
 
Back
Top