The xev output for both left alt and right alt is given below. I could not use right alt for any purpose due to this. What could be the problem? Thanks in advance.

KeyPress event, serial 39, synthetic NO, window 0x1400001,
    root 0x409, subw 0x0, time 14963499, (139,64), root:(818,407),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 39, synthetic NO, window 0x1400001,
    root 0x409, subw 0x0, time 14964219, (139,64), root:(818,407),
    state 0x18, 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
  • 2xsaiko@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    Open System Settings, Keyboard, Key Bindings (top right button), turn off “Key to choose the 3rd level -> Right Alt”

    • mexicancartel@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      24 days ago

      it was all disabled for me. So now i enabled it and choose the option “Right alt never chooses the third level” and now it works. What actually is the third, second and fifth levels? And why is it enabled even if the entire setting to choose 3rd level key is disabled?

      Anyway this solved my issue but still curious on what thoose levels in keyboard are

      • 2xsaiko@discuss.tchncs.de
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        What keyboard layout are you using? It might be set as default there. Those extra levels change the keys on your keyboard to produce extra symbols, like shift+a produces A, shift3+a might produce å (as it does on my keyboard layout).

        • mexicancartel@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 month ago

          OOOOh so thats what it is for… How could i see different levels and assigned keys?

          Also I dont exactly know what keyboard layout i am using. It’s my laptop’s keyboard, with two hp specific keys, numpad, and no menu button or pause break button; if that helps

          • 2xsaiko@discuss.tchncs.de
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            In keyboard settings, you can look at a preview of the layout you have configured. It’s in the menu on the right of each keyboard entry in the list.

              • 2xsaiko@discuss.tchncs.de
                link
                fedilink
                arrow-up
                1
                ·
                1 month ago

                Yes, it depends on the layout. For example, I use the “English (Macintosh)” variant of the US layout. It has bindings for level 3 shift on all keys pretty much.

                • mexicancartel@lemmy.dbzer0.comOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 month ago

                  I also now set it to macintosh variant. But can I assign it to right shift instead of alt? I need the alt but there seems to be no option for using shift