4 ms·
So kernel GPU driver uses some special bitmap font to render in framebuffer? And how is it working before the GPU driver kicks in and where is that older font c
by shmerl 9y ago
So kernel GPU driver uses some special bitmap font to render in framebuffer? And how is it working before the GPU driver kicks in and where is that older font coming from?
- digi_owl 9y agoLikely the graphics card ROM. https://en.wikipedia.org/wiki/VGA-compatible_text_mode https://en.wikipedia.org/wiki/VGA-compatible_text_mode
- slededit 9y agoWhen a PC first starts it's essentially an origina IBM PC from the 80s including the original text mode and built in fonts. You can write text in this mode literally by copying ascii characters to a specific memory address. The hardware handles the job of actually putting characters on the screen.
- rbanffy 9y ago> When a PC first starts it's essentially an origina IBM PC from the 80s including the original text mode and built in fonts. Thanks. Now I feel dirty for touching my modern MacBook and imagining that IBM horror inside it.
- slededit 9y agoI believe macs are UEFI only and so may not contain most of the old peripherals. This is only required for legacy BIOS booting.
- dfox 9y agoModern kernel GPU driver knows enough about the GPU to switch video modes (and usually also enough to detect connected monitors) and setup some kind of linear framebuffer mode. The first font used for FB-emulated console is statically linked into relevant module and usually gets replaced with more complete font by initramfs code. IIRC on my desktop the switch to graphical mode happens about 300ms after loading the kernel. Funnily enough grub2 before that also runs in 4k graphics mode, which given the 8x16px font is somewhat absurd (and the screen redraw is slow enough that you can see that it for some reason happens from bottom to top) Edit: this is with amdgpu, but both intel, nouveau and ATI rage XL on server motherboards (which is somehow suboptimal :)) behave similarly on debian. Maybe with nvidia driver you still get native text mode on consoles (for a long time nvidia driver was known to interfere with operation of linux framebuffer infrastructure, but I don't known how this works today).
- shmerl 9y ago> IIRC on my desktop the switch to graphical mode happens about 300ms after loading the kernel. Funnily enough grub2 before that also runs in 4k graphics mode, which given the 8x16px font is somewhat absurd (and the screen redraw is slow enough that you can see that it for some reason happens from bottom to top) Yeah, I noticed that. GRUB font looks similar to the one that's rendered after the kernel GPU driver takes over. I also noticed during boot (when systemd messages are showing up) a transition with amdgpu (RX 480, Polaris) where it displays a color mess for a split moment, and redraws the screen in new font after that. Never saw that with Intel. I haven't used Nvidia in a while, but their blob doesn't support proper framebuffer if I remember correctly, so it causes an ugly resolution during boot.
- dfox 9y agoOn Bonaire (no idea what the card is as I bought it on the basis of being supported by amdgpu and having right combination of outputs and nothing else) I don't get mess for split second, but after the switch to graphical mode first two lines are partialy replaced by randomly colored special characters.
- jlgaddis 9y agoThis happens on my desktop/workstation as well (w/ NVIDIA cards) but only when using UEFI. It doesn't occur when using legacy/BIOS mode. I've got two ThinkPads sitting here as well and it doesn't happen on them. One has Optimus (Intel+NVIDIA), the other just has built-in Intel graphics; both are using legacy/BIOS mode. I haven't tested it using UEFI.