Where/when does a Linux system change the console display mode?

einpoklum asked:

I’m installing Debian Wheezy (7.0rc1) on a box of mine. For reasons I won’t go into here, I don’t want the framebuffer to be used for the console display during boot (nor afterwards). To avoid this, I added:

GRUB_TERMINAL=console
GRUB_GFXPAYLOAD_LINUX=keep

to /etc/default/grub. And indeed, I get text mode in grub, and for the first couple of seconds when booting. But then, the console switches to that infernal framebuffer! :

[    4.407402] Console: switching to colour frame buffer device 128x48
[    4.408544] fb0: nouveaufb frame buffer device

(that’s an excerpt from /var/log/dmesg.)

I couldn’t find a trace of it anywhere in the /etc/init.d scripts. I thought maybe it has something to do with kernel modules loading – I didn’t find anything interesting in /etc/modules or /etc/modprobe.d either.

So, when/where does this happen? And how can I avoid this switch?

My answer:


Append the following to the kernel command line:

vga=normal nomodeset

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.