CentOS命令行模式下修改linux分辨率的方法

来源:互联网 发布:美橙互联域名转出 编辑:程序博客网 时间:2024/05/10 23:39

来自:http://www.centoscn.com/CentOS/config/2014/0222/2434.html

进入到/boot/grub/目录下,然后就可以看到里面有个名为menu.lst的文件,用vim将其打开,可以看到以下内容:

# grub.conf generated by anaconda 

# Note that you do not have to rerun grub after making changes to this file 
# NOTICE: You have a /boot partition. This means that 
# all kernel and initrd paths are relative to /boot/, eg. 
# root (hd0,0) 
# kernel /vmlinuz-version ro root=/dev/hda2 
# initrd /initrd-version.img 
#boot=/dev/hda 
default=0 
timeout=5 
gfxmenu (hd0,0)/message 
title RedFlag (2.6.22.6-1) 
root (hd0,0) 
kernel /vmlinuz-2.6.22.6-1 ro root=LABEL=/
vga=788 splash=silent (若没有vga,自己添加即可)
initrd /initrd-2.6.22.6-1.img

其中这个vga=788就是控制你的分辨率与色彩模式的,你可以把它改成你的显示器支持的你喜欢的任意模式。数字对应的含义如下:

色深 
640×480800×6001024×7681280×1024256 
76977177377515位784787790793 
16位78578879179424位786789792795



改变数值后保存,然后重启次,再进来时在想要的分辨率下工作是不是舒服多了呢~~


0 0
原创粉丝点击