Leo's monitor problem revisited, hex to mode-line converter

Brian Kelsay BLKELSAY at kcc.usda.gov
Tue Dec 9 15:27:19 CST 2003


I found this info about mode numbers on the DamnSmall Linux forums.  I hope the spacing didn't get 
too mess up by this useless mail program called Groupwise.

2) If you're booting from HDD, you don't get to manually enter a parameter, to set the system to do 
this, you have to edit the lilo.conf file. Find the line 'vga=<somenumber>'. Change <somenumber> to 
whatever mode you feel comfortable with below:

Use the Non-Hex Numbers, I have included a conversion chart.
Colours   640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200
--------+--------------------------------------------------------------
4 bits  |    ?       ?     0x302      ?        ?        ?         ?
8 bits  |  0x300   0x301   0x303    0x305    0x161    0x307     0x31C
15 bits |    ?     0x310   0x313    0x316    0x162    0x319     0x31D
16 bits |    ?     0x311   0x314    0x317    0x163    0x31A     0x31E
24 bits |    ?     0x312   0x315    0x318      ?      0x31B     0x31F
32 bits |    ?       ?       ?        ?      0x164      ?         ?
0x300 = 768
0x301 = 769
0x302 = 770
0x303 = 771
0x305 = 773
0x307 = 775
0x310 = 784
0x311 = 785
0x312 = 786
0x313 = 787
0x314 = 788
0x315 = 789
0x316 = 790
0x317 = 791
0x318 = 792
0x319 = 793
0x31A = 794
0x31B = 795
0x31C = 796
0x31D = 797
0x31E = 798
ox31F = 799
0x161 = 353
0x162 = 354
0x163 = 355
0x164 = 356

Save the file, and at the prompt run 'lilo' then reboot and all should be well

To reset back to normal change the 'vga=<number>' to 'vga=normal'. 




More information about the Kclug mailing list