I use OpenBSD on my thinkpad t430, so I don’t often exit X. That being said, when I do close X and re-enter it my keyboard is reset to US encoding. I have a finnish keyboad and after boot, it works fine. I have grepped xenodm’s configuratiuon but I don’t see “ws” or “US” anywhere. Does X maybe set a keyboard map in it’s own way which would override the console?

cat /etc/wsconsctl

keyboard.encoding=sv