Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 45e4f5da4952e351d997dd2c88575427 > files > 153

kernel-5.3.2-1.mga7.src.rpm

Automatically switches textmode if the user selects a wrong one.

Original author of the idea/first patch is unknown.

Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>

--
 arch/x86/boot/video.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/arch/x86/boot/video.c
+++ b/arch/x86/boot/video.c
@@ -325,8 +325,8 @@ void set_video(void)
 		if (!set_mode(mode))
 			break;
 
-		printf("Undefined video mode number: %x\n", mode);
-		mode = ASK_VGA;
+		printf("Undefined video mode number: %x, jump to 80x25\n", mode);
+		mode = VIDEO_80x25;
 	}
 	boot_params.hdr.vid_mode = mode;
 	vesa_store_edid();