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]j

1,lilo下设置方法51Testing软件测试网:q)s#~(cG h

51Testing软件测试网hxQB(~3l

lilo:linux vga=318
@1It8tY J w+v!eR0将会启动1024x768x24bpp模式。下面是常用分辨率+色彩所对应的编码
 51Testing软件测试网-p eo5g x P8g D(m

&Z a$Ihfs0

色彩

*]-ZuV%g/h8uFV0

640x400

-d0l u$Y]*uTE0

640x48051Testing软件测试网 [{ f#JoB:]5S,|

800x60051Testing软件测试网H@s)Tqwj

1024x768

5sm ?&z B-?0

1280x1024

%NT&z"Zt0

1600x1200

] ^)l h)JQ.?)XD-Rp0

4bits

8]V:Itz0

?51Testing软件测试网m3s\aqx/u(}

?

,`pb$NC#Y b0

0x30251Testing软件测试网VS!G3`m

?51Testing软件测试网gR_5CccbY

?51Testing软件测试网IOj(hhz#n

?

;L fF#XO n'T1]0

8bits

` ^ KB8y {_h0

0x300

'\+aUR9~6o3a;B0

0x30151Testing软件测试网U:rm'jyOB3LMj Y

0x303

V;y$^*_B1I Pw5i0

0x30551Testing软件测试网 h]-g9SA5s.Q(F3@+Ld

0x307

8j#X yt7e0

0x31C

p e3Q(}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

Cm Te@#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!S1q H4u

32bits

5m3|8P X9v*e7R#{.j^0

?51Testing软件测试网.] L{8Bkw

?

3cv)Z&b7dT+x5B/O"?&o0

?

3zfpR[ Fo0

?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-g V\,B

51Testing软件测试网 i1l,e)J)f4yK&h7j

2,GRUB下设置方法

@#z5Bp C)Z0Y0

就是在grub的menu.lst启动列表的kernel最后添加vga参数,例如将tty分辨率设置为(1024x768x65536)

4j&`z6E3c.D;@0

menu.lst位于/boot/grub/menu.lst51Testing软件测试网U#{.s|8kJ+p6[
51Testing软件测试网fc1L{#S2| P x

51Testing软件测试网H/hmEF%_u B

# grub.conf generated by anaconda51Testing软件测试网!U8k y[*B#D*u
#
Kns Q(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)
_"[ T1\\Ugw"l0#          kernel /vmlinuz-version ro root=/dev/hda251Testing软件测试网ez$pt`
#          initrd /initrd-version.img51Testing软件测试网J8i4_aPuBg
#boot=/dev/hda
S V9}!cEW?0default=0
'L0twY-WB6W$U3V0timeout=10
1Ehl"d4a)B6V3FK0splashimage=(hd0,0)/grub/splash.xpm.gz
#tV?i4yZ0title Red Hat Linux (2.4.20-8)51Testing软件测试网4r)m7}ci4G+S(U
        root (hd0,0)
WS^D {"X R XL0        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/vga=79151Testing软件测试网fvt!Kg/{
        initrd /initrd-2.4.20-8.img
6J)hE(]E4Bz4P `0
b3]&E2JFc]3s0以下是常用参数列表

HN$eW/o-M/r0

linux video=vga16 (640x480x16) <---默认的就是用的这个参数,支持最普通的硬件:)51Testing软件测试网#u,`/\4Ap)D2M Q
linux vga=769 (640x480x256)
Y Bf+z$M-r0linux vga=771 (800x600x256)
Z:{WE$^0linux vga=773 (1024x768x256)
#[#@b#w#TM0linux vga=791 (1024x768x65536)
oSU.@~$@/M3_$G#rl0linux vga=775 (1280x1024x256)
51Testing软件测试网9i)Gt HR#f

51Testing软件测试网0Pop'~+JA$X

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

;j[/X g'fh|051Testing软件测试网bf5|/u#UP8h

(大分辨率+中文显示+中文输入(嘿嘿,有了这几个,基本上这辈子不图别的了。嘿嘿),perfect~huh~,

hZE9]9U0L051Testing软件测试网| t.[8[+K4G0b[

|+ZDKC2`$H0

@:zg@V;nZU`0

+y[%gt#P Ic051Testing软件测试网'my#S$e6\9p

51Testing软件测试网 D"M TR)Gh y?

51Testing软件测试网9ks\%['mt9{

W9Ttx7xq5p P-M4V0

51Testing软件测试网%_u R$`v7GI"S)A

51Testing软件测试网 E9pY?C8XfO@

51Testing软件测试网h$d$q B~e0|$r

 51Testing软件测试网'Ho1NJ2p:\r

~(rIh4AU:v)e0 51Testing软件测试网Oc~3{/e

f.r}|z5em0 

3dl9ny+@$c@o0

51Testing软件测试网'I/`7eG2P5{S+myS}
51Testing软件测试网w Hp8bX+J

大小: 102.64 K
尺寸: 400 x 300
浏览: 0 次
点击打开新窗口浏览全图

TAG: Linux

 

评分:0

我来说两句

日历

« 2024-04-28  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 46069
  • 日志数: 42
  • 图片数: 3
  • 文件数: 1
  • 书签数: 13
  • 建立时间: 2007-01-05
  • 更新时间: 2007-03-03

RSS订阅

Open Toolbar