Wayland vs. Deutsch E1 Tastatur

Mein Tastaturbelegung ist Deutsch E1; OpenSuse Tumbleweed VERSION_ID=20260425

Wenn ich auf dem Login-Bildschirm KDE mit X11 auswähle, erhalte ich durch AltGr-f + b das Anführungszeichen .
Wenn ich auf dem Login-Bildschirm KDE mit Wayland auswähle, erhalte ich durch AltGr-f + b nur den Buchstabe b

(Entschuldigung; mein Deutsch ist nur auf Niveau B1)

Ich habe die Version OpenSuse Tumbleweed VERSION_ID=20260402, ich bekomme das Anführungszeichen mit AltGr+b.

Was kommt bei localectl? Bei mir kommt das hier:

% localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: de-nodeadkeys
   X11 Layout: de
    X11 Model: microsoftpro
  X11 Variant: nodeadkeys
  X11 Options: terminate:ctrl_alt_bksp

Ich benutze seit Jahren Xfce, aber zu meinen KDE-Zeiten gab es in KDE immer ein Tastatur-Applet, bei dem man die Tastaturbelegung unabhängig von der systemweiten Konfiguration einstellen konnte.

Ich könnte mir vorstellen, daß das bei dir ähnlich ist; daß localectl Layout us anzeigt, und in KDE Plasma trotzdem de eingestellt ist.

Übrigens nicht von “X11 Layout”, “X11 Model” u.s.w. verwirren lassen: Das gilt auch für Wayland (soviel ich weiß).

Deutsches Tastaturlayout einstellen:

sudo localectl set-x11-keymap de

Schau auch mal im Login-Manager, ob sich dort ein Button oder ein Menüeintrag für die Tastatur versteckt.

Ergebnis von localectl

System Locale: LANG=de_DE.UTF-8
    VC Keymap: de-nodeadkeys
   X11 Layout: de
    X11 Model: microsoftpro
  X11 Variant: nodeadkeys
  X11 Options: terminate:ctrl_alt_bksp

Siehen Sie hier ein Video, das das Problem ausstellt: https://youtu.be/uRwdSIehUWU

Schau mal mit xev nach, was für ein keycode unter x11 und wayland entsteht, wenn du die AltGR Taste drückst:
Bei mir in wayland:

KeyPress event, serial 39, synthetic NO, window 0x2c00001,
    root 0x37d, subw 0x0, time 88016372, (164,47), root:(5515,843),
    state 0x10, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

Den Teil musst du in der größeren Ausgabe suchen.

Ich schätze einmal, das X11 und wayland das anders auswerten.

Hier unter X11:

KeyPress event, serial 40, synthetic NO, window 0x3300001,
    root 0x233, subw 0x0, time 127653, (201,-183), root:(1072,191),
    state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

ISO_Level3_Shift steht dort.

Ich habe es gemacht mit xev, mit diese Ergebnisse:

X11:

KeyPress event, serial 28, synthetic NO, window 0x2f00001,
    root 0x4ef, subw 0x2f00002, time 35361967, (42,31), root:(913,473),
    state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

Wayland:

KeyPress event, serial 28, synthetic NO, window 0x1800001,
    root 0x400, subw 0x1800002, time 35472251, (33,42), root:(904,484),
    state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

Da ich eh nicht helfen kann, mir aber jetzt nicht so ganz klar ist, ob dein Problem noch besteht?

Noch nicht funktioniert mit Wayland :frowning:
Tumbleweed VERSION_ID=“20260506”, 7.0.3-1-default)

Unter Wayland, mit wev:

[        16:     wl_keyboard] repeat_info: rate: 25 keys/sec; delay: 600 ms
[        16:     wl_keyboard] keymap: format: 1 (xkb v1), size: 43522
[        16:     wl_keyboard] enter: serial: 1267; surface: 3
                      sym: Return       (65293), utf8: '\r'
[        16:     wl_keyboard] modifiers: serial: 1250; group: 0
                      depressed: 00000000
                      latched: 00000000
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1271; time: 9089316; key: 36; state: 0 (released)
                      sym: Return       (65293), utf8: ''
[        16:     wl_keyboard] key: serial: 1272; time: 9095057; key: 108; state: 1 (pressed)
                      sym: ISO_Level3_Shift (65027), utf8: ''
[        16:     wl_keyboard] modifiers: serial: 1274; group: 0
                      depressed: 00000080: Mod5 
                      latched: 00000000
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1276; time: 9095280; key: 41; state: 1 (pressed)
                      sym: ISO_Level5_Latch (65042), utf8: ''
[        16:     wl_keyboard] modifiers: serial: 1277; group: 0
                      depressed: 000000A0: Mod3 Mod5 
                      latched: 00000000
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1279; time: 9095356; key: 41; state: 0 (released)
                      sym: NoSymbol     (0), utf8: ''
[        16:     wl_keyboard] modifiers: serial: 1280; group: 0
                      depressed: 00000080: Mod5 
                      latched: 00000020: Mod3 
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1282; time: 9095412; key: 108; state: 0 (released)
                      sym: ISO_Level3_Shift (65027), utf8: ''
[        16:     wl_keyboard] modifiers: serial: 1284; group: 0
                      depressed: 00000000
                      latched: 00000020: Mod3 
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1286; time: 9096409; key: 56; state: 1 (pressed)
      ----->          sym: rightdoublequotemark (2771), utf8: '”' <---------
[        16:     wl_keyboard] modifiers: serial: 1287; group: 0
                      depressed: 00000000
                      latched: 00000000
                      locked: 00000000
[        16:     wl_keyboard] key: serial: 1289; time: 9096472; key: 56; state: 0 (released)
                      sym: b            (98), utf8: ''
[        16:     wl_keyboard] leave: serial: 1294; surface: 3

Die Linie mit ---> gibt das richtiges Ergebnis, aber ich sehe noch b im Konsole.

Wayland und X11 sind unabhängige Sessions.
Das spezielle Layout wird nicht automatisch nach Wayland übernommen wenn es in X11 verwendet wurde.

In den Plasma Keyboard Settings unter Wayland entsprechend einstellen.

Gibt es einen Grund warum nicht einfach SHIFT+2 für " ?

Die Tastatur war auch Deutsch E1 mit Wayland, aber ich hatte eine Virtuelle Tastatur mit iBus Wayland aktiv. (Vielleicht ich hatte mit diesen Option experimentiert.) Als ich die Virtuelle Tastatur deaktiviert habe, alles hat richtig funktioniert.

Ich will „ “ und ” weil sie sind für Text typographisch richtig. " (SHIFT+2) ist nur für Code.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.