Hi,

I realize that font is not set correctly only on tty1, that tty with plymouth splash running. Cannot imagine how could I miss this. I will retitle the bugreport. Sorry.

I debug console-setup script and it is properly executed and calls setupcon. Setupcon then calls setfont on every tty but returns error on tty1:

setfont -v -C /dev/tty1 /usr/share/consolefonts/Lat2-Terminus16.psf.gz  -v
setfont: graphics console /dev/tty1 skipped

If I enable bootlogd in /etc/default/bootblogd I can see some messages on tty1. All messages from S init level are distorted (carriage does not return on new lines). Since console-setup is executed (end of S level) messages are ok even on tty1. But fonts is set only in tty[2-6].

In your respond I saw console-screen.sh init script which comes from console-tools. It is deprecated, isn't it? You probably do not use it anymore? In any case I tried to replace kbd with console-tools. If I understand right, console-setup (in fact setupcon) will just use consolechars from console-tools to set fonts. Setfont from kbd is used otherwise. Apart from random console switching whenever trying to set fonts nothing changed, no error was printed when trying to set font on tty1, but the font was definitely not set.

consolechars -v --tty=/dev/tty1 -f /usr/share/consolefonts/Lat2-Terminus16.psf.gz Loading 256-chars 8x16 font from file `/usr/share/consolefonts/Lat2-Terminus16.psf.gz'.
Setting kernel SFM.

Actually It tries to setup every console three times, last run on tty1 returns this error:

consolechars -v --tty=/dev/tty1 -f /usr/share/consolefonts/Lat2-Terminus16.psf.gz Loading 256-chars 8x16 font from file `/usr/share/consolefonts/Lat2-Terminus16.psf.gz'.
set_kernel_font: Invalid argument

I didn't try to completely remove console-setup and configure console-tools to doing things alone, I think it wouldn't work either.

So the problem is setfont refuses to set font on tty1 because it is considered as graphics console. Console chars probably tries but font is not changed in result. Do you have correct font on tty1?

Now I don't know if this is something you can make anything with. Maybe this is bug in setfont? Maybe this is by design?

Only workaround I have found is to call "setupcon --force" from rc.local.

I must add --force option because it is run on /dev/pty/? and setupcon refuses to set fonts on non tty devices. I don't know if it is not dangerous but it works for me. This must be called after plymouth finish, otherwise it will not work at all.

Cheers, Petr

--
S pozdravem,
Petr Gajdůšek



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to