From: "Antonino A. Daplas" Add rudimentary support by manipulating the VGA registers. However, not all vesa modes are VGA compatible, so VGA compatiblity is checked first. Only 2 levels are supported, powerup and powerdown. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton --- arch/i386/boot/video.S | 5 +++++ drivers/video/vesafb.c | 38 ++++++++++++++++++++++++++++++++++++++ include/linux/tty.h | 3 ++- 3 files changed, 45 insertions(+), 1 deletion(-) diff -puN arch/i386/boot/video.S~vesafb-add-blanking-support arch/i386/boot/video.S --- devel/arch/i386/boot/video.S~vesafb-add-blanking-support 2005-07-30 00:44:45.000000000 -0700 +++ devel-akpm/arch/i386/boot/video.S 2005-07-30 00:44:45.000000000 -0700 @@ -97,6 +97,7 @@ #define PARAM_VESAPM_OFF 0x30 #define PARAM_LFB_PAGES 0x32 #define PARAM_VESA_ATTRIB 0x34 +#define PARAM_CAPABILITIES 0x36 /* Define DO_STORE according to CONFIG_VIDEO_RETAIN */ #ifdef CONFIG_VIDEO_RETAIN @@ -233,6 +234,10 @@ mopar_gr: movw 18(%di), %ax movl %eax, %fs:(PARAM_LFB_SIZE) +# store mode capabilities + movl 10(%di), %eax + movl %eax, %fs:(PARAM_CAPABILITIES) + # switching the DAC to 8-bit is for <= 8 bpp only movw %fs:(PARAM_LFB_DEPTH), %ax cmpw $8, %ax diff -puN drivers/video/vesafb.c~vesafb-add-blanking-support drivers/video/vesafb.c --- devel/drivers/video/vesafb.c~vesafb-add-blanking-support 2005-07-30 00:44:45.000000000 -0700 +++ devel-akpm/drivers/video/vesafb.c 2005-07-30 00:44:45.000000000 -0700 @@ -19,6 +19,7 @@ #include #include #include +#include