Caps Lock disable after login

Issues related to hardware problems
Post Reply
YeyoCoder
Posts: 1
Joined: 2018/09/22 18:23:14

Caps Lock disable after login

Post by YeyoCoder » 2018/09/22 18:33:09

THE PROBLEM:
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 ""
. But it is very frustrating doing it every day.
  • Is there a way to prevent Caps Lock key be disable after login?
  • How can I enable Caps Lock key permanently on CentOS7?
I try to run a script at start-up but apparently the problem start after login.
The key is recognize. I run

Code: Select all

xev
and get the following output:

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 am using a latam keyboar.
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 ""
Information about my system running on VMware Worksation player 14 on Windows 10 Host:

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

Post Reply