Every time I reboot my VM the Caps Lock key work in the GNOME login screen but once I login the Caps Lock stop working. I can Enable Caps Lock key using
Code: Select all
sudo setxkbmap -option ""
- Is there a way to prevent Caps Lock key be disable after login?
- How can I enable Caps Lock key permanently on CentOS7?
The key is recognize. I run
Code: Select all
xev
Code: Select all
KeyPress event, serial 34, synthetic NO, window 0x3600001,
root 0x281, subw 0x0, time 1658922, (367,279), root:(417,394),
state 0x10, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3600001,
root 0x281, subw 0x0, time 1659024, (367,279), root:(417,394),
state 0x12, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
I configure it using:
Code: Select all
$ sudo localectl set-keymap latam
$ sudo localectl set-x11-keymap latam
$ sudo setxkbmap -model inspiron -layout latam -option ""
Code: Select all
$uname -a
Linux CentOS7 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux