manjaro / manjaro-settings-manager

This repo has been archived. Our code is now hosted at
https://gitlab.manjaro.org/
GNU General Public License v3.0
18 stars 19 forks source link

keymap inconsistency between /etc/vconsole.conf and localectl #143

Open YoyPa opened 6 years ago

YoyPa commented 6 years ago

When I choose fr-latin9 ("French (alt., Latin-9 only)") localectl status show:

$ localectl status           
   System Locale: LANG=fr_FR.UTF-8
       VC Keymap: fr
      X11 Layout: fr
       X11 Model: pc105
     X11 Variant: oss_latin9

But /etc/vconsole.conf is set to:

$ cat /etc/vconsole.conf 
KEYMAP=fr
FONT=
FONT_MAP=

So I have to manually change it to fr-latin9 to be able to type my password in tty2 or to decrypt my filesystem at startup.

scachemaille commented 6 years ago

could you check in journal the logs of msm and post them or start msm from terminal and post the debugs outputs.

YoyPa commented 6 years ago

from journalctl:

avril 27 18:51:16 yo-gs dbus-daemon[675]: [system] Activating service name='org.manjaro.msm.keyboard' requested by ':1.515' (uid=1000 pid=3518 comm="manjaro-settings-manager ") (using servicehelper)
avril 27 18:51:16 yo-gs dbus-daemon[675]: [system] Successfully activated service 'org.manjaro.msm.keyboard'
avril 27 18:51:16 yo-gs systemd-localed[3951]: Changed X11 keyboard layout to 'fr' model 'pc105' variant 'oss_latin9' options ''
avril 27 18:51:16 yo-gs systemd-localed[3951]: Changing virtual console keymap to 'fr' toggle ''
avril 27 18:51:16 yo-gs systemd[1]: Starting Setup Virtual Console...
avril 27 18:51:16 yo-gs systemd[1]: Started Setup Virtual Console.
YoyPa commented 6 years ago

I edited my first post:

$ localectl status           
       VC Keymap: fr-latin9

Became

$ localectl status           
       VC Keymap: fr

Reason: I used the command localectl status while my vconsole file was manually edited to fr-latin9 by pure laziness so output was incorrect sorry, doesn't change the issue.

scachemaille commented 6 years ago

it seems systemd-localed convert to "fr" the x11 options for vconsole.. :thinking:

YoyPa commented 6 years ago

Just seen the code come from Calamares, so maybe i should directly check with a Calamares install and report to them if behaviour is the same, then come back here when/if it's fixed "upstream"

scachemaille commented 6 years ago

msm use localed deamon to set the keyboard. using "SetX11Keyboard" method with "convert" to true to let it convert the mapping for vconsole.

it seems the daemon convert "fr oss_latin9" to just fr. there is the "French (legacy, alt.)" that would certainly be translated to fr-latin9 as the variant is latin9 I don't know the difference between oss_latin9 and latin9

YoyPa commented 6 years ago

Thanks for your digging :). You are right "French (legacy, alt.)" is correctly set to fr-latin9 in vconsole.conf.

I also digged a bit and fr-oss was meant to replace fr-latin9: https://bugzilla.redhat.com/show_bug.cgi?id=485137#c0 A short list of differences (in french): http://idoric.free.fr/dotclear/index.php/post/2006/12/05/La-disposition-de-clavier-francais-fr-oss

Found nothing on the deference between fr-oss and fr-oss_latin9. fr-oss doesn't exist for vconsole, but is more similar to fr-latin9, not fr.