input: kbd_matrix: add an kbd_matrix_state shell command
Add a "input kbd_matrix_state" shell command. This prints the state of a keyboard matrix in a much more compact representation than the normal input event dump, but also keeps track of any key seen during the execution and reports that on the "off" command. The output can be used to help setting the actual-key-mask property. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
bc849c7078
commit
e4796521f2
2 changed files with 174 additions and 0 deletions
|
@ -20,6 +20,21 @@ config INPUT_KBD_MATRIX_16_BIT_ROW
|
|||
Use a 16 bit type for the internal structure, allow using a matrix
|
||||
with up to 16 rows if the driver supports it.
|
||||
|
||||
config INPUT_SHELL_KBD_MATRIX_STATE
|
||||
bool "Input kbd_matrix_state shell command"
|
||||
depends on INPUT_SHELL
|
||||
help
|
||||
Enable an input kbd_matrix_state shell command to log the state of a
|
||||
keyboard matrix device.
|
||||
|
||||
config INPUT_SHELL_KBD_MATRIX_STATE_MAX_COLS
|
||||
int "Maximum column count for the kbd_matrix_state command"
|
||||
default 32
|
||||
depends on INPUT_SHELL_KBD_MATRIX_STATE
|
||||
help
|
||||
Maximum column count for a device processed by the input
|
||||
kbd_matrix_state shell command.
|
||||
|
||||
config INPUT_KBD_DRIVE_COLUMN_HOOK
|
||||
bool
|
||||
help
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue