Solved uefi How to set console text resolution mode config?

Hello,

I've spent hours for solving following situation, but without success.

On my htpc-system (uefi only) I've found out, that I've to boot in framebuffer resolution "mode 3" to use scfb-driver from xorg with correct resolution 1920x1080.

1. escape to loader prompt
2. typing mode to get an overview of possible modes
3. typing mode 3 [RETURN]
4. typing boot [RETURN]
This starts machine in correct framebuffer resolution 1920x1080. But I want to store this.

I've found this Howto to set string "mode 3" in /boot/loader.rc.local
Code:
[holger@luchs ~]$ less /boot/loader.rc.local
mode 3
[holger@luchs ~]

But it does not help, machine starts with wrong resolution 1024x768 and xorg session is not usable with scfb-driver.

How to set it in a correct way?

Kind regards
Holger
 
Hello,

thanks for your hint - but it doesn't help, machine still boots with wrong fb resolution 1024x768.

This working boot code "mode 3", I've to set manually .... isn't there any other place to set this (like options as "quiet" etc. in grub2 for startig linux kernel image)?

It is a little bit annoying to set this "mode 3" manually every time when restarting system.

Maybe /boot/loader.rc.local is the wrong place in new FreeBSD 12.x when using uefi. The Howto, I've read refers to FreeBSD 11.x. And in this case the handbook does not help.

On my HP Laptop with modern Intel gpu I've also an uefi installation with FreeBSD 12.1, xorg and scfb-driver, and there I have nothing to do for getting correct fb resolution. Strange .....
 
I've found a solution - a "trial and error" solution :D

On my desktop system I've a nvidia card, and to avoid trouble when switching from xorg session to tty (black screen) I've set following to lines in /boot/loader.conf
Code:
hw.vga.textmode=1
kern.vty=vt

And this also helps here, now the boot prompt appears in correct high resulotion 1920x1080. I cannot explain, why this helps - but this solves my issue with fb resolution.
 
You can remove the kern.vty=vt, it's the default setting, no need to set it explicitly.
 
Back
Top