调整Linux终端显示分辨率

来源:互联网 发布:特效拍摄软件 编辑:程序博客网 时间:2024/04/20 22:53

linux 默认cli (command line interface)分辨率一般都比较小,显示的字体很大,不太美观,有时还影响结果的显示(例如出现kernel panic)。所以有必要改变一下cli的分辨率。
计算机显示领域所用的分辨率的概念一般是指每英寸可显示的像素数,因为垂直分解度与水平分解度一般不同,所以分辨率一般用vertical resolution X horizontal resolution来表示,例如常见的1024 x 768.
另外一个影响显示效果的因素是色深(color depth)。它表示的是每个像素点所能表示的颜色数,表示的颜色越多,所用的存储空时越大。一般 8bit 可以表示 256颜色,16bit 可表示65536种颜色。
下面是linux下常用到的模式:
——————————————————————————————+
Colors ( depth)- 640x480- 800x600- 1024x768- 1280x1024- 1600x1200|
-------------------+---------+-----------+-----------+-------------+--------------|
256    ( 8 bit) |   769         771          773              775           796    |
32,768 (15 bit) |   784         787          790              793           797    |
65,536 (16 bit) |   785         788          791              794           798    |
16.8M (24 bit)  |   786         789          792              795           799    |
——————————————————————————————+

[root@localhost ~]# cat /etc/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18)
        root (hd0,0)
        kernel /vmlinuz-2.6.18 ro root=/dev/VolGroup00/LogVol00 vga=773
       initrd /initrd-2.6.18.img

一般设置771就可以老,(显示器22的)

本文出自 “Eo” 博客,请务必保留此出处http://68629315.blog.51cto.com/613987/142229