You are not logged in.

#1 2012-09-08 09:48:09

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

[SOLVED] Wrong locale and keymap in Display Manager

Ok, it's not a big deal, but it's driving me nuts...

I have 2 very similar Arch setups in dual boot on my laptop. I can't figure out why the display manager (LightDM in both cases) uses english locale and us keyboard layout only in one of the two installs.

They both have the same /etc/locale.conf:

LANG=it_IT.UTF-8
LC_COLLATE=C

and the same /etc/vconsole.conf:

KEYMAP=it
FONT=Lat2-Terminus16
FONT_MAP=8859-1_to_uni

/etc/locale.gen are identical too.
The boot parameters are identical and the CPIO hooks and modules are the same.

Thanks for any help.

Besides, TTY keymap is correct and so are locale and keymap once I login (both in console and XFCE), so somehow - and only in one case - the DM alone can't retrieve the correct locale and keymap.

It has to be trivial, but I really don't know where else to look and I couldn't find any useful topic.

P.S.: I used to experience the same issue before I switched to systemd.

Last edited by hermes (2012-09-08 11:32:14)


Linux Registered User #362737

Offline

#2 2012-09-08 10:48:27

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Wrong locale and keymap in Display Manager

Did you remember to run locale-gen after editing "/etc/locale.gen" ?

Post the output of:

$ locale -a
$ locale
$ ls -l /etc/locale.conf

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-09-08 11:11:48

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

Re: [SOLVED] Wrong locale and keymap in Display Manager

DSpider wrote:

Did you remember to run locale-gen after editing "/etc/locale.gen" ?

Yes.

DSpider wrote:

Post the output of:

$ locale -a
$ locale
$ ls -l /etc/locale.conf
$ locale -a
C
POSIX
en_US
en_US.iso88591
en_US.utf8
it_IT
it_IT.iso88591
it_IT.iso885915@euro
it_IT.utf8
it_IT@euro
italian
 $ locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=
 $ ls -l /etc/locale.conf
-rw-r--r-- 1 root root 30 Jul 29 15:33 /etc/locale.conf

Linux Registered User #362737

Offline

#4 2012-09-08 11:17:55

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Wrong locale and keymap in Display Manager

Your locales are fine. Since "LightDM" is a graphical manager, it probably uses the Xorg keyboard layout. The keymap settings are for the console only (/etc/vconsole.conf should've tipped you off). You need to add a keyboard layout for Xorg.

See the Xorg wiki page and don't forget to mark the topic as solved.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-09-08 11:31:57

hermes
Member
From: Lucca, Italy
Registered: 2010-05-19
Posts: 99

Re: [SOLVED] Wrong locale and keymap in Display Manager

Thank you, I missed the /etc/X11/xorg.conf.d/20-keymap.conf I have in the other system:

Section "InputClass"
        Identifier "Acer Keyboard"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Option "XkbLayout" "it"
        Option "XkbModel" "acer_laptop"
        Driver "evdev"
EndSection

The locale issue is solved by adding

LANG=it_IT.utf8

to /etc/environment.


Linux Registered User #362737

Offline

Board footer

Powered by FluxBB