linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Simmons <jsimmons@infradead.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: "Damian Kołkowski" <deimos@deimos.one.pl>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1
Date: Mon, 12 May 2003 22:25:50 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0305122223570.14641-100000@phoenix.infradead.org> (raw)
In-Reply-To: <20030511173817.GA2155@elf.ucw.cz>


> Hi!
> 
> > I'am wondering why setfont and loadkeys in setting only on first tty.
> > It works (setting font map on all six tty) in 2.{2,4}.x.
> > 
> > I'am using _radeonfb_ with rv250if, could it be the reason?
> 
> FYI, its same as vesafb here.
> 								Pavel

Try this patch. If it works I will pass it on to linus. thank you.


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1077  -> 1.1078 
#	drivers/char/vt_ioctl.c	1.22    -> 1.23   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/12	jsimmons@maxwell.earthlink.net	1.1078
# [CONSOLE] This patch fixes the problem of not being able to set the fonts on VCs other than the first one. This also was the bug that was casuing dual head (vga and mda) to lock up.
# --------------------------------------------
#
diff -Nru a/drivers/char/vt_ioctl.c b/drivers/char/vt_ioctl.c
--- a/drivers/char/vt_ioctl.c	Mon May 12 14:12:47 2003
+++ b/drivers/char/vt_ioctl.c	Mon May 12 14:12:47 2003
@@ -869,13 +869,13 @@
 		if (clin > 32)
 			return -EINVAL;
 		    
-		if (vlin)
-			vc->vc_scan_lines = vlin;
-		if (clin)
-			vc->vc_font.height = clin;
-	
-		for (i = 0; i < MAX_NR_CONSOLES; i++)
+		for (i = 0; i < MAX_NR_CONSOLES; i++) {
+			if (vlin)
+				vc_cons[i].d->vc_scan_lines = vlin;
+			if (clin)
+				vc_cons[i].d->vc_font.height = clin;
 			vc_resize(i, cc, ll);
+		}
   		return 0;
 	}
 


  reply	other threads:[~2003-05-12 21:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-09 11:33 [BUG] 2.5.69 - no setfont and loadkeys on tty > 1 Damian Kołkowski
2003-05-11 17:38 ` Pavel Machek
2003-05-12 21:25   ` James Simmons [this message]
2003-05-13 13:06     ` Damian Kołkowski
2003-05-14 12:09     ` Pavel Machek
2003-05-14 22:19       ` James Simmons
2003-05-14 22:42         ` Pavel Machek
2003-05-14 23:16           ` James Simmons
2003-05-15  0:10             ` Pavel Machek
2003-05-14 22:45         ` Pavel Machek
2003-05-15  2:44         ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0305122223570.14641-100000@phoenix.infradead.org \
    --to=jsimmons@infradead.org \
    --cc=deimos@deimos.one.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).