init scripts don't set console fonts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| console-setup (Ubuntu) |
High
|
Evgeniy Yanyuk |
Bug Description
1) lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
2) apt-cache policy keyboard-
keyboard-
Installed: 1.108ubuntu9
Candidate: 1.108ubuntu9
Version table:
*** 1.108ubuntu9 0
500 http://
100 /var/lib/
3) I expected to have cyrillic font for consoles (/dev/tty[1-6]) after
sudo dpkg-reconfigure console-setup
and reboot
4) I have cyrrilic font until I reboot. After reboot I have black boxes instead cyrillic chars.
If I do:
setfont /etc/console-
then I have cyrrilic font in current console
I found that these scripts
/usr/share/
/lib/udev/
cannot properly set console fonts.
They don't recognize option CODESET="guess" and FONTSIZE="*x*" and check if exist only *.psf file, but we have *.psf.gz
I get part of code from /bin/setupcon and paste it in
/usr/share/
/lib/udev/
and add extra test for psf.gz and acm.gz files
The attachment contain original scripts, fixed scripts and patches.
Related branches
- Mathieu Trudel-Lapierre: Approve on 2016-04-19
-
Diff: 275 lines (+189/-4)4 files modifiedconsole-setup-tty (+58/-2)
debian/changelog (+9/-0)
debian/console-setup.initramfs-hook (+64/-0)
debian/console-setup.initramfs-top (+58/-2)
Evgeniy Yanyuk (eugenenuke) wrote : | #1 |
Evgeniy Yanyuk (eugenenuke) wrote : | #3 |
Sorry, I have overlooked two more files:
/usr/share/
/usr/share/
The patch is in the attachment.
tags: | added: wily |
Evgeniy Yanyuk (eugenenuke) wrote : | #4 |
Xenial also contain this bug. I did clean install xenial desktop amd64 in the VirtualBox. After installation I have switched to the text console (Ctrl+Alt+F1) and I've got boxes instead cyrillic fonts.
cat /etc/default/
-------
# CONFIGURATION FILE FOR SETUPCON
# Consult the console-setup(5) manual page.
ACTIVE_
CHARMAP="UTF-8"
CODESET="guess"
FONTFACE="Fixed"
FONTSIZE="8x16"
VIDEOMODE=
# The following is an example how to use a braille font
# FONT='lat9w-
-------
And again we have CODESET="guess" and FONTSIZE="8x16"
cat /lib/udev/
I have cut other code and keep only setup_font ()
-------
setup_font () {
# Set the font and ACM. setfont will silently do nothing for a console
# in graphics mode.
SETFONT_ARGS=
if [ "$FONT" ]; then
FONT="
FONT="${FONT%.gz}"
else
FONT="
fi
if [ -f "$FONT" ]; then
SETFONT_
fi
if [ "$ACM" ]; then
ACM="/
ACM="${ACM%.gz}"
else
ACM="/
fi
if [ -f "$ACM" ]; then
SETFONT_
fi
if [ "$SETFONT_ARGS" ]; then
setfont -C "$1" $SETFONT_ARGS
fi
}
-------
In our case FONT will be "/etc/console-
But we have
ls /etc/console-setup/
/etc/console-
So FONT must be "/etc/console-
because the next check
if [ -f "$FONT" ]; then
will fail with an uncompressed file.
The /bin/setupcon script has code for CODESET="guess" and FONTSIZE="8x16", but
/lib/udev/
/usr/share/
/usr/share/
/usr/share/
have not
apt-cache policy keyboard-
keyboard-
Installed: 1.108ubuntu13
Candidate: 1.108ubuntu13
tags: | added: xenial |
Evgeniy Yanyuk (eugenenuke) wrote : | #5 |
My LANG="ru_RU.UTF-8"
Evgeniy Yanyuk (eugenenuke) wrote : | #6 |
Finally I have patched files in console-
To apply cd to root of source code and
zcat console-
Evgeniy Yanyuk (eugenenuke) wrote : | #7 |
I have rebuilt keyboard-
Launchpad Janitor (janitor) wrote : | #8 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in console-setup (Ubuntu): | |
status: | New → Confirmed |
Pavel Sandovin (sandovin) wrote : | #9 |
Please fix this trouble. How long can you keep in open? I remember this bug for at least 5 years!
Nazar Mokrynskyi (nazar-pc) wrote : | #10 |
Thanks Eugene, hopefully this patch will land in 16.04.0
Alex_ander (ks-alexandr) wrote : | #11 |
confirm this bug
it is very annoying
Gannet (ken20001) wrote : | #12 |
Also tired of this bug. Please add this patch upstream. Thanks.
sedarmill (sedarmill) wrote : | #13 |
1 year ago
http://
Affected all systemd versions - 15.04 15.10 16.04 This nigrodistr is awesome
Fedya (fedya-rtafov) wrote : | #14 |
Actual for Xenial (16.04 LTS ).
san013 (san013) wrote : | #15 |
+1
no longer affects: | console-setup |
Changed in console-setup (Ubuntu): | |
importance: | Undecided → High |
Evgeniy Yanyuk (eugenenuke) wrote : | #16 |
I have uploaded the fix to launchpad:
https:/
Please, review it.
Changed in console-setup (Ubuntu): | |
assignee: | nobody → Evgeniy Yanyuk (eugenenuke) |
Changed in console-setup (Ubuntu): | |
status: | Confirmed → In Progress |
description: | updated |
information type: | Public → Public Security |
information type: | Public Security → Public |
Alexander (sality) wrote : | #17 |
+1
вовчик (mvi-vovchik) wrote : | #18 |
5 years above us scoffed. love ubuntu is low.
Alexandr (jumpjet68) wrote : | #19 |
Confirm bug in ubuntu 16.04 beta 2 with latest updates (2016.04.12)
information type: | Public → Public Security |
information type: | Public Security → Public |
I'm reviewing this now. At first glance it looks pretty good, but I'll pretend I can read cyrillic and a few other languages and give it some extra testing before uploading :)
Evgeniy Yanyuk (eugenenuke) wrote : | #21 |
Thanks for spending your time for this. You can switch to any text console (Ctrl+Alt+F[1-6]), and run:
LANG=ru_RU.UTF8 date
I suppose, you'll see white boxes instead day of week and month.
Yeah, I saw it with just 'sudo apt update', which is translated.
Running setupcon fixes this, and the changes look otherwise correct (I'll update to my test package and upload in a moment)
Launchpad Janitor (janitor) wrote : | #23 |
This bug was fixed in the package console-setup - 1.108ubuntu15
---------------
console-setup (1.108ubuntu15) xenial; urgency=medium
* Properly handle settings CODESET and FONSIZE when they equals 'guess' or are unset.
- console-setup-tty, debian/
debian/
(LP: #1565542)
-- Evgeniy Yanyuk <email address hidden> Tue, 19 Apr 2016 15:22:17 -0400
Changed in console-setup (Ubuntu): | |
status: | In Progress → Fix Released |
Gannet (ken20001) wrote : | #24 |
$ cat /etc/default/
# CONFIGURATION FILE FOR SETUPCON
# Consult the console-setup(5) manual page.
ACTIVE_
CHARMAP="UTF-8"
CODESET="guess"
FONTFACE="Fixed"
FONTSIZE="16x8"
VIDEOMODE=
# The following is an example how to use a braille font
# FONT='lat9w-
The attachment "Here are original files+fixed files+patches" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]