After update, keyboard layout settings now get reset at every restart

I have Manjaro Linux with KDE and Wayland:

Operating System: Manjaro Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.6.75-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop X1502ZA_F1502ZA
System Version: 1.0

I have a Spanish keyboard configured as such, and everything was working fine until a while ago.

A few days ago I installed a bunch of updates in Pamac, didn’t restart right away, and then a few minutes ago I finally restarted.

After reboot I got a popup with this message:

Fcitx should be launched by KWin under KDE Wayland in order to use Wayland input method frontend. This can improve the experience when using Fcitx on Wayland. To configure this, you need to go to “System Settings” → “Virtual keyboard” and select “Fcitx 5” from it. You may also need to disable tools that launches input method, such as imsettings on Fedora, or im-config on Debian/Ubuntu. For more details see Using Fcitx 5 on Wayland - Fcitx

After this, my keyboard configuration was broken: the keyboard behaves as a US keyboard.

So I went to Settings → Keyboard and I found it like this:

That is, my settings had been wiped out.

So I changed it to this:

(only Spanish layout) which is how it used to be.

I also changed this, as the popup message told me to do:

That fixes the keyboard, but now every single time I reboot, the keyboard layout settings get reset back to US-English only, as shown in the first screenshot.

How do I get the settings to stop being reset?

There’s also the second part of the message I got after the first reboot after the update:

You may also need to disable tools that launches input method, such as imsettings on Fedora, or im-config on Debian/Ubuntu. For more details see Using Fcitx 5 on Wayland - Fcitx

I may need to? Do I need to? imsettings on Fedora or im-config on Debian/Ubuntu; what about Arch/Manjaro??

What should I do?

A keyboard tray icon has appeared that I don’t think was there before the update:

image

When clicked, it does nothing.

When right-clicked, it shows this:
image

even when my only and active keyboard layout is Spanish. (BTW the first time I right-click, the one-and-only available radio button is not selected; then starting from the second time it is).

If I click Configure, it shows this incomprehensible popup:

image

Note how it is ironically titled “Question” and yet there is no question at all.

How can I fix this mess?

Remove fcitx5:

sudo pacman -R fcitx5

or

pamac remove fcitx5

Then reboot.

fcitx5 was likely installed as a build dependency of sdl2, which was moved to the AUR and replaced by sdl2-compat. Users who update using Pamac and have the AUR enabled seem to be the only ones who have experienced this issue. It looks like a bug in Pamac drew in the dependencies required to build the AUR version of sdl2, even though sdl2 was going to be uninstalled.

6 Likes

Try this:

sudo localectl set-keymap es

Thank you! That fixed it.

1 Like

It also probably means you have a handful of other orphans from the exchange.

1 Like

The same way we always find orphans.

pacman -Qdtq

Of course there may be more than those from this previous pamac fumble.

2 Likes

It also probably means you have a handful of other orphans from the exchange.

Good point.
Do you have any suggestion as to how to find them?

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