# This file was automatic# This file was automatic# This file was automatically created based on description files (*.desc)
# by sane-desc 3.5 from sane-backends 1.0.24 on Fri Oct 10 16:40:02 2014
#
# udev rules file for supported USB and SCSI devices
#
# The SCSI device support is very basic and includes only
# scanners that mark themselves as type "scanner" or
# SCSI-scanners from HP and other vendors that are entitled "processor"
# but are treated accordingly.
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_usb_rules_begin" and LABEL="libsane_usb_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# If your scanner isn't listed below, you can add it as explained above.
#
# If your scanner is supported by some external backend (brother, epkowa,
# hpaio, etc) please ask the author of the backend to provide proper
# device detection support for your OS
#
# If the scanner is supported by sane-backends, please mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
ACTION!="add", GOTO="libsane_rules_end"
# ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
SUBSYSTEM=="usb", GOTO="libsane_usb_rules_begin"
SUBSYSTEM!="usb", GOTO="libsane_usb_rules_end"
# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"
# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", MODE="0664", OWNER="root", GROUP="root"
# Kernel < 2.6.22 jumps here
LABEL="libsane_usb_rules_begin"
# Hewlett-Packard Any all-in-one device
ATTR{idVendor}=="03f0", ATTR{idProduct}=="0000", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
[b]Schnitt[/b]
# Brother
ATTR{idVendor}=="04f9", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-240C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01ab", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7840W
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01e5", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3100C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="010e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5100C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="010f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-4800
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0110", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-6800 | Brother MFC 4600
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0111", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother
DCP-1000
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0112", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8500
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0113", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9700
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0114", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9800
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0115", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-1400
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0116", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-2900
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0117", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-3800
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0118", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9660
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0119", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9860
ATTR{idVendor}=="04f9", ATTR{idProduct}=="011a", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9760
ATTR{idVendor}=="04f9", ATTR{idProduct}=="011c", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9070
ATTR{idVendor}=="04f9", ATTR{idProduct}=="011d", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9180
ATTR{idVendor}=="04f9", ATTR{idProduct}=="011e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9160
ATTR{idVendor}=="04f9", ATTR{idProduct}=="011f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-580
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0120", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-590
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0121", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5100J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0122", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-2850
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0123", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-4800J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0124", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-6800J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0125", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX1800C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0126", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9800J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0127", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8500J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0128", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-9030
ATTR{idVendor}=="04f9", ATTR{idProduct}=="012b", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-4100
ATTR{idVendor}=="04f9", ATTR{idProduct}=="012e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-4750e
ATTR{idVendor}=="04f9", ATTR{idProduct}=="012f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX-5750e
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0130", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5200C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0132", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-100
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0135", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-150CL
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0136", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3200C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="013a", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-890
ATTR{idVendor}=="04f9", ATTR{idProduct}=="013c", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5200J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="013d", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-4420C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="013e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-4820C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="013f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8020
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0140", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8025D
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0141", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8420
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0142", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8820D
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0143", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-4020C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0144", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3220C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0146", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX1820C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0147", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3320CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0148", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX1920CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0149", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3420C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014a", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3820CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014b", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-3020C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014c", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother FAX1815C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014d", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8820J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8025J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="014f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8220
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0150", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8210
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0151", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-1000J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0153", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3420J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0157", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3820J
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0158", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8040
ATTR{idVendor}=="04f9", ATTR{idProduct}=="015d", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8045D
ATTR{idVendor}=="04f9", ATTR{idProduct}=="015e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8440
ATTR{idVendor}=="04f9", ATTR{idProduct}=="015f", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-8840D
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0160", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-210C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0161", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-420CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0162", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-410CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0163", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-620CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0165", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-610CLN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0166", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-610CLN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0168", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-110C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0169", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-310CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="016b", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5440CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="016d", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-5840CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="016e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3240C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0173", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-3340CN
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0174", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7420
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0180", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7820N
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0181", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-7010
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0182", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-7020
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0183", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-7025
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0184", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7220
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0185", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7225N
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0186", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-115C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="018c", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-117C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="018e", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-120C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0190", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-215C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0193", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-8060
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01a3", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother DCP-330C
ATTR{idVendor}=="04f9",
ATTR{idProduct}=="01a9", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-240C
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01ab", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother MFC-7840W
ATTR{idVendor}=="04f9", ATTR{idProduct}=="01e5", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother
ATTR{idVendor}=="04f9", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
[b]# The following rule will disable USB autosuspend for the device[/b]
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"
LABEL="libsane_usb_rules_end"
SUBSYSTEMS!="scsi", GOTO="libsane_scsi_rules_end"
LABEL="libsane_scsi_rules_begin"
# Generic: SCSI device type 6 indicates a scanner
KERNEL=="sg[0-9]*", ATTRS{type}=="6", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Some scanners advertise themselves as SCSI device type 3
# Wildcard: for some Epson SCSI scanners
KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="SCANNER*", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# Brother
ATTR{idVendor}=="04f9", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"
LABEL="libsane_usb_rules_end"
SUBSYSTEMS!="scsi", GOTO="libsane_scsi_rules_end"
LABEL="libsane_scsi_rules_begin"
ENV{libsane_matched}=="yes", MODE="664", GROUP="lp"
LABEL="libsane_rules_end"