pqrs-org/Karabiner-Elements

Keyboard freezing forcing a restart

Open

#2,035 opened on Oct 22, 2019

View on GitHub
 (77 comments) (32 reactions) (0 assignees)C++ (22,112 stars) (909 forks)batch import
bugduplicatehelp wanted

Description

Simplest way to reproduce:

Press any modifier key, then hit caps_lock. This will randomly freeze the keyboard no keys work until I restart the computer again. Sometimes it freezes on the first try, other times take 10+ tries.

Here's the simplest config I could reproduce with:

{:layers {:homerow {:key :caps_lock :alone {:key :escape}}}
 :main [{:des "bug" :rules [:homerow [:a :a]]}]}

or

 "rules" : [ {
        "description" : "Auto generated layer conditions",
        "manipulators" : [ {
          "type" : "basic",
          "to" : [ {
            "set_variable" : {
              "name" : "homerow",
              "value" : 1
            }
          } ],
          "from" : {
            "key_code" : "caps_lock"
          },
          "to_after_key_up" : [ {
            "set_variable" : {
              "name" : "homerow",
              "value" : 0
            }
          } ],
          "to_if_alone" : [ {
            "key_code" : "escape"
          } ]
        } ]
      }, {
        "description" : "bug",
        "manipulators" : [ {
          "from" : {
            "key_code" : "a"
          },
          "to" : [ {
            "key_code" : "a"
          } ],
          "conditions" : [ {
            "name" : "homerow",
            "value" : 1,
            "type" : "variable_if"
          } ],
          "type" : "basic"
        } ]
      } ]

Contributor guide