?
sc(4)is for
text mode. As a reminder - text mode is what you get when you boot a fresh install of FreeBSD for the first time,
before you install any packages like
editors/nano or
x11/xorg. And the Philips monitor you have (I assume it's local, not remote) - it's more than enough to display the command-line interface, a.k.a. text mode.
As next routine step in server maintenance, I have a small time to trying another one time to resolve the issue: now I have
In
/boot/loader.conf.local
Code:
i915kms_load="NO"
mga_load="YES"
vesa_load="YES"
#hw.vga.textmode="1"
kern.vty=sc
#kern.vt.fb.default_mode="1024x768"
#screen.textmode="1"
#vbe_max_resolution="1024x768"
In
/boot/device.hints
# $FreeBSD$
Code:
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
hint.sc.0.at="isa"
hint.sc.0.flags="0x0080"
hint.sc.0.vesa_mode="285"
hint.vga.0.at="isa"
And as result of
vidcontrol -I mode
command:
Code:
mode# flags type size font window linear buffer
------------------------------------------------------------------------------
0 (0x000) 0x00000001 T 40x25 8x8 0xb8000 32k 32k 0x00000000 32k
1 (0x001) 0x00000001 T 40x25 8x8 0xb8000 32k 32k 0x00000000 32k
2 (0x002) 0x00000001 T 80x25 8x8 0xb8000 32k 32k 0x00000000 32k
3 (0x003) 0x00000001 T 80x25 8x8 0xb8000 32k 32k 0x00000000 32k
4 (0x004) 0x00000003 G 320x200x2 C 8x8 0xb8000 32k 32k 0x00000000 32k
5 (0x005) 0x00000003 G 320x200x2 C 8x8 0xb8000 32k 32k 0x00000000 32k
6 (0x006) 0x00000003 G 640x200x1 C 8x8 0xb8000 32k 32k 0x00000000 32k
13 (0x00d) 0x00000003 G 320x200x4 4 8x8 0xa0000 64k 64k 0x00000000 256k
14 (0x00e) 0x00000003 G 640x200x4 4 8x8 0xa0000 64k 64k 0x00000000 256k
16 (0x010) 0x00000003 G 640x350x2 2 8x14 0xa0000 64k 64k 0x00000000 128k
18 (0x012) 0x00000003 G 640x350x4 4 8x14 0xa0000 64k 64k 0x00000000 256k
19 (0x013) 0x00000001 T 40x25 8x14 0xb8000 32k 32k 0x00000000 32k
20 (0x014) 0x00000001 T 40x25 8x14 0xb8000 32k 32k 0x00000000 32k
21 (0x015) 0x00000001 T 80x25 8x14 0xb8000 32k 32k 0x00000000 32k
22 (0x016) 0x00000001 T 80x25 8x14 0xb8000 32k 32k 0x00000000 32k
23 (0x017) 0x00000021 T 40x25 8x16 0xb8000 32k 32k 0x00000000 32k
24 (0x018) 0x00000021 T 80x25 8x16 0xb8000 32k 32k 0x00000000 32k
26 (0x01a) 0x00000003 G 640x480x4 4 8x16 0xa0000 64k 64k 0x00000000 256k
27 (0x01b) 0x00000003 G 640x480x4 4 8x16 0xa0000 64k 64k 0x00000000 256k
28 (0x01c) 0x00000003 G 320x200x8 P 8x8 0xa0000 64k 64k 0x00000000 64k
30 (0x01e) 0x00000021 T 80x50 8x8 0xb8000 32k 32k 0x00000000 32k
32 (0x020) 0x00000021 T 80x30 8x16 0xb8000 32k 32k 0x00000000 32k
34 (0x022) 0x00000021 T 80x60 8x8 0xb8000 32k 32k 0x00000000 32k
37 (0x025) 0x00000003 G 320x240x8 V 8x8 0xa0000 64k 64k 0x00000000 256k
112 (0x070) 0x00000001 T 80x43 8x8 0xb8000 32k 32k 0x00000000 32k
113 (0x071) 0x00000001 T 80x43 8x8 0xb8000 32k 32k 0x00000000 32k
256 (0x100) 0x0000000f G 640x400x8 P 8x16 0xa0000 64k 64k 0xdd000000 250k
257 (0x101) 0x0000000f G 640x480x8 P 8x16 0xa0000 64k 64k 0xdd000000 300k
258 (0x102) 0x0000000b G 800x600x4 4 8x14 0xa0000 64k 64k 0x00000000 234k
259 (0x103) 0x0000000f G 800x600x8 P 8x16 0xa0000 64k 64k 0xdd000000 468k
261 (0x105) 0x0000000f G 1024x768x8 P 8x16 0xa0000 64k 64k 0xdd000000 768k
263 (0x107) 0x0000000f G 1280x1024x8 P 8x16 0xa0000 64k 64k 0xdd000000 1280k
266 (0x10a) 0x00000009 T 132x43 8x8 0xb8000 32k 32k 0x00000000 5k
272 (0x110) 0x0000000f G 640x480x16 D 8x16 0xa0000 64k 64k 0xdd000000 600k
273 (0x111) 0x0000000f G 640x480x16 D 8x16 0xa0000 64k 64k 0xdd000000 600k
274 (0x112) 0x0000000f G 640x480x32 D 8x16 0xa0000 64k 64k 0xdd000000 1200k
275 (0x113) 0x0000000f G 800x600x16 D 8x16 0xa0000 64k 64k 0xdd000000 937k
276 (0x114) 0x0000000f G 800x600x16 D 8x16 0xa0000 64k 64k 0xdd000000 937k
277 (0x115) 0x0000000f G 800x600x32 D 8x16 0xa0000 64k 64k 0xdd000000 1875k
278 (0x116) 0x0000000f G 1024x768x16 D 8x16 0xa0000 64k 64k 0xdd000000 1536k
279 (0x117) 0x0000000f G 1024x768x16 D 8x16 0xa0000 64k 64k 0xdd000000 1536k
280 (0x118) 0x0000000f G 1024x768x32 D 8x16 0xa0000 64k 64k 0xdd000000 3072k
281 (0x119) 0x0000000f G 1280x1024x16 D 8x16 0xa0000 64k 64k 0xdd000000 2560k
282 (0x11a) 0x0000000f G 1280x1024x16 D 8x16 0xa0000 64k 64k 0xdd000000 2560k
284 (0x11c) 0x0000000f G 1600x1200x16 D 8x16 0xa0000 64k 64k 0xdd000000 3750k
285 (0x11d) 0x0000000f G 1600x1200x16 D 8x16 0xa0000 64k 64k 0xdd000000 3750k
##############################——-#
And
partially success are in that monitor OSD menu really show that display work in 1600x1200@60Hz mode.
So seems that settings in /boot/device.hints working correct with mga.ko driver.
BUT!
Screen output of bpytop are unreadable (see attached picture).
Seems that something related to screen fonts, that bpytop not able to recognize or using correctly:
from sc(4) page
https://www.freebsd.org/cgi/man.cgi?query=sc&sektion=4
Any idea how to fix that ?
Software Font
For most modern video cards, e.g., VGA, the syscons driver and the video card driver allow the user to change the font used on the screen. The
vidcontrol(1)command can be used to load a font file from /usr/share/syscons/fonts.
The font comes in various sizes: 8x8, 8x14 and 8x16. The 8x16 font is typically used for the VGA card in the 80-column-by-25-line mode. Other video modes may require different font sizes. It is better to always load all three sizes of the same font.
You may set font8x8, font8x14and font8x16 variables in /etc/rc.conf to the desired font files so that they will be automatically loaded when the system starts up.
Optionally you can specify a particular font file as the default. See the SC_DFLT_FONT option below.
ScreenMap
If your video card does not support software fonts, you may still be able to achieve a similar effect by re-mapping the font built into your video card. Use
vidcontrol(1)to load a screen map file which defines the mapping between character codes.