LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Map USB device to a specific special file (http://www.linuxquestions.org/questions/linux-hardware-18/map-usb-device-to-a-specific-special-file-546073/)

DaneelGiskard 04-14-2007 06:17 PM

Map USB device to a specific special file
 
Hi all,

sorry to bother you with this, but I forgot how to do it and can't find it on google.

I know that there is a way to map a specific USB device to a specific special file. Currently it is mapped to /dev/input/eventX where X is variable (may change each time you plug in a USB device).

I want to map it to a specific special file every time it is plugged in. I remember that I was able to steer that based on the product ID or product key (something viewable by "cat /proc/bus/input/devices").

I can't remember how to do it...can anyone please refresh my memory?

Many thanks,
Michael

bigrigdriver 04-14-2007 06:30 PM

The document to search for is "Writing udev rules"
by Daniel Drake

DaneelGiskard 04-14-2007 06:37 PM

Cheers, that was it!

Thanks,
Michael


All times are GMT -5. The time now is 02:32 AM.