Vesa modes

Материал из rrv-wiki
Перейти к навигации Перейти к поиску

Взято здесь.

Introduction

I use the Xorg server with vesa driver to obtain the full list of vesa modes supported by the card. Parsing the /var/log/Xorg.0.log with the following quick and dirty perl script outputs the tables provided below in wiki style. Note that if you wish to use the vesa modes provided below in the kernel boot command with the vesafb driver you need to add 0x200 to it.


#!/usr/bin/perl -w

my $resolution;
my $bpp;
my $vesamode;
my $curline;

printf STDOUT ("{| border=\"1\" cellpadding=\"2\"\n");
printf STDOUT ("!width=\"75\"|Resolution\n");
printf STDOUT ("!width=\"50\"|Bits per pixel\n");
printf STDOUT ("!width=\"50\"|Vesa mode\n");
printf STDOUT ("|-\n");
while ($curline=<>)
{
  if ( $curline =~ /Mode: ([0-9a-f]+) \(([0-9]+x[0-9]+)\).*$/s )
  {
    $vesamode=$1;
    $resolution=$2;
  }
  if ( $curline =~ /BitsPerPixel: ([0-9]+)$/s )
  {
    $bpp=$1;
#    printf STDOUT ("vesamode %s for resolution %s at %s bpp\n",$vesamode,$resolution,$bpp);
    printf STDOUT ("| %s || %s || %s\n",$resolution,$bpp,$vesamode);
    printf STDOUT ("|-\n");
  }
}
printf STDOUT ("|}\n");

The goal of this excercie is to seek for modes to be used on LCD TVs.

EpiaM vesa modes

Resolution Bits per pixel Vesa mode
640x480 8 101
640x480 16 111
640x480 32 112
720x480 8 171
720x480 16 173
720x480 32 175
720x576 8 17c
720x576 16 17e
720x576 32 17f
800x480 8 19c
800x480 16 19d
800x480 32 19e
800x600 8 103
800x600 16 114
800x600 32 115
848x480 8 15c
848x480 16 15d
848x480 32 15f
1024x768 8 105
1024x768 16 117
1024x768 32 118
1280x768 8 179
1280x768 16 17a
1280x768 32 17b
1280x1024 8 107
1280x1024 16 11a
1280x1024 32 11b
1368x768 8 183
1368x768 16 184
1368x768 32 185
1400x1050 8 13b
1400x1050 16 13c
1400x1050 32 13e
80x60 4 108
800x600 4 102

EpiaSP vesa modes

Resolution Bits per pixel Vesa mode
640x480 8 101
640x480 16 111
640x480 32 112
720x480 8 171
720x480 16 173
720x480 32 175
720x540 8 1b9
720x540 16 1ba
720x540 32 1bb
720x576 8 17c
720x576 16 17e
720x576 32 17f
800x600 8 103
800x600 16 114
800x600 32 115
848x480 8 15c
848x480 16 15d
848x480 32 15f
852x480 8 196
852x480 16 197
852x480 32 198
1024x576 8 20b
1024x576 16 20c
1024x576 32 20d
1024x768 8 105
1024x768 16 117
1024x768 32 118
1280x768 8 179
1280x768 16 17a
1280x768 32 17b
1280x1024 8 107
1280x1024 16 11a
1280x1024 32 11b
1360x768 8 16c
1360x768 16 16d
1360x768 32 16e
1368x768 8 183
1368x768 16 184
1368x768 32 185
1400x1050 8 13b
1400x1050 16 13c
1400x1050 32 13e
1600x1024 8 20e
1600x1024 16 20f
1600x1024 32 210
1600x1200 8 120
1600x1200 16 122
1600x1200 32 124
1680x1050 8 12b
1680x1050 16 12c
1680x1050 32 12d
1920x1440 8 199
1920x1440 16 19a
1920x1440 32 19b
2048x1536 8 156
2048x1536 16 158
2048x1536 32 159
800x480 8 22e
800x480 16 22f
800x480 32 230
80x60 4 108
800x600 4 102