You are not logged in.

#1 2019-04-26 08:17:17

warlock20
Member
Registered: 2019-04-25
Posts: 4

Gnome terminal keyboard layout settings

Hallo,

I have some questions regarding setting up the keyboard layout on laptop. I set the keyboard layout while installing arch to de-latin1. It all went well until I install xorg and later gnome. After setting up gnome, the keyboard layout seems to act weird. Now, keyboard layout is changed while using an GUI applications (eg: Firefox..), but the keyboard layout in terminal is in us-en format.

I checked the keyboard layout

setxkbmap -query | grep layout
layout:     de

even though it shows the layout as de, it is functioning as us-en. Also, I didn't see any german keyboard layout in Settings > Region & Language > Input Sources.

Also, I note that when i try to set the keyboard layout via setxkbmap de, journal shows the following error message.

Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: > Warning:          Unsupported high keycode 372 for name <I372> ignored
Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: >                   X11 cannot support keycodes above 255.
Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: >                   This warning only shows for the first high keycode.
Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: > Internal error:   Could not resolve keysym XF86MonBrightnessCycle
Apr 26 09:55:09 bumblebee org.gnome.Shell.desktop[1052]: Errors from xkbcomp are not fatal to the X server

I also tried loadkeys de for a session, but still no change. Meanwhile I am using(or generated) a locale en_US.UTF-8, i.e

localectl 
System Locale: LANG=en_US.UTF-8
VC Keymap: de-latin1
X11 Layout: de

May I know why it is using different layout in gnome-terminal and gui? and why I am not able change the layout for gnome-terminal?

Thank you

Offline

#2 2019-04-26 08:20:44

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

Re: Gnome terminal keyboard layout settings

Is your GNOME actually running on xorg (GNOME defaults to wayland, change the session in GDM if you want to start on xorg)? And fwiw GNOME will have it's own configuration for this you might want to ensure to set it there in either case. What's your output for

loginctl session-status

Last edited by V1del (2019-04-26 09:02:08)

Online

#3 2019-04-26 09:00:31

warlock20
Member
Registered: 2019-04-25
Posts: 4

Re: Gnome terminal keyboard layout settings

This is output.

loginctl session-status
2 - kmathews (1000)
           Since: Fri 2019-04-26 10:18:28 CEST; 36min ago
          Leader: 824 (gdm-session-wor)
            Seat: seat0; vc2
             TTY: tty2
         Service: gdm-password; type wayland; class user
           State: active
            Unit: session-2.scope
                  ├─ 824 gdm-session-worker [pam/gdm-password]
                  ├─ 846 /usr/bin/gnome-keyring-daemon --daemonize --login
                  ├─ 851 /usr/lib/gdm-wayland-session /usr/bin/gnome-session
                  ├─ 855 /usr/lib/gnome-session-binary
                  ├─ 886 /usr/bin/gnome-shell
                  ├─ 910 /usr/bin/Xwayland :0 -rootless -terminate -accessx -core -listen 4 -listen 5 -displayfd 6
                  ├─1008 /usr/lib/gsd-smartcard
                  ├─1010 /usr/lib/gsd-keyboard
                  ├─1012 /usr/lib/gsd-power
                  ├─1014 /usr/lib/gsd-a11y-settings
                  ├─1016 /usr/lib/gsd-sound
                  ├─1017 /usr/lib/gsd-media-keys
                  ├─1020 /usr/lib/gsd-print-notifications
                  ├─1022 /usr/lib/gsd-clipboard
                  ├─1025 /usr/lib/gsd-wacom
                  ├─1026 /usr/lib/gsd-mouse
                  ├─1030 /usr/lib/gsd-rfkill
                  ├─1033 /usr/lib/gsd-color
                  ├─1035 /usr/lib/gsd-xsettings
                  ├─1039 /usr/lib/gsd-screensaver-proxy
                  ├─1042 /usr/lib/gsd-datetime
                  ├─1043 /usr/lib/gsd-sharing
                  ├─1047 /usr/lib/gsd-housekeeping
                  ├─1060 /usr/lib/gsd-printer
                  ├─1149 /usr/lib/gsd-disk-utility-notify
                  ├─1150 /usr/lib/tracker-miner-fs
                  ├─1154 /usr/bin/gnome-software --gapplication-service
                  ├─1161 /usr/lib/evolution-data-server/evolution-alarm-notify
                  ├─1475 /usr/lib/firefox/firefox
                  ├─1563 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 174006 -parentBuildID 20190410203753 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /us>
                  ├─1668 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 5422 -prefMapSize 174006 -parentBuildID 20190410203753 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir >
                  ├─1745 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 6292 -prefMapSize 174006 -parentBuildID 20190410203753 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir >
                  ├─1833 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 6292 -prefMapSize 174006 -parentBuildID 20190410203753 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir >
                  ├─1866 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 6292 -prefMapSize 174006 -parentBuildID 20190410203753 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir >
                  └─2039 gdm-session-worker [pam/gdm-password]

Apr 26 10:54:49 bumblebee org.gnome.Shell.desktop[886]: libinput error: event8  - ALP0018:00 044E:121B Touchpad: kernel bug: Touch jump detected and discarded.
Apr 26 10:54:49 bumblebee org.gnome.Shell.desktop[886]: See https://wayland.freedesktop.org/libinput/doc/1.13.1/touchpad-jumping-cursors.html for details
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: libinput error: event8  - ALP0018:00 044E:121B Touchpad: kernel bug: Touch jump detected and discarded.
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: See https://wayland.freedesktop.org/libinput/doc/1.13.1/touchpad-jumping-cursors.html for details
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: libinput error: event8  - ALP0018:00 044E:121B Touchpad: kernel bug: Touch jump detected and discarded.
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: See https://wayland.freedesktop.org/libinput/doc/1.13.1/touchpad-jumping-cursors.html for details
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: libinput error: event8  - ALP0018:00 044E:121B Touchpad: kernel bug: Touch jump detected and discarded.
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: See https://wayland.freedesktop.org/libinput/doc/1.13.1/touchpad-jumping-cursors.html for details
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: libinput error: event8  - ALP0018:00 044E:121B Touchpad: kernel bug: Touch jump detected and discarded.
Apr 26 10:55:02 bumblebee org.gnome.Shell.desktop[886]: See https://wayland.freedesktop.org/libinput/doc/1.13.1/touchpad-jumping-cursors.html for details

it seems like wayland. Let me try with Xorg.

Offline

#4 2019-04-26 09:40:54

warlock20
Member
Registered: 2019-04-25
Posts: 4

Re: Gnome terminal keyboard layout settings

@V1del

Changing to Gnome on Xorg seems to works.

I changed the keyboard layout using setxkbmap . But there is no option to choose german keyboard layout via GUI(Settings > Region & Language > Input Source). Why there is only few keyboard layout options?  Is it due to the locale.gen settings?

Offline

#5 2019-04-26 10:53:57

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

Re: Gnome terminal keyboard layout settings

I don't use GNOME but I suspect that there should be an option to add keyboard layouts independent of the generated locales.

Online

#6 2019-04-26 15:00:09

warlock20
Member
Registered: 2019-04-25
Posts: 4

Re: Gnome terminal keyboard layout settings

At last I found a fix. I don't know whether it is the right method.

I set the gnome keyboard layouts as to null via gsettings.

gsettings set org.gnome.desktop.input-sources sources '[]'

This means, the gnome use the X server keyboard configuration without gnome-shell trying to configure it.

Offline

Board footer

Powered by FluxBB