Skip to contentSkip to conversation

Linux console corruption when booted with terminal_output=console after rev 4789 (Decrease reported width by one to compensate for cursor algorithm problem.)

DISCUSSION Andrey Borzenkov 2 participants 5 messages Apr 8, 2013

lore
Share & tools
lore
#1 lore raw
Quoted 6 lines · Andrey Borzenkov

See http://susepaste.org/75296605

Notice that screen width is reported as 79.

This is absolutely reproducible with and without plymouth.

Try this please
=== modified file 'grub-core/loader/i386/linux.c'

loader/i386/linux.c +4 -0
@@ -547,6 +547,10 @@
 	    linux_params.video_cursor_x = pos >> 8;
 	    linux_params.video_cursor_y = pos & 0xff;
 	    linux_params.video_width = grub_term_width (term);
+#ifdef GRUB_MACHINE_PCBIOS
+	    if (grub_strcmp (term->name, "console") == 0)
+	      linux_params.video_width++;
+#endif
 	    linux_params.video_height = grub_term_height (term);
 	    found = 1;
 	    break;
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw

В Mon, 08 Apr 2013 18:34:27 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> пишет:

Quoted 14 lines · Andrey Borzenkov
Quoted 7 lines

See http://susepaste.org/75296605

Notice that screen width is reported as 79.

This is absolutely reproducible with and without plymouth.

Try this please
=== modified file 'grub-core/loader/i386/linux.c'

loader/i386/linux.c line 552

Quoted 6 lines
loader/i386/linux.c +3 -0
@@ -547,6 +547,10 @@
 	    linux_params.video_cursor_x = pos >> 8;
 	    linux_params.video_cursor_y = pos & 0xff;
 	    linux_params.video_width = grub_term_width (term);
+#ifdef GRUB_MACHINE_PCBIOS
+	    if (grub_strcmp (term->name, "console") == 0)
+	      linux_params.video_width++;

This is looks like piling hacks on hacks. What was wrong with my patch? Just curious.

Quoted 14 lines
loader/i386/linux.c +1 -0
+#endif
 	    linux_params.video_height = grub_term_height (term);
 	    found = 1;
 	    break;
Quoted 7 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
Quoted 12 lines · Andrey Borzenkov

В Mon, 08 Apr 2013 18:34:27 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> пишет:

Quoted 9 lines · Andrey Borzenkov
Quoted 7 lines

See http://susepaste.org/75296605

Notice that screen width is reported as 79.

This is absolutely reproducible with and without plymouth.

Quoted 15 lines

loader/i386/linux.c line 552

Quoted 11 lines

Try this please
=== modified file 'grub-core/loader/i386/linux.c'

loader/i386/linux.c +3 -0
@@ -547,6 +547,10 @@
 	    linux_params.video_cursor_x = pos >> 8;
 	    linux_params.video_cursor_y = pos & 0xff;
 	    linux_params.video_width = grub_term_width (term);
+#ifdef GRUB_MACHINE_PCBIOS
+	    if (grub_strcmp (term->name, "console") == 0)
+	      linux_params.video_width++;

This is looks like piling hacks on hacks. What was wrong with my patch? Just curious.

Its absence. There was no patch attached to the mail or included in it. Point me to it if I'm missing something.

Quoted 21 lines
Quoted 6 lines
loader/i386/linux.c +1 -0
+#endif
 	    linux_params.video_height = grub_term_height (term);
 	    found = 1;
 	    break;
Quoted 8 lines
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw

В Mon, 08 Apr 2013 18:51:15 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> пишет:

Quoted 30 lines · Andrey Borzenkov
Quoted 13 lines

В Mon, 08 Apr 2013 18:34:27 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> пишет:

Quoted 9 lines · Andrey Borzenkov
Quoted 7 lines

See http://susepaste.org/75296605

Notice that screen width is reported as 79.

This is absolutely reproducible with and without plymouth.

Quoted 15 lines

loader/i386/linux.c line 552

Quoted 11 lines

Try this please
=== modified file 'grub-core/loader/i386/linux.c'

loader/i386/linux.c +3 -0
@@ -547,6 +547,10 @@
 	    linux_params.video_cursor_x = pos >> 8;
 	    linux_params.video_cursor_y = pos & 0xff;
 	    linux_params.video_width = grub_term_width (term);
+#ifdef GRUB_MACHINE_PCBIOS
+	    if (grub_strcmp (term->name, "console") == 0)
+	      linux_params.video_width++;

This is looks like piling hacks on hacks. What was wrong with my patch? Just curious.

Quoted 2 lines

Its absence. There was no patch attached to the mail or included in it. Point me to it if I'm missing something.

http://lists.gnu.org/archive/html/grub-devel/2013-02/msg00086.html

Quoted 25 lines
Quoted 22 lines
Quoted 7 lines
loader/i386/linux.c +1 -0
+#endif
 	    linux_params.video_height = grub_term_height (term);
 	    found = 1;
 	    break;
Quoted 8 lines
Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel