Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2023 10:37:56 +0200 (CEST)
From:      freebsd@oldach.net (Helge Oldach)
To:        void@f-m.fm (void)
Cc:        freebsd-stable@freebsd.org
Subject:   Re: configuring the console on 14-stable with hdmi-attached screen
Message-ID:  <202308260837.37Q8buP6088530@nuc.oldach.net>
In-Reply-To: <ZOix5o6iKcDwnuP6@int21h> from void at "25 Aug 2023 14:51:34"

next in thread | previous in thread | raw e-mail | index | archive | help
void wrote on Fri, 25 Aug 2023 15:51:34 +0200 (CEST):
> I can see there's "sc" and "vt" in the kernel but have never successfully 
> set a console screen font going by the handbook. In addition to the font
> being smaller, it'd be good to have it less blocky and for the usable screen to
> go to the full extent of the (1920*1080) screen. Right now there's like a 
> 3cm unusable margin all round. The kernel is unmodified GENERIC
> stable/14-n265022

For historical reasons I'm using "sc". Enabled by

| kern.vty="sc"

in /boot/loader.conf.

To select the proper resolution, in my case I've added

| hint.sc.0.flags="0x180"
| hint.sc.0.vesa_mode="0x160"

to /boot/device.hints. The correct VESA mode likely depends on your
graphics card. Mine is a VirtualBox VBoxSVGA on a 1920×1024 screen.

| vidcontrol -i mode </dev/ttyv0

is your friend determining the proper resolution.

Appropriate fonts I chose through:

| font8x16="iso-thin-8x16"
| font8x14="iso-8x14"
| font8x8="iso-8x8"

in /etc/rc.conf.d/syscons (/etc/rc.conf will do as well).

Kind regards
Helge



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308260837.37Q8buP6088530>