Fonts do not get set when one boots using usplash

Bug #87031 reported by M. Vefa Bicakci
6
Affects Status Importance Assigned to Milestone
usplash (Ubuntu)
Confirmed
Undecided
Colin Watson

Bug Description

Hello,

I am a Turkish user of Ubuntu and I am having
a problem regarding the console fonts. By
console I mean the black Linux console which
one accesses using Ctrl-Alt-F1.

When I boot using usplash, the console fonts
do not get set properly and I have to run
"setupcon" manually as root before I am able
to type and see Turkish characters on the
console.

When one boots with usplash, the fonts do not
get set because setupcon sets up only
the keyboard in /etc/rcS.d/S49console-setup.

I tried to modify the line which reads
  setupcon -k --force
to
  setupcon --force
but this did not fix the problem. I still had
to run setupcon manually as root.

When I boot without usplash by removing the
"splash" keyword from the kernel command line
in GRUB, the console font gets set properly
and I am able to type and see Turkish characters.

So, the problem is that when usplash is used to
boot, the console fonts do not get set up and
one cannot use international characters on the
console until setupcon gets executed by root.

Thank you for any help,
situert

Revision history for this message
Colin Watson (cjwatson) wrote :

I fixed this a little while ago in Feisty:

console-setup (1.13ubuntu6) feisty; urgency=low

  * Set keymap and font in the initramfs if possible. Setting these as early
    as possible is a good thing; we can't set up the font correctly once
    usplash is running; and setting up the font between usplash and X
    requires an ugly mode switch.

 -- Colin Watson <email address hidden> Mon, 22 Jan 2007 14:21:24 +0000

Changed in console-setup:
assignee: nobody → kamion
status: Unconfirmed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

reopening by request of submitter

Changed in console-setup:
status: Fix Released → Unconfirmed
Revision history for this message
M. Vefa Bicakci (mvb) wrote :

/etc/default/console-setup is attached.

Revision history for this message
M. Vefa Bicakci (mvb) wrote :

initramfs is attached.

Revision history for this message
M. Vefa Bicakci (mvb) wrote :

This bug exists in Edgy Eft and Feisty Herd 4.
(Both are Kubuntu.)

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

I had the same problem on feisty today
seems the same bug as
https://launchpad.net/ubuntu/+source/console-data/+bug/69559
which I fixed in /etc/init.d/usplash .
I'm using kubuntu here too.

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

@Colin Watson:
Your change to initramfs seems to do it's job very well - thanks !
But unfortunately usplash breaks it again, so I needed to fix it again here as soon as usplash is going away.

Please have a look at my patch in #69559:
http://librarian.launchpad.net/6861279/console-setup-usplash.patch

Setting to confirmed.

Changed in console-setup:
status: Unconfirmed → Confirmed
Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

changing package to uspash, because this one is breaking things

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

Unfortunately my patch to /etc/init.d/usplash does not help in case of resume from disk (hibernate) where usplash breaks it again.

BTW
I use nvidia binary driver, which seems to prevent vesafb/nvidiafb from working. May this lead usplash to mess with the screen ? Additionally usplash complains about not being able to switch to 1280x1024 (which is my TFT) and uses 1024x786 instead. That's all pretty weird IMHO :-/

Revision history for this message
Kurt J. Bosch (kujub-deactivatedaccount) wrote :

A fix for resume:
http://librarian.launchpad.net/6877480/66-console-setup.sh

Additional comment:
Even worse is this bug, when I configure console-setup FONTSIZE="8" which I did to get more lines without having higher resolution (fbcon not working) :
When it goes wrong, fontsize defaults to 16 and then bottom halfs of consoles are completely out of visible screen area. So someone who does not know about setupcon can only use 25 lines and then the prompt and his inputs get invisible.

Revision history for this message
bd (bdabelow) wrote :

> Please have a look at my patch in #69559:
> http://librarian.launchpad.net/6861279/console-setup-usplash.patch

The patch allone did not work for me, because console-setup does not do anything when started on tty8. I also had to change
        if expr "$(fgconsole 2>/dev/null || true)" : '[1-6]$' >/dev/null && \
to
        if expr "$(fgconsole 2>/dev/null || true)" : '[1-68]$' >/dev/null && \
 in /etc/init.d/console-setup.

Works for me, but I am not absolutely sure this is the way to go.

Revision history for this message
Scott Merrilees (scott.merrilees) wrote :

I too selected FONTSIZE="8" and have the same issue as Kurt. I used to just say vga=791 as part of the kernel boot args, and that worked for me, or maybe that was a few distros ago ...

Revision history for this message
Colin Watson (cjwatson) wrote :

I think I've fixed this as bug 91422.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.