Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > f65f1d773383ac49d6fcc3657259ff43 > files > 191

kernel-5.10.45-2.mga8.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();