Different behaviour of different keyboards when using modifiers.
I have 3 keyboards connected to my laptop.
1 internal
1 via USB
1 via Bluetooth
the 3rd layer (Alt Gr/right Alt) Modifier is not working on the Bluetooth keyboard but works on the other 2.
XkbStateNotify event, serial 13, synthetic no, device 3, time 110012172,
keycode 108, eventType KeyPress,
group= 0, base= 0, latched= 0, locked= 0,
mods= 0x90*, base= 0x80*, latched= 0x00, locked= 0x10
grab mods= 0x90*, compat grab mods= 0x90*
lookup mods= 0x90*, compat lookup mods= 0x90*
compatState = 0x90*, ptr_buttons= 0x0000
u
XkbStateNotify event, serial 13, synthetic no, device 3, time 110013616,
keycode 108, eventType KeyRelease,
group= 0, base= 0, latched= 0, locked= 0,
mods= 0x10*, base= 0x00*, latched= 0x00, locked= 0x10
grab mods= 0x10*, compat grab mods= 0x10*
lookup mods= 0x10*, compat lookup mods= 0x10*
compatState = 0x10*, ptr_buttons= 0x0000
XkbNewKeyboard event, serial 13, synthetic no, device 3, time 110017491,
new device: 3 min_keycode: 8, max_keycode 255
old device: 3 min_keycode: 8, max_keycode 255
XkbStateNotify event, serial 13, synthetic no, device 3, time 110017493,
keycode 108, eventType KeyPress,
group= 0, base= 0, latched= 0, locked= 0,
mods= 0x90*, base= 0x80*, latched= 0x00, locked= 0x10
grab mods= 0x90*, compat grab mods= 0x90*
lookup mods= 0x90*, compat lookup mods= 0x90*
compatState = 0x90*, ptr_buttons= 0x0000
ú
XkbStateNotify event, serial 13, synthetic no, device 3, time 110020547,
keycode 108, eventType KeyRelease,
group= 0, base= 0, latched= 0, locked= 0,
mods= 0x10*, base= 0x00*, latched= 0x00, locked= 0x10
grab mods= 0x10*, compat grab mods= 0x10*
lookup mods= 0x10*, compat lookup mods= 0x10*
compatState = 0x10*, ptr_buttons= 0x0000
the key presses however look the same, just the result is different and the 3rd layer characters are inaccessible on the bluetooth keyboard.
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ BisonCam, NB Pro: BisonCam, NB id=10 [slave keyboard (3)]
↳ LOGITECH G110 G-keys Keypad id=11 [slave keyboard (3)]
↳ Gaming Keyboard G110 id=12 [slave keyboard (3)]
↳ Gaming Keyboard G110 Consumer Control id=13 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
↳ WH-1000XM2 (AVRCP) id=16 [slave keyboard (3)]
↳ MX Master Keyboard id=17 [slave keyboard (3)]
↳ Keychron K1 Consumer Control id=20 [slave keyboard (3)]
↳ Keychron K1 System Control id=21 [slave keyboard (3)]
↳ Keychron K1 Keyboard id=22 [slave keyboard (3)]