You are not logged in.

#1 2016-07-12 09:23:24

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

[SOLVED] German Umlaute on us-keyboard are not working with altgr-intl

Hi, I tried to use the altgr-intl trick to write german Umlaute on a US layout (see e.g. https://bbs.archlinux.org/viewtopic.php?id=133522 or https://zuttobenkyou.wordpress.com/2011 … rd-layout/).

So I use the Xkb_Variant alt-intl option:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "Xkb_Variant" "altgr-intl"
EndSection

But it doesn't work!? I couldn't figure out what kind of input altgr_intl is expecting.

When checking my alt keys with xev then I get for the right (which is the AltGr key) and left alt key:

state 0x8, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
...
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,

What do you get when you press your AltGr key?

Last edited by rgzfxf6bhu (2016-07-12 19:20:31)

Offline

#2 2016-07-12 11:06:25

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [SOLVED] German Umlaute on us-keyboard are not working with altgr-intl

What does `setxkbmap -query` say you're actually using? Maybe your window manager / desktop environment changes settings.

You could also use the compose key... compose " a = ä, compose s s = ß

my altgr (on a german keyboard) is this:

state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,

Last edited by frostschutz (2016-07-12 11:08:53)

Offline

#3 2016-07-12 12:25:30

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Re: [SOLVED] German Umlaute on us-keyboard are not working with altgr-intl

Oh setxkbmap -query says:

rules:      evdev
model:      pc105
layout:     us,us
variant:    ,
options:    terminate:ctrl_alt_bksp

Even though my /etc/X11/xorg.conf.d/00-keyboard.conf still has:

...
Option "Xkb_Variant" "altgr-intl"
...

Hmmm still not sure what are steps to solve it?

Offline

#4 2016-07-12 12:39:44

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [SOLVED] German Umlaute on us-keyboard are not working with altgr-intl

So does it work when you manually `setxkbmap us altgr-intl`?

What are you using as window manager / desktop environment / additional input methods like uim,scim,fcitx,...?

Unfortunately it's hard to find out exactly what changes the keyboard layout after X11 startup. In the best case it's just a matter of going into the keyboard settings of your DE. Worst case you have to go through the "graphical" bootup sequence step by step... there is no generic answer here as any process could change it when it felt like it

Offline

#5 2016-07-12 15:06:51

rgzfxf6bhu
Member
Registered: 2015-10-30
Posts: 101

Re: [SOLVED] German Umlaute on us-keyboard are not working with altgr-intl

Thanks for your answer smile setxkbmap us altgr-intl works.

[edit:]
Seems that I was too quick, it doesn't survive a reboot.

I use GNOME, and I thought that systemd-localed controls the key mapping.
I thought that the correct way to do it must be localectl set-x11-keymap us pc105+inet altgr-intl terminate:ctrl_alt_bksp.

Then I get with localectl status:

   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105+inet
     X11 Variant: altgr-intl
     X11 Options: terminate:ctrl_alt_bksp

And /etc/X11/xorg.conf.d/00-keyboard.conf:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "XkbModel" "pc105+inet"
        Option "XkbVariant" "altgr-intl"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

But it didn't work!
Using setxkbmap us altgr-intl manually works.

But at the end it is GNOME that is overwriting the xkb settings:
So I had to change GNOME settings. See http://unix.stackexchange.com/questions … figuration

Now it works smile Thanks a lot frostschutz!

Last edited by rgzfxf6bhu (2016-07-12 20:18:50)

Offline

Board footer

Powered by FluxBB