Changing console resolution on a system with only non-standard resolutions available

Hi everyone. I've been playing around with FreeBSD on a 2015 MacBook (MacBook8,1). It has an internal display with native resolution 2304x1440. When it boots from UEFI, the firmware however only presents a GOP resolution of 2560x1600, scaled to fit the display. However, once the i915kms driver gets loaded, it carries forward the 2560x1600 mode, but without the scaling, so the console ends up running off of the right and bottom edge of the screen. From inside a wayland compositor, the only mode the DRM device offers to support is the native 2304x1440 resolution, so everything's fine in a graphical session. I've been trying all variations of `efi_max_resolution`, `kern.vt.fb.default_mode`, and `vidcontrol` to get the text console to fit the screen, but the loader variables don't have any effect, and `vidcontrol -i mode` shows no modes available to switch to. Neither 2560x1600 nor 2304x1440 is in the set of standard modes `vidcontrol` looks for. I was curious, is it possible out-of-the-box to change the console resolution to something other than the fixed list of modes in the kernel?
 
Back
Top