Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37596 - 2.6.0 consolefont is only aplied to tty1
Summary: 2.6.0 consolefont is only aplied to tty1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 05:24 UTC by AlterEgo
Modified: 2004-02-15 11:57 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AlterEgo 2004-01-08 05:24:37 UTC
kernel 2.6.1-rc3: 
set consolefont in /etc/rc.conf.
found out that the consolefont is only aplied to my first console.

/etc/init.d/consolefont points partially to:
*  sys-apps/console-tools [ Masked ]
      Latest version available: 0.3.2
      Latest version installed: 1.06-r1

From the thread in the forums:
Possible solution:

After looking inside the consolefont script i saw that there are two sections of setting the consolefont. The kbd section which is used in a normal gentoo setup and the console-tools section. The console-tools section provides a more elegant solution to this problem (consolechars which is apparently in the console-tools has a paramater to state the console: consolechars --tty). So i decided to emerge console-tools, but emerge says it is masked.

So the only remaining question is why is console-tools masked, will it break my system or is it just that it can't co-exist with kbd.


Reproducible: Always
Steps to Reproduce:




Brand new x86 and ~x86 installs behave the same way.
Have not tested with kernels other than 2.6, but they seem to be OK.

emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1-rc2)
=================================================================
System uname: 2.6.1-rc2 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector  -Os -pipe 
-fomit-frame-pointer "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -mmmx -m3dnow -msse -fstack-protector  -Os -pipe 
-fomit-frame-pointer "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache prelink sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-s -j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/apps/ebuilds"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups encode esd exif foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib java jikes jpeg kde libg++ libwww mad mikmod motif
mozsvg mpeg ncurses nls oggvorbis opengl oss pam pdflib perl pic png ppds python
qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd truetype
x86 xml2 xmms xv zlib"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-01-09 04:17:48 UTC
According to package.mask, console-tools is masked because it is deprecated.
Comment 2 AlterEgo 2004-01-19 06:24:27 UTC
Baselayout 1.8.6.12-r3 AND kbd 1.08-r4 together fix the problem.
I still consider this a bug, since the versions mentioned are not available for non "~x86" users.
Comment 3 Narada Sage 2004-01-23 04:45:19 UTC
I agree with additional comment #2.  To that I'd like to add that even with baselayout 1.8.6.12-r3 and kbd 1.08-r4 the consolefont is not applied to vt10 (alt-f11) and vt11 (alt-f12 - the logger console).  Perhaps this could be looked at in conjunction with this bug.  I've changed /etc/inittab and /etc/init.d/bootsplash to provide 0-11 agettys (except 7).
Comment 4 Narada Sage 2004-01-23 05:00:36 UTC
To resolve the problem of no consolefont in tty11 and tty12 (last two) I made the following changes.  Line 33 and line 60 in /etc/init.d/consolefont were changed to the line below.  That fixed the problem although strictly speaking it only needs to be applied to line 33.

for x in 1 2 3 4 5 6 8 9 10 11 12
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2004-01-28 13:21:20 UTC
I propose to change this part of the ebuild to:

if [ -e /dev/.devfsd ] || [ -e /dev/.udev -a -d /dev/vc ]
then
	for x in /dev/vc/*
	do
		/bin/setfont ${CONSOLEFONT} ${param} \
			--tty=${x} >/dev/null
		retval=$?
	done
else
	for x in /dev/tty*
	do
		/bin/setfont ${CONSOLEFONT} ${param} \
			--tty=${x} >/dev/null
		retval=$?
	done
fi

This way we can have the appropriate font set on all consoles, even those beyond the 12th one. There are people who actually use these vc's and we since can easily support all consoles, why not do so?
Comment 6 Ed Catmur 2004-01-30 03:49:31 UTC
Please continue discussion of vts 11+ in bug 39863
Comment 7 Ed Catmur 2004-01-30 04:01:21 UTC
See also bug 39864 - changes needed to /etc/init.d/consolefont to ensure setting
font on all vts still works after upgrade sys-apps/kbd-1.08-r5 to 
sys-apps/kbd-1.12 (referencing here as symptoms are identical but cause, solution 
are different).
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-15 11:57:28 UTC
This is fixed by latest baselayout (original problem).