How can I decide what /dev/input/eventX file to read for special usb device?
I have usb keyboard and i need to read events from it with shell script (evdev module gives /dev/input/event[0|1] file, from which I read with hexdump). While testing, I found that for the same keyboard the event file is different on different systems (event1 at my home, event0 at work). How could I (and my script) determine exactly from where to read for this keyboard events? Probably I must get dmesg, found last line and get event file number? Or get it from /proc/bus/usb/devices? -- Best regards, your Anton ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
