Things change, roll with the punches.Oh, yeah. Go for it man, jump off the high dive, stare down the barrel of the gun, pee into the wind!
改变tty的分辨率
上一篇 /
下一篇 2007-01-07 13:19:33
/ 个人分类:Linux
51Testing软件测试网+t ~qry1{Qc默认kernel给的tty分辨率是非常有限的(哈哈,什么有限,其实就是小,忒小了),而现在的显示器海大,hoho~,所以对于工作在文本模式的朋友来说修改tty的分辨率是非常必要的,别白瞎了这个显示了嘿。解决的方法就是给kernel传递VGA参数51Testing软件测试网W$q3Hm7i1H
51Testing软件测试网(_9j5h1{ R8g]j1,lilo下设置方法51Testing软件测试网:q)s#~(cG h
51Testing软件测试网hxQB(~3llilo:linux vga=318
@1It8tY
Jw+v!eR0将会启动1024x768x24bpp模式。下面是常用分辨率+色彩所对应的编码 51Testing软件测试网-p
eo5g
x P8g D(m
&Za$Ihfs0
色彩 *]-Z uV%g/h8uFV0 | 640x400 -d0lu$Y]*uTE0 | 640x48051Testing软件测试网
[{f#JoB:]5S,| | 800x60051Testing软件测试网H@s)Tqwj | 1024x768 5sm?&z B-?0 | 1280x1024 %NT&z"Zt0 | 1600x1200 ]
^)lh)JQ.?)XD-Rp0 |
4bits 8]V:Itz0 | ?51Testing软件测试网m3s\aqx/u(} | ? ,`pb$NC#Y b0 | 0x30251Testing软件测试网VS!G3`m | ?51Testing软件测试网gR_5C ccbY | ?51Testing软件测试网IOj(hhz#n | ? ;L fF#XOn'T1]0 |
8bits `
^KB8y {_h0 | 0x300 '\+aUR9~6o3a;B0 | 0x30151Testing软件测试网U:rm'jyOB3LMjY | 0x303 V;y$^*_B1I
Pw5i0 | 0x30551Testing软件测试网
h]-g9SA5s.Q(F3@+Ld | 0x307 8j#X
yt7e0 | 0x31C pe3Q(}6I0 |
15bits51Testing软件测试网:d+_,g.e1[2e:w1A | ? 3Bldu+IH*C0 | 0x31051Testing软件测试网k.Z$Uf+c+| | 0x31351Testing软件测试网"z
wfx(k,oT | 0x31651Testing软件测试网3arXC[a | 0x319 G*bj-]2`6p0 | 0x31D51Testing软件测试网L*_$a#Wgq f |
16bits51Testing软件测试网%b1D7~q4MnJ"Q | ? 5rx v"]:[(Y-fJ0 | 0x311 {$j1n
wi$]0 | 0x31451Testing软件测试网V#cj0?HA.B
j | 0x31751Testing软件测试网 kY%OQ1y | 0x31A CmTe@#a,fqL0 | 0x31E51Testing软件测试网8[*V9aOq+QZM |
24bits51Testing软件测试网!g{vcr9`
XT | ?51Testing软件测试网!fC{(w
yBt | 0x312 /?'R]v j/HB)zw6U0 | 0x315 GS| A5]o0NYm2t z2N0 | 0x318 V`NR)E!u$n}0 | 0x31B QQ
VEEa4Y0 | 0x31F51Testing软件测试网$i2C!S1qH4u |
32bits 5m3|8P
X9v*e7R#{.j^0 | ?51Testing软件测试网.]L{8Bkw | ? 3cv)Z&b7dT+x5B/O"?&o0 | ? 3zf pR[F o0 | ?51Testing软件测试网x(\2C:puOQ^ | ? q)J
qop_FgY0 | ? Xhr
Clpu0 |
51Testing软件测试网(m4M
w3s v'B)C[1T如果要默认就设置为1024x768x24bpp模式,可以修改/etc/lilo.conf,加入一下语句:
+HS a9pel4^0vga=0x318
O)pV;R)@`#g0然后保存退出,重启即可。51Testing软件测试网2P-cN2tz!]&cQ
51Testing软件测试网J^"Z-gV\,B
51Testing软件测试网 i1l,e)J)f4yK&h7j
2,GRUB下设置方法
@#z5Bp C)Z0Y0就是在grub的menu.lst启动列表的kernel最后添加vga参数,例如将tty分辨率设置为(1024x768x65536)
4j&`z6E3c.D;@0menu.lst位于/boot/grub/menu.lst51Testing软件测试网U#{.s|8k J+p6[
51Testing软件测试网fc1L{#S2| Px
51Testing软件测试网H/hmEF%_u B
# grub.conf generated by anaconda51Testing软件测试网!U8ky[*B#D*u
#
KnsQ(ia$B:T5^0# Note that you do not have to rerun grub after making changes to this file
$\~%T3u@+r
~-K/f.J0# NOTICE: You have a /boot partition. This means that
!t9f6g'}y5[y9\C bT0# all kernel and initrd paths are relative to /boot/, eg.
%bapUg:r%h B0# root (hd0,0)