redss has asked for the wisdom of the Perl Monks concerning the following question:
I have a usb keyboard connected, and after adding the evdev to the kernel (modprobe evdev) I have event devices /dev/input/event0,1,2,3 etc
Iwant to find out which event device pertains to the usb keyboard, and I understand that a way is to open the device and check the device ID via ioctl().
In other words, I'd like to see something like the output of lsusb for that particular device.
How would I do that in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling ioctl
by Fletch (Bishop) on Oct 15, 2008 at 00:52 UTC | |
|
Re: calling ioctl
by Illuminatus (Curate) on Oct 15, 2008 at 01:33 UTC | |
|
Re: calling ioctl
by thinc (Novice) on Oct 15, 2008 at 17:34 UTC |