Please help me to fix localization problems in console mode.
In graphical enviroment display language, fonts, keyboard layouts, layout toggle are all fine, but on tty console there are problems.
The english messages and input are fine, but I cannot change keyboard layout to local language(greek), except if I manually input the command: loadkeys gr. Then I can change to greek, but the character aren't readable(appear not greek but ieroglyphycs).
I've set the locale with localectl:
localectl set-locale "LANG=el_GR.utf8", "LC_MESSAGES=el_GR.utf8"
and also the keymap with:
localectl set-keymap en gr
But still I cannot toggle layouts, or have readable characters.
What I'm missing? I've searched but I only found older results with editing rc.conf, which I tried but don't work either.
Have you edited or created /etc/vconsole.conf
It must have the next line:
Yes, this is what "localectl set keymap" does.
Maybe it is because you have 2 languages selected
Your first post:
localectl set-keymap en gr
Could you see how is your file /etc/vconsole.conf?
Sorry I've read your post again. It could be your console font have not greek chars.
It could be UTF-8, not utf8. So you haven't unicode chars in console.
Here are keymaps, I don't see Greek to know the exact typo.
It is for KEYMAP variable in vconsole.conf (Edit 3)
Last edited by Alber (2013-01-20 21:11:39)
This is my vconsole.conf:
KEYMAP=en KEYMAP_TOGGLE=gr FONT=iso07u-16 FONT_MAP=
I don't think that the 2 languages cause the problem(I tried and only with gr, but no change).
The font is for greek language. I added it to vconsole.conf. For FONT_MAP I don't know what to put, and I didn't find something about it on wiki.
Last edited by dancer69 (2013-01-20 20:57:12)
Could you try UTF-8 and regenerate locals.
Sorry about the edits.
What you mean?
I already have generate locale for el.GR.utf8.
utf8 may not equal UTF8. The suggestion is to try the latter.
What does locale -a give?
In /etc/locale.conf, I have
Could you try:
NO neet to do a locale-gen, it is whe you edit /etc/locale.gen.
Last edited by Alber (2013-01-20 23:37:14)
Okay, seems that vconsole.conf just ignored on boot, because, with
I can change layouts, and with
setfont iso07-16.pfsu.gz(which is the same font I have on vconsole.conf) the greek characters displayed fine.
I found this thread:
which seems is same with my problem. It has a working solution, but I don't know how to do it(especially order systemd thing), but I'll try to find some info.
Last edited by dancer69 (2013-01-20 21:13:29)
I think it could be help. I didn't do a deep reading. A bit is using rc.conf [about yhe next link)
Last edited by Alber (2013-01-20 21:28:38)
After a lot search, following the directions of above link posts, I have still problem with wrong greek characters on tty consoles. I've made some progress though.
Right now my vconsole.conf is this:
KEYMAP=us KEYMAP_TOGGLE=gr FONT=iso07u-16 FONT_MAP=8859-7
and the HOOKS on mkinitcpio.conf is:
HOOKS="base udev plymouth autodetect modconf block filesystems usbinput fsck consolefont keymap"
With above settings I can swich keyboard layouts and write in both english/greek. The problem is that still the greek characters don't appear correct.
Some characters are correct and other(most) appear as white squares and strange symbols. If I login to my account and run:
then all greek characters appear correct. If I login as root and type the above command, then again I get wrong characters but now the white squares replaced by ωωω with some strange accents. I can still write greek correct though.
Is something more that need to be done?