I've created a virtual keyboard using uinput
I can see the input device in /sys/devices/virtual/input
as input7
The key presses don't seem to be registered in xwindows
From what I can tell it's not showing up in xinput -list
Looking at input7
directory in /sys/devices/virtual/input
I could see a directory event4
Using evtest
I can see the keyboard events are being generated successfully.
Event: time 1624187132.489135, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1624187132.489135, -------------- SYN_REPORT ------------
Event: time 1624187134.489502, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1624187134.489502, -------------- SYN_REPORT ------------
Event: time 1624187134.681998, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1624187134.681998, -------------- SYN_REPORT ------------
Event: time 1624187136.682230, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1624187136.682230, -------------- SYN_REPORT ------------
Event: time 1624187136.682537, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1624187136.682537, -------------- SYN_REPORT ------------
Event: time 1624187138.683337, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1624187138.683337, -------------- SYN_REPORT ------------
Event: time 1624187138.683697, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1624187138.683697, -------------- SYN_REPORT ------------
Event: time 1624187140.684101, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1624187140.684101, -------------- SYN_REPORT ------------
Event: time 1624187144.894104, type 1 (EV_KEY), code 45 (KEY_X), value 1
Event: time 1624187144.894104, -------------- SYN_REPORT ------------
Event: time 1624187146.895425, type 1 (EV_KEY), code 45 (KEY_X), value 0
Event: time 1624187146.895425, -------------- SYN_REPORT ------------
But they're not being passed to xwindows - I'm thinking of trying to add it manually but am I doing something wrong or missing something simple :)
Looking at dmesg I can see the input being created
input: testkeyboard as /devices/virtual/input/input7