- Posts: 5713
- Thank you received: 2100
Please Log in or Create an account to join the conversation.
rodw wrote: I have not tried this but:
You should be able to write a component in Python to "stuff" data (single character or a string) into the keyboard buffer.
Please Log in or Create an account to join the conversation.
phillc54 wrote: I think the keyboard module requires root.
Please Log in or Create an account to join the conversation.
andypugh wrote:
rodw wrote: I have not tried this but:
You should be able to write a component in Python to "stuff" data (single character or a string) into the keyboard buffer.
The first version of matrix_kb had this capability. But it did it by calling external kernel routines, and there was a worry that we had no way to know that these were thread-safe so it was taken out.
This commit is where I removed that code:
github.com/LinuxCNC/linuxcnc/commit/b494...c3b3790a457e1ed354c8
So if that was all put in a separate userspace component, the matrix_kb could look (partially) like a standard keyboard to the OS.
(In a userspace component there is no need to worry about thread safety)
Please Log in or Create an account to join the conversation.
rodw wrote: I wonder how this would be treated in PREMPT_RT? I thought it basically removed any non-thread safe code.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.