################################################################################ # An example udev rules file for eventlircd. # # This rules file does not start eventlircd. Many applications only check for # the lircd socket at application lauch. Therefore, it is better to start # eventlircd in an init script so that eventlircd creates the lircd socket # before any applications that use LIRC launch. ################################################################################ # eventlircd only does something for "add" and "remove" actions. ACTION!="add|remove", GOTO="end" # eventlircd only does something "input" subsystem devices. SUBSYSTEM!="input", GOTO="end" # eventlircd can only handle event devices. KERNEL!="event[0-9]*", GOTO="end" # eventlircd ignores devices created by eventlircd. ATTRS{name}=="eventlircd", GOTO="end" #------------------------------------------------------------------------------- # Ask eventlircd to handle input event devices created by lircd. For this to # work, lircd must be configured to output Linux input events and must be # configured to output key names that conform to the LIRC namespace derived from # the Linux key/button event names. This rule assumes that lircd performs all # key mappings, so the rule does not provide a value for "eventlircd_evmap". # For more information on lircd, see . #------------------------------------------------------------------------------- ATTRS{name}=="lircd", \ ENV{eventlircd_enable}="true" ATTRS{name}=="lircd.uinput", \ ENV{eventlircd_enable}="true" #------------------------------------------------------------------------------- # Ask eventlircd to handle input event devices created by irserver2uinput. #------------------------------------------------------------------------------- ATTRS{name}=="irserver2uinput", \ ENV{eventlircd_enable}="true" #------------------------------------------------------------------------------- # Ask eventlircd to handle input event devices created by bdremoteng. For this # to work, bdremoteng must be configured to output Linux input events and must # be configured to output key names that conform to LIRC namespace derived # from the Linux key/button event names. For more information on bdremoteng, # see . #------------------------------------------------------------------------------- ATTRS{name}=="bdremoteng", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="bdremoteng.evmap" #------------------------------------------------------------------------------- # Ask eventlircd to handle input event devices created by wminput. This rule # assumes that wminput performs all key mappings, so the rule does not provide a # value for "eventlircd_evmap" For more information on wminput, see # . #------------------------------------------------------------------------------- ATTRS{name}=="bdremoteng", \ ENV{eventlircd_enable}="true" #------------------------------------------------------------------------------- # Ask eventlircd to handle input event devices created by ir-core (kernel). #------------------------------------------------------------------------------- SUBSYSTEMS=="rc", \ ENV{eventlircd_enable}="true" #------------------------------------------------------------------------------- # overwrites for ircore mapping #------------------------------------------------------------------------------- SUBSYSTEM=="input", ATTRS{idVendor}=="1c73", ATTRS{idProduct}=="861f", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="anysee.evmap" #------------------------------------------------------------------------------- # Ask eventlircd to handle USB HID devices that show up as event devices and are # known to be remote controls. For simplicity, the event map file names have the # format __.evmap. #------------------------------------------------------------------------------- SUBSYSTEMS=="usb", GOTO="begin-usb" GOTO="end-usb" LABEL="begin-usb" ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p" ENV{ID_VENDOR_ID}=="0419", ENV{ID_MODEL_ID}=="0001", \ ENV{eventlircd_enable}="true",\ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="05a4", ENV{ID_MODEL_ID}=="9881", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="hama-mce.evmap" ENV{ID_VENDOR_ID}=="4243", ENV{ID_MODEL_ID}=="ee08", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="1934", ENV{ID_MODEL_ID}=="5168", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="0755", ENV{ID_MODEL_ID}=="2626", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="045e", ENV{ID_MODEL_ID}=="006d", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="0766", ENV{ID_MODEL_ID}=="0204", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="1241", ENV{ID_MODEL_ID}=="e000", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="147a", ENV{ID_MODEL_ID}=="e02d", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="mce.evmap" ENV{ID_VENDOR_ID}=="147a", ENV{ID_MODEL_ID}=="e03a", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="mce.evmap" ENV{ID_VENDOR_ID}=="0c16", ENV{ID_MODEL_ID}=="0002", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="04_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="0755", ENV{ID_MODEL_ID}=="2626", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="0471", ENV{ID_MODEL_ID}=="060c", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="0471", ENV{ID_MODEL_ID}=="0815", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="18b1", ENV{ID_MODEL_ID}=="0037", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="04b4", ENV{ID_MODEL_ID}=="0100", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="04b4", ENV{ID_MODEL_ID}=="0101", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="1d57", ENV{ID_MODEL_ID}=="ac01", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ENV{ID_VENDOR_ID}=="22b8", ENV{ID_MODEL_ID}=="003b", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$env{ID_VENDOR_ID}_$env{ID_MODEL_ID}.evmap" ATTRS{idVendor}=="2040", ATTRS{idProduct}=="9301", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="03_$attr{idVendor}_$attr{idProduct}.evmap" ENV{ID_VENDOR_ID}=="1784", ENV{ID_MODEL_ID}=="0004", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="default.evmap" # FLIRC receiver ENV{ID_VENDOR_ID}=="20a0", ENV{ID_MODEL_ID}=="0006", \ ENV{eventlircd_enable}="true", \ ENV{eventlircd_evmap}="flirc.evmap" # Enable wake-on-usb for the USB remotes. ENV{eventlircd_enable}=="true", RUN+="wakeup_enable" LABEL="end-usb" # Set Tag für xorg input device configuration ENV{eventlircd_enable}=="true", ENV{ID_INPUT.tags}="eventlircd" LABEL="end"