On Thu, 2011-01-06 at 17:34 -0800, Dmitry Torokhov wrote: > No, instead of adding yet another kernel attribute just use ioctl to get > current switch state. Or write a general purpose utility to query > switch/key state and contribute it to consoletools project - many people > have asked fr it ;) Thanks for the review. Did you mean consoletools as in http://lct.sourceforge.net/ ? It looks rather dead. Perhaps util-linux-ng would be a more appropriate target? I'm attaching the general purpose utility for your comments. Thanks, Daniel