Linux – Is it possible to boot an x86 Linux kernel using both 80×25 text mode consoles and VESA framebuffer consoles

bootlinuxterminal

The Linux kernel documents that you can choose to boot Linux with VESA framebuffer consoles instead of the default 80×25 text mode consoles.

For text application testing purposes, one may need both modes simultaneously. For instance, ALT+1 to ALT+3 in 80×25 text mode and ALT+4 to ALT+6 in framebuffer mode.

Is there a way to achieve dual mode text displays in a single boot?

Best Answer

If you boot the kernel in text mode (standard on x86), you can change the VESA mode after boot with vbetool, using the vbemode action.

If you boot the kernel in framebuffer mode (standard on non-x86), you can change the resolution at runtime with fbset.

When you press ALT+L, etc., the kernel probably sends SIGWINCH to the INIT process (pid 1). The default init program probably generates a kbrequest event, you may be able to pick up on that by modifying /etc/inittab and have init run a script that sets the mode for you.

Related Question