You are not logged in.

#1 2013-08-31 16:30:57

geoffm
Member
Registered: 2012-01-15
Posts: 30

Keyboard layout won't change for CF [solved]

kbd package is installed.
my layout's file is there:

[geoff@arch ~]$ find /usr/share/kbd/keymaps/ -name '*cf*'
/usr/share/kbd/keymaps/i386/qwerty/cf.map.gz

can't change using either commands mentionned in the wiki on configuring keyboard layouts or KEYMAP:

[geoff@arch ~]$ localectl set-keymap cf
[geoff@arch ~]$ localectl set-x11-keymap cf
[geoff@arch ~]$ setxkbmap -layout cf
Error loading new keyboard description

the file /etc/rc.conf is empty (this is strange)

the file /etc/X11/xorg.conf.d/01-keyboard-layout.conf contains:

Section "InputClass"
        Identifier "keyboard-layout"
        Driver "evdev"
        MatchIsKeyboard "yes"
        Option "XkbLayout" "cf"
EndSection

using ArchBang.

Last edited by geoffm (2013-08-31 21:21:19)

Offline

#2 2013-08-31 16:35:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Keyboard layout won't change for CF [solved]

geoffm wrote:

the file /etc/rc.conf is empty (this is strange)

/etc/rc.conf has been obsoleted a while ago https://www.archlinux.org/news/end-of-i … s-support/ , that part of the wiki is out of date.


Edit: What's the output of 'localectl '?
There's https://bugs.archlinux.org/task/36689 but I'm not sure if it's related.



Edit 2

# localectl set-keymap cf

works for me.

Last edited by karol (2013-08-31 16:45:14)

Offline

#3 2013-08-31 17:56:25

geoffm
Member
Registered: 2012-01-15
Posts: 30

Re: Keyboard layout won't change for CF [solved]

karol wrote:

What's the output of 'localectl '?

[geoff@arch ~]$ localectl
   System Locale: LANG=en_DK.utf8
                  LC_NUMERIC=en_DK.UTF-8
                  LC_TIME=en_DK.UTF-8
                  LC_MONETARY=en_DK.UTF-8
                  LC_PAPER=en_DK.UTF-8
                  LC_MEASUREMENT=en_DK.UTF-8
       VC Keymap: cf
      X11 Layout: cf

Offline

#4 2013-08-31 18:14:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Keyboard layout won't change for CF [solved]

So ... did it work?

Offline

#5 2013-08-31 20:55:37

geoffm
Member
Registered: 2012-01-15
Posts: 30

Re: Keyboard layout won't change for CF [solved]

Did what work?
localectl set-keymap cf ?
Same result as shown in my first post: nothing.

Offline

#6 2013-08-31 21:06:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Keyboard layout won't change for CF [solved]

What do you mean 'nothing'? If there's no error, just the prompt, it means the command executed OK. http://www.linfo.org/rule_of_silence.html

See e.g.

$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
                  LC_MESSAGES=C
       VC Keymap: pl2
      X11 Layout: pl
$ sudo localectl set-keymap cf
$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
                  LC_MESSAGES=C
       VC Keymap: cf
      X11 Layout: ca
       X11 Model: pc105
     X11 Options: terminate:ctrl_alt_bksp
$ sudo localectl set-keymap pl 
$ sudo localectl set-x11-keymap pl
$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
                  LC_MESSAGES=C
       VC Keymap: pl2
      X11 Layout: pl

Offline

#7 2013-08-31 21:20:37

geoffm
Member
Registered: 2012-01-15
Posts: 30

Re: Keyboard layout won't change for CF [solved]

the command provided no output, and the keyboard map stayed US.
Now I found the culprit, thanks to this post
in /usr/share/X11/xkb/rules/xorg.lst , the code for the French Canadian keyboard was ca. Weird, because it's always been cf on all platforms.
I changed it for cf. I also had to go to cinnamon Region & Language settings and change the input type de French (Canada). Seems to work both in console and DE now.
Thank you for participating.

Offline

Board footer

Powered by FluxBB