Main keyboard language reverts to secondary upon reboot

Hello
it’s like that since the update before the latest one.
i checked in the settings that it’s set to secondary and still appears as the main one upon boot.
Thanks

Two things you can do here…

  1. Disable the second, reboot to see if it’s ok.
  2. Create and log in a TEST user, see if the same happens there.

It’s possible the setting isn’t being written properly, so maybe you need to check the file…

Keyboard settings are stored in your .config folder.

Paste the output of:

ls -l ~/.config/kxkbrc

Note the permissions - mine’s working…

-rw------- 1 ben ben 184 Apr 21 16:24 /home/ben/.config/kxkbrc

Then perhaps the content:

cat ~/.config/kxkbrc
[Layout]
DisplayNames=,,,tra
LayoutList=ak,th,us,trans
Options=caps:escape_shifted_compose,shift:both_shiftlock
ResetOldOptions=true
SwitchMode=WinClass
Use=true
VariantList=,,,qwerty

So here I can check Options and the LayoutList too, my default is my custom ‘ak’ layout.

It’s possible that ownership/permission issues will stop the config from being written, so the ls command is vital… as is the need to test this with a new USER account.

2 Likes

Hello

i tried removing the secondary one,reboot,re-add it but on the second reboot it still appears as the main one.

here are the outputs of those commands:

-rw------- 1 xx xx 254 May 25 13:12 /home/xx/.config/kxkbrc
cat ~/.config/kxkbrc
[$Version]
update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions,kxkb_variants.upd:split-variants

[Layout]
DisplayNames=,
LayoutList=us,xx
Options=terminate:ctrl_alt_bksp,grp:alt_shift_toggle
ResetOldOptions=true
Use=true
VariantList=,

to be clear,i’d like the US one to be the main one.

Thanks.

Ok, not sure what the {$Version] section is for - maybe cut that and give it another try?

I’m assuming that xx is a custom keyboard layout, and I had problems with mine after trying some convoluted ways to sort things out… but I can’t remember how I got it back to normal.

Certainly having an invalid layout can cause the system some confusion…

First, I’d set LayoutList=us, remove xx entirely - and remove the grp:alt_shift_toggle option - you can use another shortcut to switch and Alt_Shift might be the issue…

So then try it again…

Deleting the [$Version] section isn’t going to cause any problem either… After that, try adding a more normal pre-existing layout to test it… I’d go with British English to make sure it’s still usable.

Basically, if you’ve run commands to force the keyboard layout, then this GUI won’t switch them…

The nuclear option is to simply delete kxkbrc and start fresh. If that doesn’t work, you’ve messed something up.

2 Likes

Thanks a lot!

i too don’t know what the {$Version] section is.(it’s an old install)

it’s not the first time this happens and usually removing the secondary layout and reinstalling it solves the issue but not this time.

any how today i boot up my PC and it’s already on US :man_shrugging:

i’ll see what happens next and if need will follow the steps you suggested. :+1:

1 Like

This might help:

3 Likes

Thanks
i’ll check it out.

2 Likes

It might be worth a try: I once had another problem with a stubborn, unwanted configuration setting, and I was able to resolve it by temporarily switching to “Session > Restore Session: Start with empty session” in the desktop system settings of Plasma/KDE.

1 Like