From: "Antonino A. Daplas" For the i386, code is already present in video.S that gets the EDID from the video BIOS. Make this visible so drivers can also use this data as fallback when i2c does not work. To ensure that the EDID block is returned for the primary graphics adapter only, by check if the IORESOURCE_ROM_SHADOW flag is set. Signed-off-by: Antonino Daplas Signed-off-by: Andrew Morton --- arch/i386/boot/video.S | 2 +- drivers/video/fbmon.c | 35 ++++++++++++++++++++++++++++++++++- include/linux/fb.h | 4 +++- 3 files changed, 38 insertions(+), 3 deletions(-) diff -puN arch/i386/boot/video.S~fbdev-resurrect-hooks-to-get-edid-from-firmware arch/i386/boot/video.S --- devel/arch/i386/boot/video.S~fbdev-resurrect-hooks-to-get-edid-from-firmware 2005-08-21 21:53:51.000000000 -0700 +++ devel-akpm/arch/i386/boot/video.S 2005-08-21 21:53:51.000000000 -0700 @@ -1949,7 +1949,7 @@ store_edid: movw $0x4f15, %ax # do VBE/DDC movw $0x01, %bx movw $0x00, %cx - movw $0x01, %dx + movw $0x00, %dx movw $0x140, %di int $0x10 diff -puN drivers/video/fbmon.c~fbdev-resurrect-hooks-to-get-edid-from-firmware drivers/video/fbmon.c --- devel/drivers/video/fbmon.c~fbdev-resurrect-hooks-to-get-edid-from-firmware 2005-08-21 21:53:51.000000000 -0700 +++ devel-akpm/drivers/video/fbmon.c 2005-08-21 21:53:51.000000000 -0700 @@ -29,6 +29,7 @@ #include #include #include +#include