Skip to content

Inconsistent behavior when switching the keyboard layout #13384

Closed

Description

@zhuravkovigor

Distribution

Mint 22.3

Package version

6.6.4

Graphics hardware in use

NVIDIA 3080 TI

Frequency

Quite often

Bug description

Good day, Mint team!

In the new version of Linux Mint, I noticed inconsistent behavior when switching the keyboard layout. I reassigned the shortcut to Alt + Shift — the language does switch, but not consistently.

Sometimes it feels like the shortcut does not trigger at all. The switch only works reliably if I hold Alt for a moment and then press Shift.

I also noticed that in DuckDuckGo search, the focus is lost from the search input when switching the keyboard layout.

Steps to reproduce

Fast language switch with alt + shift

Expected behavior

Instantly language switch after pressing the keyboard shortcut

Additional information

No response

Activity

  1. changed the title [-]Big delay on language switch[/-] [+]Inconsistent behavior when switching the keyboard layout[/+] on Jan 13, 2026
  2. spont4e commented on Jan 13, 2026

    @spont4e

    I have the same problem

  3. chiplun1961-star commented on Jan 13, 2026

    @chiplun1961-star

    It 's the same for many .the proposed solution to install the layout in XKB helps only before rebooting.then everything repeats again the cinnamon mint zen system I use xorg

  4. n-at commented on Jan 13, 2026

    @n-at

    I have the same problem. When installed in Keyboard > Layouts, Alt + Shift is sometimes registering as single Alt press and moves input focus on application menu (in VSCode for example). It works properly when layout shortcut installed in XKB settings.

  5. chiplun1961-star commented on Jan 13, 2026

    @chiplun1961-star

    They replied from the official linux mint page Try to reconfigure your keyboard configuration. Type in Terminal (copy/paste):
    Code: Select all

    sudo dpkg-reconfigure keyboard-configuration
    Follow the dialogs in TUI to reconfigure the keyboard. Step-by-step instructions on how to configure the keyboard in Terminal User Interface: https://linuxsystemcomputers.com/deskto ... -in-linux/

    When you're done with this process, close Terminal and reboot your computer.

    After you log-in again, you should see the chosen keyboard layout as an icon of the country flag in the notifications area of the panel.

    If not, go to System Settings/Keyboard and enable 'Use country flag, if available, to represent keyboard layouts' slider under Options section.https://forums.linuxmint.com/viewtopic.php?t=461207

  6. cravingforwind commented on Jan 13, 2026

    @cravingforwind

    Same here, running a number of Mint installs - all of them went haywire with the last "upgrade".

    1. all keyboard layouts got reset
    2. iBus got installed again making things even worse

    Solution so far was to:

    1. Uninstall iBus
    2. re-configure layouts through settings

    However - functionality remains absolutely horrid:

    • regardless of the keys combination assigned - actual switching to other layouts is very incoherent, often requiring multiple attempts or/and pressing and holding
    • "country flag" icon is squished
    • if "Alt+Shift" combination is assigned - in some programs it triggers the menu to open - thus shifting focus - this is especially "helpful" when working on a text.

    What went wrong? Things were working perfectly fine - except when iBus would re-apper for no valid reasons...

  7. MrCapone commented on Jan 14, 2026

    @MrCapone

    Adding Alt+Shift combination at XKB options seems solve the problem, but partially. For example Alt+Shift still doesn't work when Menu is open. And after reboot Alt+Shift stop working everywhere. I don't understand why broke system that worked perfectly fine for nearly twenty years.

    sudo dpkg-reconfigure keyboard-configuration doesn't help at all.

  8. chiplun1961-star commented on Jan 14, 2026

    @chiplun1961-star

    After sudo dpkg-reconfigure keyboard-configuration and debugging the keyboard with a reboot of the laptop, my problem disappeared, but now the language switch happens when you press just one button: either Alt or Shift. Although the layout is set when two buttons are pressed.

  9. portokala123 commented on Jan 14, 2026

    @portokala123

    ...

    • regardless of the keys combination assigned - actual switching to other layouts is very incoherent, often requiring multiple attempts or/and pressing and holding
      ...

    It switches, but it’s extremely slow. You need to hold the keys for about 1–2 seconds for the combination to switch.

  10. tanev commented on Jan 16, 2026

    @tanev

    ...

    • regardless of the keys combination assigned - actual switching to other layouts is very incoherent, often requiring multiple attempts or/and pressing and holding
      ...

    It switches, but it’s extremely slow. You need to hold the keys for about 1–2 seconds for the combination to switch.

    In my case (I have the XKB option to switch by using the Caps lock-only) the delay is so large, that if I switch, the first one or two letters (depending on how fast I am typing) get "eaten", and I'd have to delete the word or return to its beginning and re-type them. Interestingly enough something changes moments ago when I've updated to cinnamon 6.6.5+gigi and restarted cinnamon, though unsure if the delay itself is fixed for good or it might reappear on the next boot.

  11. portokala123 commented on Jan 17, 2026

    @portokala123

    I upgraded to 6.6.5 and tested XKB options. It works way better than the main option.

    ...

    • regardless of the keys combination assigned - actual switching to other layouts is very incoherent, often requiring multiple attempts or/and pressing and holding
      ...

    It switches, but it’s extremely slow. You need to hold the keys for about 1–2 seconds for the combination to switch.

    In my case (I have the XKB option to switch by using the Caps lock-only) the delay is so large, that if I switch, the first one or two letters (depending on how fast I am typing) get "eaten", and I'd have to delete the word or return to its beginning and re-type them. Interestingly enough something changes moments ago when I've updated to cinnamon 6.6.5+gigi and restarted cinnamon, though unsure if the delay itself is fixed for good or it might reappear on the next boot.

    I upgraded to 6.6.5 and tested XKB options. It works way better than the main option.

  12. MrCapone commented on Jan 17, 2026

    @MrCapone

    After upgrading cinnamon to 6.6.5 XKB option seems to work after reboot. It work almost perfectly fine. But when I open menu it stows working until I close menu. It seems menu steals some input from XKB.

  13. zhuravkovigor commented on Feb 13, 2026

    @zhuravkovigor
    Author

    Fixed the issue with the layout changing via XKB and added a layout switch to the new menu using Alt + Shift. It works perfectly now, but I think it might not be very intuitive for new users. It would be great to see some improvements in the future, thanks all for helping with this question!

  14. TicClick commented on Feb 13, 2026

    @TicClick

    this still feels like a regression or improperly handled migration (which makes me concerned enough to hold off with the system update) -- @zhuravkovigor do you mind reopening the issue for visibility?

  15. NeatNit commented on Feb 13, 2026

    @NeatNit

    Possibly off-topic but I got the sense that there was no migration at all from Mint 22.2 to 22.3. I have 2 keyboard layouts in use, Hebrew and English, but after the upgrade to 22.3 only English was enabled. I had to re-enable Hebrew as if it was never enabled.

    So if there was any attempt at migration, it didn't do the bare minimum.

  16. zhuravkovigor commented on Oct 23, 2026

    @zhuravkovigor
    Author

    Problem is fixed for me, thank you @mtwebster!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions