Ubuntu does not remember keyboard layout

Solution 1:

It is an only one bug I have found so far as well. Here is my temporary fix: Alt+Shift to toggle between Norwegian and Thai keyboards.

sudo setxkbmap -option grp:alt_shift_toggle no,th