bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VBE support


From: Jan Fricke
Subject: Re: VBE support
Date: Thu, 09 Nov 2000 17:40:05 +0100

Hallo!
I applied the following patch (...to the current cvs version):

diff -ur grub.org/stage2/asm.S grub/stage2/asm.S
--- grub.org/stage2/asm.S       Mon Nov  6 07:42:26 2000
+++ grub/stage2/asm.S   Thu Nov  9 17:29:17 2000
@@ -1679,7 +1679,7 @@
        /* Save the mode number in %bx */
        movl    0x8(%ebp), %ebx
        /* Clear bit D11 */
-       andl    0xF7FF, %ebx
+       andl    $0xF7FF, %ebx
 
        call    EXT_C(prot_to_real)
        .code16
diff -ur grub.org/stage2/builtins.c grub/stage2/builtins.c
--- grub.org/stage2/builtins.c  Mon Nov  6 07:42:26 2000
+++ grub/stage2/builtins.c      Thu Nov  9 17:29:59 2000
@@ -2157,7 +2157,7 @@
   grub_memset ((char *) io_map, 0, IO_MAP_SIZE * sizeof (unsigned
short));
 
   /* Track the int13 handler.  */
-  track_int13 (current_drive);
+  /* track_int13 (current_drive);  */
   
   /* Print out the result.  */
   for (port = io_map; *port != 0; port++)

Now the vbe stuff works on my PCs, here is the output:

["oxygene" - Matrox Millennium II, 4 MByte]
grub> vbeprobe
 VBE version 2.0
  0x100: Packed pixel, 640x400x8
  0x101: Packed pixel, 640x480x8
  0x103: Packed pixel, 800x600x8
  0x105: Packed pixel, 1024x768x8
  0x107: Packed pixel, 1280x1024x8
  0x110: Direct color, 640x480x16
  0x111: Direct color, 640x480x16
  0x112: Direct color, 640x480x32
  0x113: Direct color, 800x600x16
  0x114: Direct color, 800x600x16
  0x115: Direct color, 800x600x32
  0x116: Direct color, 1024x768x16
  0x117: Direct color, 1024x768x16
  0x11c: Packed pixel, 1600x1200x8
  0x118: Direct color, 1024x768x32
  0x119: Direct color, 1280x1024x16
  0x11a: Direct color, 1280x1024x16
  0x11d: Direct color, 1600x1200x16
  0x11e: Direct color, 1600x1200x16

grub>

["amarok", Matrox G400 dualhead, 32 MByte]
grub> vbeprobe
 VBE version 2.0
  0x100: Packed pixel, 640x400x8
  0x101: Packed pixel, 640x480x8
  0x103: Packed pixel, 800x600x8
  0x110: Direct Color, 640x480x16
  0x111: Direct Color, 640x480x16
  0x112: Direct Color, 640x480x32
  0x113: Direct Color, 800x600x16
  0x114: Direct Color, 800x600x16
  0x115: Direct Color, 800x600x32

grub>

The command "testvbe" worked on both PCs without problems, i.e. it
switched to the desired mode and made some psychedelic color cycling,
and switched back after pressing a key. (With the patch above the
switching back to video mode 3 now works. Remember: I reported, that
"testvbe" switched back to a 40x25 text mode.)

Best wishes                             Jan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]