Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27216 - consolefont script sets only tty1 in kernel 2.6.0-test4
Summary: consolefont script sets only tty1 in kernel 2.6.0-test4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 32279
Blocks:
  Show dependency tree
 
Reported: 2003-08-24 06:28 UTC by Genady Okrain
Modified: 2003-11-01 15:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for kernel 2.6 to solve incorrect PIO_UNIMAP ioctl handling (patch-2.6.0-test3-unimap,1.25 KB, text/plain)
2003-09-10 16:32 UTC, Yuri Enshin
Details
patch for kbd-1.08 (add 'setfont' parameter for select console) (kbd-1.08-console-select.patch,4.66 KB, text/plain)
2003-09-10 16:35 UTC, Yuri Enshin
Details
new consolefont init script (with kbd patch) (consolefont,2.02 KB, text/plain)
2003-09-10 21:46 UTC, Genady Okrain
Details
/etc/init.d/consolefont (consolefont,1.57 KB, text/plain)
2003-11-01 14:02 UTC, Martin Schlemmer (RETIRED)
Details
2.6.0-test9-bk5-IO_UNIMAP-current-con.patch (2.6.0-test9-bk5-IO_UNIMAP-current-con.patch,1.43 KB, patch)
2003-11-01 15:47 UTC, Martin Schlemmer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Genady Okrain 2003-08-24 06:28:52 UTC
I'm not sure about other kernels
but with gentoo-sources it's working!
Comment 1 Narada Sage 2003-09-05 05:32:17 UTC
Just a note to say that I too have noticed this problem.  With 2.6 kernels /etc/init.d/consolefont only sets virtual terminal 1 with the custom font from /etc/rc.conf.  The remainder VTs (2-6) stay with the default font and are unchanged.  Since this involves an init.d script I'm adding azarah@gentoo.org to CC.
Comment 2 Yuri Enshin 2003-09-10 16:30:54 UTC
AFAIK, this problem have 3 parts:
1) In kernel 2.4, only one user-defined font can be loaded and used for all consoles. So setfont from kbd package don't need (and have) parameter 'console number' - it's load font for foreground console and then we can say 'use user-defined font' for all consoles (echo 'esc(K' >/dev/ttyN).
But console driver in kernel 2.6 can load different fonts for each console. So, we  need instruct setfont to which console we want load font, by patching kbd and add new parameter for setfont.
2) Additional problem named 'font unicode map'. tty's ioctl operation KDFONTOP correctly handle first ioctl parameter and operate with specified console, but PIO_UNIMAP (we need it for load corresponding unimap after loading font) ignore this parameter and always load unimap to foreground console. So we need also patching kernel for correct ioctl(..., PIO_UNIMAP, ...) handling.
3) And, finally, we need change the consolefont init.d script to use the new setfont parameter.

I make the quick patches for 1) and 2) 
Comment 3 Yuri Enshin 2003-09-10 16:32:26 UTC
Created attachment 17470 [details]
patch for kernel 2.6 to solve incorrect PIO_UNIMAP ioctl handling
Comment 4 Yuri Enshin 2003-09-10 16:35:23 UTC
Created attachment 17471 [details]
patch for kbd-1.08 (add 'setfont' parameter for select console)
Comment 5 Genady Okrain 2003-09-10 21:41:21 UTC
humm nice work
but the same problem with 'loadkeys'
Comment 6 Genady Okrain 2003-09-10 21:46:12 UTC
Created attachment 17476 [details]
new consolefont init script (with kbd patch)
Comment 7 Genady Okrain 2003-09-10 21:59:48 UTC
ok after 2nd test
loadkeys work good


not i got consolefont to work good in 2.6.0 too !
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-01 14:02:33 UTC
Created attachment 20074 [details]
/etc/init.d/consolefont

I missed this one, as it was busy time at work, sorry.	Anyhow, latest unstable
kbd should have a patch, and this is official /etc/init.d/consolefont.	More
info about the patch (from RH):

  bug #32279
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-01 14:03:14 UTC
This script will be in next baselayout.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-01 14:03:33 UTC
.
Comment 11 Yuri Enshin 2003-11-01 14:42:39 UTC
This patch don't solve 100% of problems with font loading. Without patching
2.6 kernel unicode map can't be loaded for right condole. Instead of specified
by -tty param, unimap always loaded to foreground console. This a) make font
mapping incorrect on specified console and b) destroy current (correct) font
mapping on foreground console, if loaded font different from current on fg
console.
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-01 15:47:36 UTC
Created attachment 20084 [details, diff]
2.6.0-test9-bk5-IO_UNIMAP-current-con.patch

Have you reported this to LKML yet ?  Below patch might fix it, but I am
not
sure on if both PIO_UNIMAP and GIO_UNIMAP should work on current fd ...