From: Arunkumar S on 21 May 2010 10:14 Hi, My setup has several keyboards of PS2/USB kind connected to the system. I have to blink LEDs of specific keyboard out of all connected Keyboards. I understand that dev node "/dev/console" addresses to the system's keyboard controller, which is shared by all keyboard connected. Is there any way to address a specific keyboard and executes IOCTL command for that keyboard alone. =========== int fd = open( "/dev/console", 0 ); ioctl( fd, KDSETLED, (( KBD_SCROLLOCK | KBD_NUMLOCK | KBD_CAPSLOCK ) & KBD_MASK) ); =========== Thanks, Arun
From: John Reiser on 21 May 2010 11:08 > Is there any way to address a specific keyboard and executes IOCTL > command for that keyboard alone. First you must identify the device. Look at the output from "cat /proc/bus/usb/devices". Look at the output from "find /sys -print", specifically /sys/devices/platform/i8042/, /sys/module/keyboard, /sys/devices/virtual/input, /sys/bus/hid, /sys/devices/.../input/..., etc. Then see if the driver for that device can do what you want. --
|
Pages: 1 Prev: Sendmail with csv-files Next: firefox and NSPlugin Wrapper (aka "flash") |