You are not logged in.

#1 2018-05-23 14:31:34

tfcata
Member
Registered: 2013-02-04
Posts: 25

[SOLVED]swapping ESC and Capslock is lost after resume from suspension

I've experienced this on both cinnamon and xfce. On cinnamon I used its builtin option to swap the keys, while on xfce I run the 'setxkbmap' command to do so. However, when I resume the computer from suspension, sometimes cinnamon lose the swapped keys. I was fed up with it, so went back to xfce and the same happens. I've no idea where to look for the cause of the problem. Any hints?

Last edited by tfcata (2018-05-23 17:20:10)

Offline

#2 2018-05-23 15:16:47

seth
Member
Registered: 2012-09-03
Posts: 49,985

Re: [SOLVED]swapping ESC and Capslock is lost after resume from suspension

The usb port will suspend, the keyboard detach, re-attach on resume and get re-initialized, ie. you're loosing all runtime changes over this incident.

/etc/X11/xorg.conf.d/11-keyboard.conf

Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard	"yes"
    # maybe also MatchProduct "<check xinput for the product>"
    Option		"XkbOptions" "terminate:ctrl_alt_bksp,caps:swapescape" # this will also enable zapping as syntax demo
    # more options
EndSection

Online

#3 2018-05-23 17:19:52

tfcata
Member
Registered: 2013-02-04
Posts: 25

Re: [SOLVED]swapping ESC and Capslock is lost after resume from suspension

Oh, thanks. That does the trick.

Offline

Board footer

Powered by FluxBB