Keyboard Layout Switching Causing System Freeze in GNOME 46

Hello everyone,

I’ve noticed an issue with the latest GNOME version (46) regarding keyboard layout switching that wasn’t present in version 45. Whenever I switch the keyboard layout, the system freezes for about 1 or 2 seconds before becoming responsive again.

I’ve attached the logs below for reference:

2024-05-10T07:22:16.701429-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
2024-05-10T07:22:16.705259-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
2024-05-10T07:22:16.705286-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
2024-05-10T07:22:16.705302-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
2024-05-10T07:22:16.705320-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
2024-05-10T07:22:16.705343-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
2024-05-10T07:22:16.705357-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
2024-05-10T07:22:16.705399-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
2024-05-10T07:22:16.705438-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
2024-05-10T07:22:16.705473-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
2024-05-10T07:22:16.705492-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
2024-05-10T07:22:16.705514-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
2024-05-10T07:22:16.705534-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
2024-05-10T07:22:16.705558-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
2024-05-10T07:22:16.705584-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
2024-05-10T07:22:16.705606-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
2024-05-10T07:22:16.705628-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
2024-05-10T07:22:16.705650-03:00 maycon-ub gnome-shell[6711]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).

Has anyone else encountered this issue? Any suggestions for troubleshooting or fixes would be greatly appreciated.

Thank you.

The problem is with the ScrollLock key on the layout file.

In my case, it is found at /usr/share/X11/xkb/symbols/br.

Comment the line: modifier_map Mod3 { Scroll_Lock };

No more delays!

RefÇ