How to change the terminal display resolution in Linux

Source: Internet
Author: User
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.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.