You are not logged in.

#1 2015-08-13 19:53:10

niciuffo
Member
Registered: 2015-08-11
Posts: 9

Wrong XTerm keyboard layout

Hello, I have just managed to install Arch on a netbook. I have one problem though, I can't seem to change the keyboard layout in XTerm.
It's stuck on the (I think) US setting. I tried modifying the /etc/X11/xorg.conf.d/00-keyboard.conf via the localectl tool with no avail.
Here is the content of said file (I used the localectl --no-convert set-x11-keymap ch command):

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "ch"
EndSection

Executing the command setxkbmap ch immediately changes the layout to the desired one. It doesn't stick on reboot though, and I can't seem to find a way to execute that command automatically on login (I'm using GDM).

Output of setxkbmap -print -verbose 10:

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc104
layout:     us,gb
variant:    ,
options:    grp:alt_shift_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+gb:2+inet(evdev)+group(alt_shift_toggle)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+us+gb:2+inet(evdev)+group(alt_shift_toggle)"	};
	xkb_geometry  { include "pc(pc104)"	};
};

Any help is appreciated.

Offline

#2 2015-08-13 19:55:26

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

Re: Wrong XTerm keyboard layout

No idea, if this works for setxkbmap: https://wiki.archlinux.org/index.php/GD … r_at_login

What's the output of

localectl

Offline

#3 2015-08-13 20:41:17

niciuffo
Member
Registered: 2015-08-11
Posts: 9

Re: Wrong XTerm keyboard layout

karol wrote:

No idea, if this works for setxkbmap: https://wiki.archlinux.org/index.php/GD … r_at_login

What's the output of

localectl

I tried adding exec setxkbmap ch to the .xinitrc file but that doesn't get executed. In fact, nothing in that file gets executed (I read that GDM doesn't read that file?).

Output of localectl:

   System Locale: LANG=en_GB.UTF-8
       VC Keymap: n/a
      X11 Layout: ch

Offline

#4 2015-08-13 20:45:15

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

Re: Wrong XTerm keyboard layout

The wiki doesn't say .xinitrc, it says /etc/X11/xinit/xinitrc.d/<foo> and https://wiki.archlinux.org/index.php/GD … ard_layout -> https://wiki.archlinux.org/index.php/Ke … tion_files /etc/X11/xorg.conf.d/00-keyboard.conf

Offline

#5 2015-08-13 21:27:09

niciuffo
Member
Registered: 2015-08-11
Posts: 9

Re: Wrong XTerm keyboard layout

karol wrote:

The wiki doesn't say .xinitrc, it says /etc/X11/xinit/xinitrc.d/<foo> and https://wiki.archlinux.org/index.php/GD … ard_layout -> https://wiki.archlinux.org/index.php/Ke … tion_files /etc/X11/xorg.conf.d/00-keyboard.conf

Yep, sorry my bad. This is what I did:
-Created .sh script /etc/X11/xinit/xinitrc.d/set_keymap.sh, chmod'd it to 777. Rebooted the PC, and it wouldn't boot into GNOME for some reason. Booting into the arch install iso, removed the file, system boots fine.
-Installed the package gnome-control-center, removed the US layout, added Swiss French, everything seems to be working fine now.

Thanks for the help!

Offline

Board footer

Powered by FluxBB