Try this.Keyboard configuration error. I added a second layout, choose the variant, choose the toggle setting, works fine until I reboot the system. I have to set it up all over again each time.
Go to startup directory.
Inside there is the disabled directory.
Open the disabled directory.
There is a file keyboardlayoutfix
Move this file to the startup directory.
Reboot.
Now try your keyboard setup