默认kernel给的tty分辨率是非常有限的,解决的方法就是给kernel传递VGA参数。
 
  1、lilo下设置方法
 
  lilo:linux vga=318
 
  将会启动1024x768x24bpp模式。下面是常用分辨率+色彩所对应的编码

色彩
640x400
640x480
800x600
1024x768
1280x1024
1600x1200
4bits
?
?
0x302
?
?
?
8bits
0x300
0x301
0x303
0x305
0x307
0x31C
15bits
?
0x310
0x313
0x316
0x319
0x31D
16bits
?
0x311
0x314
0x317
0x31A
0x31E
24bits
?
0x312
0x315
0x318
0x31B
0x31F
32bits
?
?
?
?
?
?

  如果要默认就设置为1024x768x24bpp模式,可以修改/etc/lilo.conf,加入一下语句:
 
  vga=0x318
 
  然后保存退出,重启即可。
 
   2、GRUB下设置方法
 
  就是在grub.conf启动列表的kernel最后添加vga参数,例如将tty分辨率设置为(800x600x65536)

cat /etc/grub.conf
# 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/sda3
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-22.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-22.EL ro root=LABEL=/ vga=788
        initrd /initrd-2.6.9-22.EL.img
 
  以下是常用参数列表
 
linux video=vga16 (640x480x16) <---默认参数,支持最普通的硬件:)
vga=769 (640x480x256)
vga=771 (800x600x256)
vga=788 (800x600x65536)
vga=773 (1024x768x256)
vga=791 (1024x768x65536)

修改后配和zhcon(http://sourceforge.net/projects/zhcon)或者cce( http://sourceforge.net/projects/cce2k/ )更加完美。

(大分辨率+中文显示+中文输入)

  下面是所有分辨率的列表:

        
        
         
         # VESA framebuffer console @ 1024x768x64k vga = 791 
# Normal VGA console # vga = normal 
# VESA framebuffer console @ 1024x768x64k 
# vga=791 # VESA framebuffer console @ 1024x768x32k 
# vga=790 # VESA framebuffer console @ 1024x768x256 
# vga=773 # VESA framebuffer console @ 800x600x64k 
# vga=788 # VESA framebuffer console @ 800x600x32k 
# vga=787 # VESA framebuffer console @ 800x600x256 
# vga=771 # VESA framebuffer console @ 640x480x64k 
# vga=785 # VESA framebuffer console @ 640x480x32k 
# vga=784 # VESA framebuffer console @ 640x480x256 
# vga=769
        
        
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐