You are not logged in.

#1 2015-11-28 01:05:24

Legogris
Member
Registered: 2012-09-11
Posts: 38

Keyboard layout sporadically reverts on external keyvboards

I am having some very weird behavior with my keyboard layouts on my Lenovo T440s.
I am switching between different layouts using a key combination. This usually works fine both with the laptop keyboard and USB and Bluetooth keyboards, but sometimes the following will happen:
* The layout is set to us
* The hotkey won't switch layouts on my external keyboard (other keys work fine)
* The hotkey still works on the laptop keyboard, but any keypress on an external keyboard reverts the layout to us again.

Effectively, I can only use the us layout on the external keyboard for the rest of my session. Rebooting always resolves the issue.

I have the following in my .xinitrc:

setxkbmap -layout "us, se" -option "grp:lalt_lshift_toggle" -option "caps:ctrl_modifier"

Last edited by Legogris (2015-11-28 01:06:20)

Offline

#2 2015-12-03 21:01:12

Legogris
Member
Registered: 2012-09-11
Posts: 38

Re: Keyboard layout sporadically reverts on external keyvboards

Update: I am now suspicious that sleep/hibernation might be a/the triggering factor. Also, running setxkbmap when this happens makes it work again (duh, should have tried that from the beginning). Still not sure how to not make this happen.

Offline

Board footer

Powered by FluxBB