You are not logged in.

#1 2018-06-14 09:21:39

giacombum
Member
Registered: 2011-08-03
Posts: 94

Keyboard map not working

I've installed Arch on a Virtual Machine, I've copied a lot of dotfiles from a previous Arch installation (that was setted up with an italian keyboard); then I change the keyboard xorg configuration, the .Xresources configuration in order to set up the uk keyboard, but I don't get any chance to change my keyboard layout: the keyboard is still in italian. I read all the keyboard layout wiki, but it seems everything ok: can you help me?

Offline

#2 2018-06-14 09:39:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: Keyboard map not working

Please show what you've already done, post all the configurations you've adjusted that might relate to this well as

localectl

Mod note, moving to NC

Offline

#3 2018-06-14 09:52:47

giacombum
Member
Registered: 2011-08-03
Posts: 94

Re: Keyboard map not working

localectl
System Locale: LANG= en_US.UTF-8
VC keymap: uk
X11 Layout: uk
X11 Model: pc105

The .Xresources file into the home directory is:

setxkbmap -model pc105 -layout uk

The 00-keyboard file

Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "uk"
Option "XkbModel" "pc105"
EndSection

Maybe the problem is the wrong keyboard model?

Offline

#4 2018-06-14 10:43:14

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Keyboard map not working

loginctl session-status # to ensure this is actually an xorg session
setxkbmap -query -v

Offline

#5 2018-06-14 10:52:08

giacombum
Member
Registered: 2011-08-03
Posts: 94

Re: Keyboard map not working

c2 - giacomo (1000)
	   Since: Thu 2018-06-14 11:31:38 CEST; 1h 20min ago
	  Leader: 918 (sddm-helper)
	    Seat: seat0; vc1
	 Display: :0
	 Service: sddm; type x11; class user
	   State: active
	    Unit: session-c2.scope
		  ├─ 918 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-authbf95c170-d7a5-40b8-8f14-7df7289ccec3 --id 163 --start i3-with-shmlog --user giacomo
		  ├─ 926 i3-with-shmlog
		  ├─ 958 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.926
		  ├─ 960 /bin/sh -c i3status -c ~/.i3/i3status.conf | ~/.i3/i3status-wrapper.py
		  ├─ 961 i3status -c /home/giacomo/.i3/i3status.conf
		  ├─ 962 python /home/giacomo/.i3/i3status-wrapper.py
		  ├─ 977 terminology -d=xcwd
		  ├─ 979 /usr/bin/efreetd
		  ├─ 994 /bin/bash
		  └─5091 loginctl session-status

Jun 14 11:41:35 arch sudo[1809]:  giacomo : TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=list /usr/bin/pacman --color auto -S community/dos2unix
Jun 14 11:41:35 arch sudo[1810]:  giacomo : TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=/usr/bin/pacman --color auto -S community/dos2unix
Jun 14 11:41:35 arch sudo[1810]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 14 11:41:45 arch sudo[1810]: pam_unix(sudo:session): session closed for user root
Jun 14 12:41:50 arch sudo[4464]:  giacomo : a password is required ; TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=list /usr/bin/pacman --color auto -S community/dos2unix
Jun 14 12:41:53 arch sudo[4466]:  giacomo : TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=validate
Jun 14 12:41:53 arch sudo[4467]:  giacomo : TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=list /usr/bin/pacman --color auto -S community/dos2unix
Jun 14 12:41:53 arch sudo[4468]:  giacomo : TTY=pts/0 ; PWD=/media/sf_Documents/MPI Problem ; USER=root ; COMMAND=/usr/bin/pacman --color auto -S community/dos2unix
Jun 14 12:41:53 arch sudo[4468]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 14 12:41:55 arch sudo[4468]: pam_unix(sudo:session): session closed for user root
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+query+inet(evdev)
geometry:   pc(pc105)

Multiple definition keyboard layout... Interesting....

Offline

#6 2018-06-14 11:01:52

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Keyboard map not working

1) .Xresources is usually not used to invoke shell commands
2) stat /usr/share/X11/xkb/symbols/uk

I misread your former comments (maybe because you're using the US locale), but the UK has no keyboard layout - Great Britain has ;-)
http://projectbritain.com/britain/greatbritain.htm

Offline

#7 2018-06-15 07:34:07

giacombum
Member
Registered: 2011-08-03
Posts: 94

Re: Keyboard map not working

seth wrote:

2) stat /usr/share/X11/xkb/symbols/uk

I haven't the symbols folder...

Offline

#8 2018-06-15 08:06:07

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Keyboard map not working

That's the point: there is no "uk" layout. Most of todays UK use the "gb" layout.

Offline

#9 2018-06-15 09:36:15

giacombum
Member
Registered: 2011-08-03
Posts: 94

Re: Keyboard map not working

seth wrote:

That's the point: there is no "uk" layout. Most of todays UK use the "gb" layout.

I've corrected the .Xresources and the 00-keyboard files with layout "gb", but I still have no success.

The setxkbmap -query -v command reports as follows:

Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+query+inet(evdev)
geometry:   pc(pc105)
rules:     evdev
model:   pc105
layout:   it

Offline

#10 2018-06-15 11:27:24

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Keyboard map not working

Instead of the error it now says

layout:   it

Again: ~/.Xresources are NOT supposed to run commands like a bash script - you're probably setting the layout in some sddm or i3wm config.

Offline

#11 2018-06-15 11:58:06

giacombum
Member
Registered: 2011-08-03
Posts: 94

Re: Keyboard map not working

seth wrote:

you're probably setting the layout in some sddm or i3wm config.

Yeah, you were right!!!!!! The problem was in the i3 config file, now everything works, thanks!!!!!!! Please, how can I mark the topic as solved?

Last edited by giacombum (2018-06-15 11:58:54)

Offline

#12 2018-06-15 12:12:50

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Keyboard map not working

giacombum wrote:

Please, how can I mark the topic as solved?

By editing the first post in this thread and preprending [SOLVED] to the title.

Offline

#13 2018-06-15 12:20:07

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: Keyboard map not working

You also should review your ~/.Xresources, it's usually the thing piped into xrdb and not supposed to be a shell script.

Offline

Board footer

Powered by FluxBB