修改控制台的分辨率
1、vi /boot/grub/menu.lst;
2、find the line like this:
kernel /boot/vmlinuz-2.6.8-2-686 root=/dev/hda1 ro
3、add "vga= ***" after "hda1","***"can be replaced by the number like the following table:
##################################################################
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 795
======================================
Documentation/fb/vesafb.txt
------------------------------------------------------------
Switching modes is done using the vga=... boot parameter. Read
33 Documentation/svga.txt for details.
34
35 You should compile in both vgacon (for text mode) and vesafb (for
36 graphics mode). Which of them takes over the console depends on
37 whenever the specified mode is text or graphics.
38
39 The graphic modes are NOT in the list which you get if you boot with
40 vga=ask and hit return. The mode you wish to use is derived from the
41 VESA mode number. Here are those VESA mode numbers:
42
43 | 640x480 800x600 1024x768 1280x1024
44 ----+-------------------------------------
45 256 | 0x101 0x103 0x105 0x107
46 32k | 0x110 0x113 0x116 0x119
47 64k | 0x111 0x114 0x117 0x11A
48 16M | 0x112 0x115 0x118 0x11B
49
50 The video mode number of the Linux kernel is the VESA mode number plus
51 0x200.
52
53 Linux_kernel_mode_number = VESA_mode_number + 0x200
54
55 So the table for the Kernel mode numbers are:
56
57 | 640x480 800x600 1024x768 1280x1024
58 ----+-------------------------------------
59 256 | 0x301 0x303 0x305 0x307
60 32k | 0x310 0x313 0x316 0x319
61 64k | 0x311 0x314 0x317 0x31A
62 16M | 0x312 0x315 0x318 0x31B
63
64 To enable one of those modes you have to specify "vga=ask" in the
65 lilo.conf file and rerun LILO. Then you can type in the descired
66 mode at the "vga=ask" prompt. For example if you like to use
67 1024x768x256 colors you have to say "305" at this prompt.
68
69 If this does not work, this might be becauce your BIOS does not support
70 linear framebuffers or becauce it does not support this mode at all.
71 Even if your board does, it might be the BIOS which does not. VESA BIOS
72 Extentions v2.0 are required, 1.2 is NOT sufficient. You will get a
73 "bad mode number" message if something goes wrong.
74
75 1. Note: LILO cannot handle hex, for booting directly with
76 "vga=mode-number" you have to transform the numbers to decimal.
77 2. Note: Some newer versions of LILO appear to work with those hex values,
78 if you set the 0x infront of the numbers.
执行力=流程+计划+组织
把理想变成计划,
把计划变成步骤,
把步骤变成行动,
把行动变成成果。
好語說盡人必易之。規矩行盡人必繁之。福若受盡緣必孤。勢若使盡禍必至。