>Hi, if I load the vesa kld module from loader.rc, in order to
>use a high-res splash screen, when X starts the screen is very dim.
>Usually I start xdm from ttys, but its the same if I use startx.
>The cursor looks normal, its really bright against the dim screen.
>Its fine if I don't load vesa and use a 320x200 splash screen,
>and if I do load it, the vesa modes work great; I can load
>a 1024x768 splash image, its just when X starts.

Please try the attached patch for /sys/i386/isa/vesa.c and
see if it works.

Kazu

--- vesa.c-1.17 Sun Feb  7 14:01:43 1999
+++ vesa.c      Tue Feb 16 16:36:02 1999
@@ -838,9 +838,9 @@
        if ((adp == vesa_adp) && (vesa_adp_info->v_flags & V_DAC8) 
            && ((bits = vesa_bios_set_dac(8)) > 6)) {
                error = vesa_bios_save_palette(0, 256, palette, bits);
+               vesa_bios_set_dac(6);
                if (error == 0)
                        return 0;
-               vesa_bios_set_dac(6);
        }
 
        return (*prevvidsw->save_palette)(adp, palette);
@@ -855,9 +855,9 @@
        if ((adp == vesa_adp) && (vesa_adp_info->v_flags & V_DAC8) 
            && ((bits = vesa_bios_set_dac(8)) > 6)) {
                error = vesa_bios_load_palette(0, 256, palette, bits);
+               vesa_bios_set_dac(6);
                if (error == 0)
                        return 0;
-               vesa_bios_set_dac(6);
        }
 
        return (*prevvidsw->load_palette)(adp, palette);



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to