You are not logged in.

#1 2019-07-11 10:25:57

quarroz
Member
Registered: 2019-07-11
Posts: 7

[Solved] Keyboard layout stuck in US

Hi everyone }

I have just successfully install Archlinux on my computer following the Installation Guide. I have now a problem I tried to solve since more than 1 hour : the keyboard layout is stuck in US mode ...

During the installation, there were no problem. I could use the command "loadkeys fr_CH" or "loadkeys fr_CH-latin1" and it works.

Now, this command does not even work. By making a "sudo loadkeys fr_CH-latin1", it returns nothing but also do nothing as the keyboard stay US.

The return of "localectl" is the following :

   System Locale: LANG=en-US.UTF-8
       VC Keymap: fr_CH
      X11 Layout: n/a

I set the /etc/locale.conf as "LANG=en-US.UTF-8"

I set the /etc/vconsole.conf as
"
KEYMAP=fr_CH
FONT=eurlatgr
"

I did not find any answer in the wiki or in the forum. I hope you can help me.

Thank you for your time !

Last edited by quarroz (2019-07-11 14:48:16)

Offline

#2 2019-07-11 10:38:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Keyboard layout stuck in US

Actually in a console shell or in a GUI shell?
For the latter, see https://wiki.archlinux.org/index.php/Xo … figuration

Offline

#3 2019-07-11 13:43:07

quarroz
Member
Registered: 2019-07-11
Posts: 7

Re: [Solved] Keyboard layout stuck in US

You notice it right : I was trying to have the keyboard for GNU shell. The console shell was correctly set up. Thank you.

I had this line in the .xprofile file :

setxkbmap ch -variant fr -option caps:super

accordingly to the list in /usr/share/X11/xkb/rules/base.lst

Still, I have an other question : The keyboard is now well defined except for accent character like é, à è ç ... Do I have to change the FONT value in console.conf ? I know it has something to do with the encoding but I don't know where to set it...

Thank you !

Offline

#4 2019-07-11 13:48:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Keyboard layout stuck in US

vconsole.conf has no impact on X11 keyboard/output.
Where do you expect the accented chars, does your keyboard look like this: http://kbdlayout.info/KBDSF/
What actually happens if you press the relevant keys?

Offline

#5 2019-07-11 14:02:11

quarroz
Member
Registered: 2019-07-11
Posts: 7

Re: [Solved] Keyboard layout stuck in US

Ok Ok

So except the numerical part on the right, it is exactly this keyboard.

When I want to use this key in the terminal, I get first nothing and then a question mark in a lozenge by pressing space :

Note that in tty console, this accent key make absolutely nothing.

Offline

#6 2019-07-11 14:04:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Keyboard layout stuck in US

Smells like a locale issue, output of "locale" and "locale -a"?

Offline

#7 2019-07-11 14:08:15

quarroz
Member
Registered: 2019-07-11
Posts: 7

Re: [Solved] Keyboard layout stuck in US

locale :

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en-US.UTF-8
LC_CTYPE="en-US.UTF-8"
LC_NUMERIC="en-US.UTF-8"
LC_TIME="en-US.UTF-8"
LC_COLLATE="en-US.UTF-8"
LC_MONETARY="en-US.UTF-8"
LC_MESSAGES="en-US.UTF-8"
LC_PAPER="en-US.UTF-8"
LC_NAME="en-US.UTF-8"
LC_ADDRESS="en-US.UTF-8"
LC_TELEPHONE="en-US.UTF-8"
LC_MEASUREMENT="en-US.UTF-8"
LC_IDENTIFICATION="en-US.UTF-8"
LC_ALL=

locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US
en_US.iso88591
en_US.utf8
fr_CH
fr_CH.iso88591
fr_CH.utf8

Offline

#8 2019-07-11 14:22:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,500

Re: [Solved] Keyboard layout stuck in US

LANG=en-US.UTF-8
LANG=en_US.UTF-8

Spot the difference…

Offline

#9 2019-07-11 14:47:50

quarroz
Member
Registered: 2019-07-11
Posts: 7

Re: [Solved] Keyboard layout stuck in US

Oh well see !

Always stupid mistake at the end.

Thank you it is working.

Offline

Board footer

Powered by FluxBB