You are not logged in.

#1 2015-06-08 04:47:38

esa
Member
Registered: 2011-12-29
Posts: 143
Website

[solved] Keymap set, but getting en_US only (gui+console)

Heyas

I'm having difficulties to get my keyboard layout properly to swiss-german. (both, console and X)
* https://wiki.archlinux.org/index.php/Be … and_keymap
* https://wiki.archlinux.org/index.php/Locale
* https://wiki.archlinux.org/index.php/Lo … ult_locale
* https://wiki.archlinux.org/index.php/Lo … g_language

However, its (the fonts) not been a -manual- installation as from a tarball, but using AUR (pacman).

Arch:

0 ~ $ localectl
   System Locale: LANG=de_CH.UTF-8
       VC Keymap: ch
      X11 Layout: n/a

0 ~ $ grep -v '#' /etc/{locale,vconsole}.conf 
/etc/locale.conf:LANG=de_CH.UTF-8
/etc/vconsole.conf:KEYMAP=ch
/etc/vconsole.conf:FONT=eurlatgr

grep -v '#' /etc/locale.gen 
de_CH.UTF-8 UTF-8  
en_US.UTF-8 UTF-8  

Fedora: (this was just taken as reference to be sure i used the same settings, as they work there)

# localectl output was copypasted before rebooting
    System Locale: LANG=de_CH.UTF-8
       VC Keymap: ch
      X11 Layout: ch

tmp/etc/locale.conf:LANG="de_CH.UTF-8"
tmp/etc/vconsole.conf:KEYMAP="ch"
tmp/etc/vconsole.conf:FONT="eurlatgr"

Dont tell me its the quotes, there are no quotes in the wiki.
Any ideas please? (aka; what did i miss?)
Thank you in advance.

NOTE:
I've been trying to install system-config-language, but there is no such package in AUR ( pacman -Q sys) (i used to use that tool on my fedora installation using awesome wm)

EDIT>
Even having

LANG=de_CH.UTF-8 awesome &

in xinitrc doesnt help to get my keymap loaded sad

Last edited by esa (2015-06-08 14:03:14)


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#2 2015-06-08 10:13:59

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

Re: [solved] Keymap set, but getting en_US only (gui+console)

Post the commands you used to setup the locale and their output and the output of 'locale -a'.

Is 'eurlatgr' a proper FONT?

$ cat /etc/vconsole.conf 
FONT=ter-v16n
FONT_MAP=8859-2
KEYMAP=pl2

Offline

#3 2015-06-08 10:41:34

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: [solved] Keymap set, but getting en_US only (gui+console)

Yes it is: /usr/share/kbd/consolefonts/eurlatgr.psfu.gz7
European Latin Greek, at least thats how i recall it tongue

locale -a
C
de_CH.utf8
POSIX

Sorry, cant post the 100% for sure commands i used, history is not long enough.
But just as the wiki said, i did edit the /etc/locale.gen, and then ran locale-gen, but onlz after manually setting vconsole.conf by searching through the above mentioned path.

Just figured, i-ve had -sg-, as was found in: /usr/share/kbd/keymaps/i386/qwertz/
But since it didnt applied to X, i started to tinker and changed that value along.

Thank you

EDIT> This said, currently changing back to sg.
EDIT2> As expected, i have again the swiss german on console, but still not in X, which was and is the main cause for this thread.

$ localectl 
   System Locale: LANG=de_CH.UTF-8
       VC Keymap: sg
      X11 Layout: n/a

Last edited by esa (2015-06-08 10:59:35)


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#4 2015-06-08 12:19:54

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [solved] Keymap set, but getting en_US only (gui+console)

Sorry esa, but It seems to me that you have two distinct problems here: one regarding the console font and one with the keyboard layout in X.

Since in your last post you say that you were able to get german in the console I assume that the font problem is solved, right? About the keyboard layout in X, have you tried to use setxkbmap? You can add something like the following to your .xinitrc

/usr/bin/setxbmap ch

You can also configure the keyboard layout globally editing the X configuration files, read this section of the wiki for more information: https://wiki.archlinux.org/index.php/Ke … ard_layout

Last edited by mauritiusdadd (2015-06-08 12:20:54)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#5 2015-06-08 14:02:56

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: [solved] Keymap set, but getting en_US only (gui+console)

I must be doing something wrong.
When i type this in a terminal window:

setxkbmap ch

It works just fine, as the change takes in effect immediatly - terminal window and other X-applications.

However, when i apply it to the xinitrc's, it wont apply the changes when restarting X.

0 ~ $ tail -n1 /etc/X11/xinit/xinitrc
/usr/bin/setxkbmap ch

0 ~ $ tail -n1 .xinitrc 
/usr/bin/setxkbmap ch

Not supposed for that, but placing it in .bash_profile helps.... as much that the terminal windows has swiss-german layout,
but still... X (as in firefox) has not....
Confusing....

However, the /etc/xorg.conf.d/10-keyboard.conf method worked fine.
Have to get used to them, never required to create them on my own.

Thanks alot!
For some reason this was more challenging than the ugly fonts...

Last edited by esa (2015-06-08 14:08:42)


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#6 2015-06-08 14:55:37

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [solved] Keymap set, but getting en_US only (gui+console)

Glad to hear that you solved your problem!

esa wrote:

However, when i apply it to the xinitrc's, it wont apply the changes when restarting X.

I should have been more specific, that was an example that works only if you are starting X using startx/xinit but it will not work If you use a display manager.

PS: just a little advice, never edit the system wide configuration file /etc/X11/xinit/xinitrc unless you know what you are doing wink

Last edited by mauritiusdadd (2015-06-08 14:55:51)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#7 2015-06-08 19:21:47

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: [solved] Keymap set, but getting en_US only (gui+console)

Oh lol, i removed the note that i was removing those lines.
Just appened the line there, since it wasnt working in ~/.xinitrc.
ty


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

Board footer

Powered by FluxBB