Using library at Jakub Wilk's library at http://jwilk.net/software/python-keyboardleds, it is
lk = LedKit('/dev/input/event1')
The trick is to determine which input device your keyboard is. To figure
that out, you look at /proc/bus/input/devices. (Thanks to Jakub for this
I tested this on two a keyboards:
- PS1 keyboard connected via PS1 to USB adaptor with Holtek chipset
- A cheap numeric keypad, also with Holtek chipset (04d9:1603),
Result: It works for the former but not the latter.
Perhaps someone knows whether that's a driver issue or a problem of the
hardware itself (not responding to requests from the driver).