Article Title: how to change the terminal display resolution in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories in Linux. To make the terminal have a certain resolution, the kernel must support framebuffer, at the same time, the vga parameter is passed to the kernel at startup.
The specific value to pass depends on your video card and the resolution you want to achieve.
The corresponding values can be obtained by querying the table below.
Colours 640x400 640x480x800 600x1024x768x1152 864x1280 1024x1600 4 bits (16 colors) |? ? 0x302? ? ? ? 8 bits (256 colors) | 0x300 0x301 0x303 0x305 0x161 0x307 0x31C 15 bits (32 K colors) |? 0x310 0x313 0x316 0x162 0x319 0x31D 16 bits (64 K color) |? 0x311 0x314 0x317 0x163 0x31A 0x31E 24 bits (16 M color) |? 0x312 0x315 0x318? 0x31B 0x31F |
After checking, in/boot/grub/menu. lst
Add vga = 0 x 3xx to the line of kernel
For example:
title Debian GNU/Linux, kernel 2.6.18-openvz-686 root (hd1,2) kernel /boot/vmlinuz-2.6.18-openvz-686 root=/dev/hdb3 ro vga=0x31A initrd /boot/initrd.img-2.6.18-openvz-686 |
Then reboot the boot machine and you will be OK.