The C utility in this directory demonstrates the commands understood by the keyboard. It supports:
- Thinkpad Compact USB keyboard with Trackpoint (KU-1255)
- Lenovo Low Profile USB Keyboard (LXH-JME2209U)
Anything this tool can do is already handled by linux now, but the could be used to add support to another operating system, for example.
To build, run make
.
To run tp-compact-usb-keyboard
whenever a keyboard is inserted, you can use
udev rule similar to the following:
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6018", RUN+="/path/to/tp-compact-usb-keyboard %E{DEVNAME}"