* [PATCH] terminal is not set back to console
@ 2007-05-03 18:50 Robert Millan
2007-05-03 19:05 ` Robert Millan
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Robert Millan @ 2007-05-03 18:50 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 461 bytes --]
When using gfxterm, and booting a kernel in this mode, Linux won't be able to
print anything to the console. This patch fixes it so that terminal is set
back to normal console during deinitialisation.
Tested and known to work, although I'm not 1:1 sure if this is the right place
to do it.
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
[-- Attachment #2: deinitialise_terminal.diff --]
[-- Type: text/x-diff, Size: 619 bytes --]
2007-05-03 Robert Millan <rmh@aybabtu.com>
* term/i386/pc/console.c (grub_console_fini): Call
grub_term_set_current() before grub_term_unregister().
Index: term/i386/pc/console.c
===================================================================
RCS file: /sources/grub/grub2/term/i386/pc/console.c,v
retrieving revision 1.7
diff -u -r1.7 console.c
--- term/i386/pc/console.c 20 Aug 2005 05:26:51 -0000 1.7
+++ term/i386/pc/console.c 3 May 2007 18:42:08 -0000
@@ -148,5 +148,6 @@
void
grub_console_fini (void)
{
+ grub_term_set_current (&grub_console_term);
grub_term_unregister (&grub_console_term);
}
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-03 18:50 [PATCH] terminal is not set back to console Robert Millan
@ 2007-05-03 19:05 ` Robert Millan
2007-05-03 21:46 ` Yoshinori K. Okuji
2007-05-03 21:44 ` Yoshinori K. Okuji
2007-05-04 8:30 ` Marco Gerards
2 siblings, 1 reply; 8+ messages in thread
From: Robert Millan @ 2007-05-03 19:05 UTC (permalink / raw)
To: grub-devel
On Thu, May 03, 2007 at 08:50:11PM +0200, Robert Millan wrote:
>
> When using gfxterm, and booting a kernel in this mode, Linux won't be able to
> print anything to the console. This patch fixes it so that terminal is set
> back to normal console during deinitialisation.
>
> Tested and known to work, although I'm not 1:1 sure if this is the right place
> to do it.
Btw, should other platforms do the same?
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-03 18:50 [PATCH] terminal is not set back to console Robert Millan
2007-05-03 19:05 ` Robert Millan
@ 2007-05-03 21:44 ` Yoshinori K. Okuji
2007-05-04 8:30 ` Marco Gerards
2 siblings, 0 replies; 8+ messages in thread
From: Yoshinori K. Okuji @ 2007-05-03 21:44 UTC (permalink / raw)
To: The development of GRUB 2
On Thursday 03 May 2007 20:50, Robert Millan wrote:
> When using gfxterm, and booting a kernel in this mode, Linux won't be able
> to print anything to the console. This patch fixes it so that terminal is
> set back to normal console during deinitialisation.
>
> Tested and known to work, although I'm not 1:1 sure if this is the right
> place to do it.
Yes, this is good.
Thanks,
Okuji
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-03 19:05 ` Robert Millan
@ 2007-05-03 21:46 ` Yoshinori K. Okuji
2007-05-04 7:23 ` Robert Millan
0 siblings, 1 reply; 8+ messages in thread
From: Yoshinori K. Okuji @ 2007-05-03 21:46 UTC (permalink / raw)
To: The development of GRUB 2
On Thursday 03 May 2007 21:05, Robert Millan wrote:
> On Thu, May 03, 2007 at 08:50:11PM +0200, Robert Millan wrote:
> > When using gfxterm, and booting a kernel in this mode, Linux won't be
> > able to print anything to the console. This patch fixes it so that
> > terminal is set back to normal console during deinitialisation.
> >
> > Tested and known to work, although I'm not 1:1 sure if this is the right
> > place to do it.
>
> Btw, should other platforms do the same?
Do you mean other terminals? Generally, yes. If you don' have any good reason,
it is always nice to reset states to the original.
Okuji
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-03 21:46 ` Yoshinori K. Okuji
@ 2007-05-04 7:23 ` Robert Millan
0 siblings, 0 replies; 8+ messages in thread
From: Robert Millan @ 2007-05-04 7:23 UTC (permalink / raw)
To: The development of GRUB 2
On Thu, May 03, 2007 at 11:46:16PM +0200, Yoshinori K. Okuji wrote:
> On Thursday 03 May 2007 21:05, Robert Millan wrote:
> > On Thu, May 03, 2007 at 08:50:11PM +0200, Robert Millan wrote:
> > > When using gfxterm, and booting a kernel in this mode, Linux won't be
> > > able to print anything to the console. This patch fixes it so that
> > > terminal is set back to normal console during deinitialisation.
> > >
> > > Tested and known to work, although I'm not 1:1 sure if this is the right
> > > place to do it.
> >
> > Btw, should other platforms do the same?
>
> Do you mean other terminals? Generally, yes. If you don' have any good reason,
> it is always nice to reset states to the original.
No, I really mean other platforms (i386/efi, etc). My patch sets console as
the default terminal when unloading it. It doesn't set state back to what
it was before loading console. If other terminals did the same, results
would be undefined.
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-03 18:50 [PATCH] terminal is not set back to console Robert Millan
2007-05-03 19:05 ` Robert Millan
2007-05-03 21:44 ` Yoshinori K. Okuji
@ 2007-05-04 8:30 ` Marco Gerards
2007-05-04 22:30 ` Robert Millan
2 siblings, 1 reply; 8+ messages in thread
From: Marco Gerards @ 2007-05-04 8:30 UTC (permalink / raw)
To: The development of GRUB 2
Robert Millan <rmh@aybabtu.com> writes:
> When using gfxterm, and booting a kernel in this mode, Linux won't be able to
> print anything to the console. This patch fixes it so that terminal is set
> back to normal console during deinitialisation.
>
> Tested and known to work, although I'm not 1:1 sure if this is the right place
> to do it.
Feel free to apply this patch.
--
Marco
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-04 8:30 ` Marco Gerards
@ 2007-05-04 22:30 ` Robert Millan
2007-05-05 13:10 ` Marco Gerards
0 siblings, 1 reply; 8+ messages in thread
From: Robert Millan @ 2007-05-04 22:30 UTC (permalink / raw)
To: The development of GRUB 2
On Fri, May 04, 2007 at 10:30:33AM +0200, Marco Gerards wrote:
> Robert Millan <rmh@aybabtu.com> writes:
>
> > When using gfxterm, and booting a kernel in this mode, Linux won't be able to
> > print anything to the console. This patch fixes it so that terminal is set
> > back to normal console during deinitialisation.
> >
> > Tested and known to work, although I'm not 1:1 sure if this is the right place
> > to do it.
>
> Feel free to apply this patch.
Ok, if you insist..
Committed. I've left the other platforms untouched since I'm not familiar
about them. Maybe that needs to be reviewed.
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] terminal is not set back to console
2007-05-04 22:30 ` Robert Millan
@ 2007-05-05 13:10 ` Marco Gerards
0 siblings, 0 replies; 8+ messages in thread
From: Marco Gerards @ 2007-05-05 13:10 UTC (permalink / raw)
To: The development of GRUB 2
Robert Millan <rmh@aybabtu.com> writes:
> On Fri, May 04, 2007 at 10:30:33AM +0200, Marco Gerards wrote:
>> Robert Millan <rmh@aybabtu.com> writes:
>>
>> > When using gfxterm, and booting a kernel in this mode, Linux won't be able to
>> > print anything to the console. This patch fixes it so that terminal is set
>> > back to normal console during deinitialisation.
>> >
>> > Tested and known to work, although I'm not 1:1 sure if this is the right place
>> > to do it.
>>
>> Feel free to apply this patch.
>
> Ok, if you insist..
>
> Committed. I've left the other platforms untouched since I'm not familiar
> about them. Maybe that needs to be reviewed.
If you want to fix those, please do. But it is not that important.
The other platforms don't have multiple terminals so can't trigger
this problem. Yet...
--
Marco
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-05-05 13:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 18:50 [PATCH] terminal is not set back to console Robert Millan
2007-05-03 19:05 ` Robert Millan
2007-05-03 21:46 ` Yoshinori K. Okuji
2007-05-04 7:23 ` Robert Millan
2007-05-03 21:44 ` Yoshinori K. Okuji
2007-05-04 8:30 ` Marco Gerards
2007-05-04 22:30 ` Robert Millan
2007-05-05 13:10 ` Marco Gerards
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.