linux 改变文本模分辨率

修改/etc/grub.conf文件

将该文件中以kernel开头的一行行尾添加vga=ask

或者以如下数值代替ask

##################################################################
color     640x480     800x600         1024x768       1280x1024
256         769           771              773             775
32000       784           787              790             793
65000       785           788              791             794
16.4M      786           789              792             79
  

例:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
 root (hd0,0)
 kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ vga=791
 initrd /boot/initrd-2.4.20-8.img
 

你可能感兴趣的:(linux,改变,文本模分辨率)