Thanks to MinimusHeximus and the respective contributors to the thread he mentioned in his comment to my similar question, I think I can now offer you the following answer.
You'll need 5 (five) files for such a USB device as follows, simply filling in respective values
- You can capture the values
<yourproductid> by entering the command
lsusb in Terminal -- when your USB device is plugged in -- which will list all your USB devices currently available, like
Bus 003 Device 002: ID 8087:07da Intel Corp., where 8087 is the VendorID and 07da is the ProductID.
<yourdevice> can be any arbitrary name you may choose for your USB device, for example, I chose to use the generic name "keyboard" when creating such files for my USB keyboard which required applying a different keyboard layout whenever it's plugged in.
- In some scenarios, it may not be necessary to use the
ACTION=="remove" line in the udev rules file, and hence the associated 2 (two) "
out" files, when you don't need to do anything (e.g. reverse a change made when the device is plugged in) after the device is plugged out.