Announcement

Collapse
No announcement yet.

Brother scanner not working

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Brother scanner not working

    Hi , can someone give me some pointers on how to get my brother MFC260C scanner working and maybe even the doc feeder. I followed the instructions on the Brother web site


    Ubuntu 9.10, 10.04, 10.10, 11.4, 11.10, 12.04, 12.10
    1. Open "/lib/udev/rules.d/40-libsane.rules" file.
    2. Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):
    If there is "LABEL="libsane_rules_end"", add the following 2 lines before "LABEL="libsane_rules_end"".

    The lines to be added---------------------------


    # Brother scanners
    ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"


    3. Restart the OS.

    I copied and pasted this but it didn't work as you can see below

    The document could not be saved, as it was not possible to write to /lib/udev/rules.d/40-libsane.rules.

    Check that you have write access to this file or that enough disk space is available.

    regards Michael

    #2
    You will want to open the file as root, in konsole (or the run command interface "Alt + F2") type kdesudo dolphin , input your password, and then open/edit the file now (this time it should allow you to save it).
    Nowadays I'm mostly Mac, but...
    tron: KDE neon User | MacPro5,1 | 3.2GHz Xeon | 48GB RAM | 250GB, 1TB, & 500GB Samsung SSDs | Nvidia GTX 980 Ti

    Comment


      #3
      You have to edit the file 'as root'. Press Alt+F2 and type: kdesudo /usr/bin/kate /lib/udev/rules.d/40-libsane.rules
      (Note there is a space after kate and before /lib)
      When prompted, type your password. The file will open for editing 'as root'. Make the changes and save.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Brother scanner not working

        Originally posted by Snowhog View Post
        You have to edit the file 'as root'. Press Alt+F2 and type: kdesudo /usr/bin/kate /lib/udev/rules.d/40-libsane.rules
        (Note there is a space after kate and before /lib)
        When prompted, type your password. The file will open for editing 'as root'. Make the changes and save.
        Guys - thanks for your help.

        still not working - but was able to save this time, I have installed brscan - key and brscan2



        Here below is a copy and paste from kate - its at the bottom of the usb list but is different from the rest in that its missing the second ATTRS {product ID etc ??

        regards Michael



        # This file was automatically created based on description files (*.desc)
        # by sane-desc 3.5 from sane-backends 1.0.22
        #
        # 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_device", GOTO="libsane_usb_rules_begin"
        SUBSYSTEM!="usb_device", 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 ScanJet 4100C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0101", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4200C | Hewlett-Packard ScanJet 4200Cxi | Hewlett-Packard ScanJet 4200Cse
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0105", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 6200C | Hewlett-Packard ScanJet 6250C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0201", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3300c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0205", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4300c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0305", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5200C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0401", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3400c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0405", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 2100C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0505", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 6300C | Hewlett-Packard ScanJet 6350C | Hewlett-Packard ScanJet 6390C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0601", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 2200C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0605", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5300C | Hewlett-Packard ScanJet 5370C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0701", ENV{libsane_matched}="yes"
        # Hewlett-Packard scanjet 4400c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0705", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 7400c | Hewlett-Packard ScanJet 7450c | Hewlett-Packard ScanJet 7490c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0801", ENV{libsane_matched}="yes"
        # Hewlett-Packard scanjet 4470c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0805", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 2300C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0901", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 2400C | Hewlett-Packard ScanJet G2410
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0a01", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 8200 | Hewlett-Packard ScanJet 8250 | Hewlett-Packard ScanJet 8290
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0b01", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5400c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1005", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5470c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1105", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4500C | Hewlett-Packard ScanJet 5550C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1205", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4570C | Hewlett-Packard ScanJet 5500C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1305", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3670C | Hewlett-Packard ScanJet 3690C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1405", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5590
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1705", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 7650
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1805", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3530C | Hewlett-Packard ScanJet 3570C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2005", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3500C
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2205", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3970c
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2305", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4070 Photosmart
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2405", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 3800
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2605", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet G2710
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2805", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 8300 | Hewlett-Packard ScanJet 8350 | Hewlett-Packard ScanJet 8390
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3805", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 8270
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3905", ENV{libsane_matched}="yes"
        # Hewlett-Packard LaserJet M1005 MFP
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3b17", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4370
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4105", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet G3010
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4205", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet G3110
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4305", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet G4010
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4505", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet G4050
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="4605", ENV{libsane_matched}="yes"
        # Hewlett-Packard LaserJet M1120 MFP
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="5617", ENV{libsane_matched}="yes"
        # Hewlett-Packard LaserJet M1120n MFP
        ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="5717", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200
        ATTRS{idVendor}=="0400", ATTRS{idProduct}=="1000", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200 | Mustek BearPaw 2400
        ATTRS{idVendor}=="0400", ATTRS{idProduct}=="1001", ENV{libsane_matched}="yes"
        # Kodak i30
        ATTRS{idVendor}=="040a", ATTRS{idProduct}=="6001", ENV{libsane_matched}="yes"
        # Kodak i40
        ATTRS{idVendor}=="040a", ATTRS{idProduct}=="6002", ENV{libsane_matched}="yes"
        # Kodak i50 | Kodak i55
        ATTRS{idVendor}=="040a", ATTRS{idProduct}=="6003", ENV{libsane_matched}="yes"
        # Kodak i60 | Kodak i65
        ATTRS{idVendor}=="040a", ATTRS{idProduct}=="6004", ENV{libsane_matched}="yes"
        # Kodak i80
        ATTRS{idVendor}=="040a", ATTRS{idProduct}=="6005", ENV{libsane_matched}="yes"
        # Creative WebCam Go Mini
        ATTRS{idVendor}=="041e", ATTRS{idProduct}=="4007", ENV{libsane_matched}="yes"
        # Lexmark X70 | Lexmark X73
        ATTRS{idVendor}=="043d", ATTRS{idProduct}=="002d", ENV{libsane_matched}="yes"
        # Lexmark X74
        ATTRS{idVendor}=="043d", ATTRS{idProduct}=="0060", ENV{libsane_matched}="yes"
        # Lexmark X1110 | Lexmark X1130 | Lexmark X1140
        # Lexmark X1150 | Lexmark X1170 | Lexmark X1180
        # Lexmark X1185 | Lexmark X1195
        ATTRS{idVendor}=="043d", ATTRS{idProduct}=="007c", ENV{libsane_matched}="yes"
        # Lexmark X12xx
        ATTRS{idVendor}=="043d", ATTRS{idProduct}=="007d", ENV{libsane_matched}="yes"
        # Genius ColorPage HR6 V1
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2004", ENV{libsane_matched}="yes"
        # Genius Colorpage HR6 V2
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2007", ENV{libsane_matched}="yes"
        # Genius Colorpage HR6 V2
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2008", ENV{libsane_matched}="yes"
        # Genius Colorpage HR6A
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2009", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid3x | Genius Colorpage Vivid3 V2
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2011", ENV{libsane_matched}="yes"
        # Genius Colorpage HR7
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2013", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid4
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2014", ENV{libsane_matched}="yes"
        # Genius Colorpage HR7LE
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2015", ENV{libsane_matched}="yes"
        # Genius Colorpage HR6X
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2016", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid3xe
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2017", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid4xe
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="201a", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid4x
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="201b", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid 1200 X
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="201d", ENV{libsane_matched}="yes"
        # Genius ColorPage Slim 1200
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="201e", ENV{libsane_matched}="yes"
        # Genius Colorpage Vivid 1200 XE
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="201f", ENV{libsane_matched}="yes"
        # Genius Colorpage SF600
        ATTRS{idVendor}=="0458", ATTRS{idProduct}=="2021", ENV{libsane_matched}="yes"
        # Medion/Lifetec/Tevion/Cytron MD5345 | Medion/Lifetec/Tevion/Cytron MD6228 | Medion/Lifetec/Tevion/Cytron MD6471
        ATTRS{idVendor}=="0461", ATTRS{idProduct}=="0377", ENV{libsane_matched}="yes"
        # Trust Office Scan USB 19200
        ATTRS{idVendor}=="047b", ATTRS{idProduct}=="1000", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4300c/Silitek
        ATTRS{idVendor}=="047b", ATTRS{idProduct}=="1002", ENV{libsane_matched}="yes"
        # Kyocera FS-1016MFP
        ATTRS{idVendor}=="0482", ATTRS{idProduct}=="0335", ENV{libsane_matched}="yes"
        # Compaq S4-100
        ATTRS{idVendor}=="049f", ATTRS{idProduct}=="001a", ENV{libsane_matched}="yes"
        # Benq (Acer) 310U
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="1a20", ENV{libsane_matched}="yes"
        # Benq (Acer) 620U
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="1a2a", ENV{libsane_matched}="yes"
        # Benq (Acer) 320U | Benq (Acer) 340U | Mitsubishi Diamondview 648UT
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="2022", ENV{libsane_matched}="yes"
        # Benq (Acer) 620UT
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="2040", ENV{libsane_matched}="yes"
        # Benq (Acer) 640U | Guillemot / Hercules Maxi Scan A4 USB 640U | Guillemot / Hercules Maxi A4 36 bit
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="2060", ENV{libsane_matched}="yes"
        # Benq (Acer) 640bu
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="207e", ENV{libsane_matched}="yes"
        # Benq (Acer) 3300 | Benq (Acer) 4300 | Mitsubishi Diamondview 650U
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20b0", ENV{libsane_matched}="yes"
        # Benq (Acer) 640BT
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20be", ENV{libsane_matched}="yes"
        # Benq (Acer) 1240
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20c0", ENV{libsane_matched}="yes"
        # Benq (Acer) 3300 | Benq (Acer) 4300 | Guillemot / Hercules Scan@home Touch 1248 (USB)
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20de", ENV{libsane_matched}="yes"
        # Benq (Acer) 5000
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20f8", ENV{libsane_matched}="yes"
        # Benq (Acer) 5000E | Benq (Acer) 5000U
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20fc", ENV{libsane_matched}="yes"
        # Benq (Acer) 5300
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="20fe", ENV{libsane_matched}="yes"
        # Benq (Acer) 5150 | Benq (Acer) 5250
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="2137", ENV{libsane_matched}="yes"
        # BenQ 5550
        ATTRS{idVendor}=="04a5", ATTRS{idProduct}=="2211", ENV{libsane_matched}="yes"
        # Visioneer Visioneer OneTouch 7100
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0229", ENV{libsane_matched}="yes"
        # Visioneer 9650
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0390", ENV{libsane_matched}="yes"
        # Visioneer 9320
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0420", ENV{libsane_matched}="yes"
        # Visioneer 9450
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0421", ENV{libsane_matched}="yes"
        # Visioneer 9550
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0422", ENV{libsane_matched}="yes"
        # Visioneer 9750
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0423", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 450
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0424", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 200
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0426", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 100
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0427", ENV{libsane_matched}="yes"
        # Visioneer OneTouch 7300
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0444", ENV{libsane_matched}="yes"
        # Xerox DocuMate510
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0446", ENV{libsane_matched}="yes"
        # Xerox DocuMate520
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0447", ENV{libsane_matched}="yes"
        # Xerox DocuMate250
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0448", ENV{libsane_matched}="yes"
        # Xerox DocuMate252
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0449", ENV{libsane_matched}="yes"
        # Xerox DocuMate262
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="044c", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 300
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0474", ENV{libsane_matched}="yes"
        # Xerox DocuMate272
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0475", ENV{libsane_matched}="yes"
        # Xerox DocuMate152
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0477", ENV{libsane_matched}="yes"
        # Xerox DocuMate752
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0478", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 470
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0479", ENV{libsane_matched}="yes"
        # Visioneer 9450-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="047a", ENV{libsane_matched}="yes"
        # Visioneer 9650-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="047b", ENV{libsane_matched}="yes"
        # Xerox DocuMate510-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="047c", ENV{libsane_matched}="yes"
        # Xerox DocuMate252-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="048c", ENV{libsane_matched}="yes"
        # Xerox DocuMate262-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="048d", ENV{libsane_matched}="yes"
        # Xerox DocuMate272-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="048e", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 470-G | Visioneer Patriot 470
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="048f", ENV{libsane_matched}="yes"
        # Xerox DocuMate250-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0490", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 450-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0491", ENV{libsane_matched}="yes"
        # Xerox DocuMate520-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0492", ENV{libsane_matched}="yes"
        # Visioneer 9750-G
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0493", ENV{libsane_matched}="yes"
        # Visioneer Roadwarrior
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0494", ENV{libsane_matched}="yes"
        # Xerox DocuMate512
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0495", ENV{libsane_matched}="yes"
        # Visioneer Patriot 430
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0497", ENV{libsane_matched}="yes"
        # Visioneer Patriot 680 | Xerox DocuMate632
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0498", ENV{libsane_matched}="yes"
        # Visioneer Patriot 780
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="0499", ENV{libsane_matched}="yes"
        # Xerox DocuMate752
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="049a", ENV{libsane_matched}="yes"
        # Visioneer Strobe XP 100,r3
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="049b", ENV{libsane_matched}="yes"
        # Xerox DocuMate150
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="049c", ENV{libsane_matched}="yes"
        # Xerox DocuMate162
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="049d", ENV{libsane_matched}="yes"
        # Xerox DocuMate262i
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="04a7", ENV{libsane_matched}="yes"
        # Xerox Travel Scanner 100
        ATTRS{idVendor}=="04a7", ATTRS{idProduct}=="04ac", ENV{libsane_matched}="yes"
        # Canon DR-2080C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1601", ENV{libsane_matched}="yes"
        # Canon CR-180 | Canon CR-180II
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1602", ENV{libsane_matched}="yes"
        # Canon DR-9080C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1603", ENV{libsane_matched}="yes"
        # Canon DR-7080C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1604", ENV{libsane_matched}="yes"
        # Canon DR-5010C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1606", ENV{libsane_matched}="yes"
        # Canon DR-6080
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1607", ENV{libsane_matched}="yes"
        # Canon DR-2580C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1608", ENV{libsane_matched}="yes"
        # Canon DR-3080CII
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1609", ENV{libsane_matched}="yes"
        # Canon DR-2050C | Canon DR-2050SP
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="160a", ENV{libsane_matched}="yes"
        # Canon DR-7580
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="160b", ENV{libsane_matched}="yes"
        # Canon PIXMA MP750
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1706", ENV{libsane_matched}="yes"
        # Canon PIXMA MP780
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1707", ENV{libsane_matched}="yes"
        # Canon PIXMA MP760
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1708", ENV{libsane_matched}="yes"
        # Canon PIXMA MP150
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1709", ENV{libsane_matched}="yes"
        # Canon PIXMA MP170
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="170a", ENV{libsane_matched}="yes"
        # Canon PIXMA MP450
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="170b", ENV{libsane_matched}="yes"
        # Canon PIXMA MP500
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="170c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP800
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="170d", ENV{libsane_matched}="yes"
        # Canon PIXMA MP800R
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="170e", ENV{libsane_matched}="yes"
        # Canon PIXMA MP530
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1712", ENV{libsane_matched}="yes"
        # Canon PIXMA MP830
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1713", ENV{libsane_matched}="yes"
        # Canon PIXMA MP160
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1714", ENV{libsane_matched}="yes"
        # Canon PIXMA MP180
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1715", ENV{libsane_matched}="yes"
        # Canon PIXMA MP460
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1716", ENV{libsane_matched}="yes"
        # Canon PIXMA MP510
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1717", ENV{libsane_matched}="yes"
        # Canon PIXMA MP600
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1718", ENV{libsane_matched}="yes"
        # Canon PIXMA MP600R
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1719", ENV{libsane_matched}="yes"
        # Canon PIXMA MP810
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="171a", ENV{libsane_matched}="yes"
        # Canon PIXMA MP960
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="171b", ENV{libsane_matched}="yes"
        # Canon PIXMA MX7600
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="171c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP210
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1721", ENV{libsane_matched}="yes"
        # Canon PIXMA MP220
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1722", ENV{libsane_matched}="yes"
        # Canon PIXMA MP470
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1723", ENV{libsane_matched}="yes"
        # Canon PIXMA MP520
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1724", ENV{libsane_matched}="yes"
        # Canon PIXMA MP610
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1725", ENV{libsane_matched}="yes"
        # Canon PIXMA MP970
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1726", ENV{libsane_matched}="yes"
        # Canon PIXMA MX300
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1727", ENV{libsane_matched}="yes"
        # Canon PIXMA MX310
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1728", ENV{libsane_matched}="yes"
        # Canon PIXMA MX700
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1729", ENV{libsane_matched}="yes"
        # Canon PIXMA MP140
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="172b", ENV{libsane_matched}="yes"
        # Canon PIXMA MX850
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="172c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP980
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="172d", ENV{libsane_matched}="yes"
        # Canon PIXMA MP630
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="172e", ENV{libsane_matched}="yes"
        # Canon PIXMA MP620
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="172f", ENV{libsane_matched}="yes"
        # Canon PIXMA MP540
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1730", ENV{libsane_matched}="yes"
        # Canon PIXMA MP480
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1731", ENV{libsane_matched}="yes"
        # Canon PIXMA MP240
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1732", ENV{libsane_matched}="yes"
        # Canon PIXMA MP260
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1733", ENV{libsane_matched}="yes"
        # Canon PIXMA MP190
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1734", ENV{libsane_matched}="yes"
        # Canon PIXMA MX860
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1735", ENV{libsane_matched}="yes"
        # Canon PIXMA MX320
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1736", ENV{libsane_matched}="yes"
        # Canon PIXMA MX330
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1737", ENV{libsane_matched}="yes"
        # Canon PIXMA MP250
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173a", ENV{libsane_matched}="yes"
        # Canon PIXMA MP270
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173b", ENV{libsane_matched}="yes"
        # Canon PIXMA MP490
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP550
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173d", ENV{libsane_matched}="yes"
        # Canon PIXMA MP560
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173e", ENV{libsane_matched}="yes"
        # Canon PIXMA MP640
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="173f", ENV{libsane_matched}="yes"
        # Canon PIXMA MP990
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1740", ENV{libsane_matched}="yes"
        # Canon PIXMA MX340
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1741", ENV{libsane_matched}="yes"
        # Canon PIXMA MX350
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1742", ENV{libsane_matched}="yes"
        # Canon PIXMA MX870
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1743", ENV{libsane_matched}="yes"
        # Canon CanoScan 8800F
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1901", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 100
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1904", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 200
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1905", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 110
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="1909", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 210
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="190a", ENV{libsane_matched}="yes"
        # Canon CanoScan fb630u | Canon CanoScan fb636u
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2204", ENV{libsane_matched}="yes"
        # Canon CanoScan N650U/N656U
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2206", ENV{libsane_matched}="yes"
        # Canon CanoScan N1220U
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2207", ENV{libsane_matched}="yes"
        # Canon CanoScan D660U
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2208", ENV{libsane_matched}="yes"
        # Canon CanoScan N670U/N676U/LiDE20
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="220d", ENV{libsane_matched}="yes"
        # Canon CanoScan N1240U/LiDE30
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="220e", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 35 | Canon CanoScan LiDE 40 | Canon CanoScan LiDE 50
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2213", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE 60
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="221c", ENV{libsane_matched}="yes"
        # Canon CanoScan LiDE25
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2220", ENV{libsane_matched}="yes"
        # Canon DR-1210C
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2222", ENV{libsane_matched}="yes"
        # Canon PIXMA MP730
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="262f", ENV{libsane_matched}="yes"
        # Canon PIXMA MP700
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2630", ENV{libsane_matched}="yes"
        # Canon PIXMA MP360
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="263c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP370
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="263d", ENV{libsane_matched}="yes"
        # Canon PIXMA MP390
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="263e", ENV{libsane_matched}="yes"
        # Canon PIXMA MP375R
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="263f", ENV{libsane_matched}="yes"
        # Canon PIXMA MP740
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="264c", ENV{libsane_matched}="yes"
        # Canon PIXMA MP710
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="264d", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF5630
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="264e", ENV{libsane_matched}="yes"
        # Canon laserBase MF5650
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="264f", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF8170c
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2659", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF5730
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="265d", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF5750
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="265e", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF5770
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="265f", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF3110
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2660", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF3240
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2684", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF6500 series
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="2686", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF4120 | Canon imageCLASS MF4122 | Canon imageCLASS MF4140
        # Canon imageCLASS MF4150
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26a3", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF4690
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26b0", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF4010 | Canon imageCLASS MF4018
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26b4", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF4270
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26b5", ENV{libsane_matched}="yes"
        # Canon imageCLASS MF4370dn | Canon imageCLASS MF4380dn
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26ec", ENV{libsane_matched}="yes"
        # Canon imageCLASS D480
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26ed", ENV{libsane_matched}="yes"
        # Canon I-SENSYS MF4320d | Canon I-SENSYS MF4330d | Canon imageCLASS MF4350d
        ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26ee", ENV{libsane_matched}="yes"
        # Nikon LS 40 ED | Nikon LS 40 ED | Nikon Coolspan IV
        ATTRS{idVendor}=="04b0", ATTRS{idProduct}=="4000", ENV{libsane_matched}="yes"
        # Nikon LS 50 ED | Nikon Coolscan V ED | Nikon LS 50 ED
        # Nikon Coolscan V ED
        ATTRS{idVendor}=="04b0", ATTRS{idProduct}=="4001", ENV{libsane_matched}="yes"
        # Nikon Super Coolscan LS-5000 ED | Nikon Super Coolscan LS-5000 ED
        ATTRS{idVendor}=="04b0", ATTRS{idProduct}=="4002", ENV{libsane_matched}="yes"
        # Epson Perfection 636U | Epson GT-7000U | Epson Perfection 636U
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0101", ENV{libsane_matched}="yes"
        # Epson Perfection 610 | Epson GT-6600U | Epson Perfection 610
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0103", ENV{libsane_matched}="yes"
        # Epson Perfection 1200U | Epson Perfection 1200Photo | Epson GT-7600U
        # Epson GT-7600UF | Epson Perfection 1200U | Epson Perfection 1200U PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0104", ENV{libsane_matched}="yes"
        # Epson Stylus Scan 2000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0105", ENV{libsane_matched}="yes"
        # Epson Stylus Scan 2500
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0106", ENV{libsane_matched}="yes"
        # Epson Expression 1600 | Epson ES-2000 | Epson Expression 1600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0107", ENV{libsane_matched}="yes"
        # Epson ES-8500 | Epson Expression 1640XL
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0109", ENV{libsane_matched}="yes"
        # Epson Perfection 1640 | Epson GT-8700 | Epson GT-8700F
        # Epson Perfection 1640SU | Epson Perfection 1640SU PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="010a", ENV{libsane_matched}="yes"
        # Epson Perfection 1240 | Epson GT-7700U | Epson Perfection 1240U
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="010b", ENV{libsane_matched}="yes"
        # Epson Perfection 640 | Epson GT-6700U | Epson Perfection 640U
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="010c", ENV{libsane_matched}="yes"
        # Epson Expression 1680 | Epson ES-2200 | Epson Expression 1680
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="010e", ENV{libsane_matched}="yes"
        # Epson Perfection 1250 | Epson Perfection 1250Photo
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="010f", ENV{libsane_matched}="yes"
        # Epson Perfection 1650 | Epson GT-8200U | Epson GT-8200UF
        # Epson Perfection 1650 | Epson Perfection 1650 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0110", ENV{libsane_matched}="yes"
        # Epson Perfection 2450 | Epson GT-9700F | Epson Perfection 2450 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0112", ENV{libsane_matched}="yes"
        # Epson Perfection 660
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0114", ENV{libsane_matched}="yes"
        # Epson Perfection 2400 | Epson GT-9300UF | Epson Perfection 2400 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="011b", ENV{libsane_matched}="yes"
        # Epson Perfection 3200 | Epson GT-9800F | Epson Perfection 3200 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="011c", ENV{libsane_matched}="yes"
        # Epson Perfection 1260 | Epson Perfection 1260Photo
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="011d", ENV{libsane_matched}="yes"
        # Epson Perfection 1660 | Epson GT-8300UF | Epson Perfection 1660 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="011e", ENV{libsane_matched}="yes"
        # Epson Perfection 1670
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="011f", ENV{libsane_matched}="yes"
        # Epson Perfection 1270
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0120", ENV{libsane_matched}="yes"
        # Epson Perfection 2480 | Epson Perfection 2580
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0121", ENV{libsane_matched}="yes"
        # Epson Perfection 3490 | Epson Perfection 3590
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0122", ENV{libsane_matched}="yes"
        # Epson ES-7000H | Epson GT-15000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0126", ENV{libsane_matched}="yes"
        # Epson Perfection 4870 | Epson GT-X700 | Epson Perfection 4870 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0128", ENV{libsane_matched}="yes"
        # Epson ES-10000G | Epson Expression 10000XL
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0129", ENV{libsane_matched}="yes"
        # Epson Perfection 4990 | Epson GT-X800 | Epson Perfection 4990 PHOTO
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="012a", ENV{libsane_matched}="yes"
        # Epson ES-H300 | Epson GT-2500
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="012b", ENV{libsane_matched}="yes"
        # Epson V700 | Epson V750 | Epson GT-X900
        # Epson Perfection V700 Photo | Epson Perfection V750 Photo
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="012c", ENV{libsane_matched}="yes"
        # Epson GT-X970
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0135", ENV{libsane_matched}="yes"
        # Epson CX-5200 | Epson CX-5400 | Epson CC-600PX
        # Epson Stylus CX5100 | Epson Stylus CX5200
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0801", ENV{libsane_matched}="yes"
        # Epson CX-3200 | Epson CC-570L | Epson Stylus CX3100
        # Epson Stylus CX3200
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0802", ENV{libsane_matched}="yes"
        # Epson CX-6300 | Epson CX-6400 | Epson Stylus CX6300
        # Epson Stylus CX6400
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0805", ENV{libsane_matched}="yes"
        # Epson RX-600 | Epson PM-A850 | Epson Stylus Photo RX600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0806", ENV{libsane_matched}="yes"
        # Epson RX-500 | Epson Stylus Photo RX500 | Epson Stylus Photo RX510
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0807", ENV{libsane_matched}="yes"
        # Epson CX-5400 | Epson Stylus CX5300 | Epson Stylus CX5400
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0808", ENV{libsane_matched}="yes"
        # Epson Stylus CX-1500
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="080c", ENV{libsane_matched}="yes"
        # Epson CX-4600 | Epson Stylus CX4500 | Epson Stylus CX4600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="080d", ENV{libsane_matched}="yes"
        # Epson CX-3600 | Epson CX-3650 | Epson PX-A550
        # Epson Stylus CX3500 | Epson Stylus CX3600 | Epson Stylus CX3650
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="080e", ENV{libsane_matched}="yes"
        # Epson RX-425 | Epson Stylus Photo RX420 | Epson Stylus Photo RX425
        # Epson Stylus Photo RX430
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="080f", ENV{libsane_matched}="yes"
        # Epson RX-700 | Epson PM-A900 | Epson Stylus Photo RX700
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0810", ENV{libsane_matched}="yes"
        # Epson RX-620 | Epson PM-A870 | Epson Stylus Photo RX620
        # Epson Stylus Photo RX630
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0811", ENV{libsane_matched}="yes"
        # Epson CX-6500 | Epson CX-6600 | Epson Stylus CX6500
        # Epson Stylus CX6600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0813", ENV{libsane_matched}="yes"
        # Epson PM-A700
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0814", ENV{libsane_matched}="yes"
        # Epson AcuLaser CX11 | Epson AcuLaser CX11NF | Epson AcuLaser CX11
        # Epson AcuLaser CX11NF | Epson LP-A500
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0815", ENV{libsane_matched}="yes"
        # Epson LP-M5500 | Epson LP-M5500F
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0817", ENV{libsane_matched}="yes"
        # Epson DX-3850 | Epson CX-3700 | Epson CX-3800
        # Epson DX-3800 | Epson Stylus CX3700 | Epson Stylus CX3800
        # Epson Stylus DX3800
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0818", ENV{libsane_matched}="yes"
        # Epson CX-4800 | Epson PX-A650 | Epson Stylus CX4700
        # Epson Stylus CX4800 | Epson Stylus DX4800 | Epson Stylus DX4850
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0819", ENV{libsane_matched}="yes"
        # Epson PM-A750 | Epson Stylus Photo RX520 | Epson Stylus Photo RX530
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="081a", ENV{libsane_matched}="yes"
        # Epson PM-A890 | Epson Stylus Photo RX640 | Epson Stylus Photo RX650
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="081c", ENV{libsane_matched}="yes"
        # Epson PM-A950
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="081d", ENV{libsane_matched}="yes"
        # Epson Stylus CX7700 | Epson Stylus CX7800
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="081f", ENV{libsane_matched}="yes"
        # Epson CX-4200 | Epson Stylus CX4100 | Epson Stylus CX4200
        # Epson Stylus DX4200
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0820", ENV{libsane_matched}="yes"
        # Epson PM-A820 | Epson Stylus Photo RX560 | Epson Stylus Photo RX580
        # Epson Stylus Photo RX590
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0827", ENV{libsane_matched}="yes"
        # Epson PM-A970
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0828", ENV{libsane_matched}="yes"
        # Epson PM-T990
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0829", ENV{libsane_matched}="yes"
        # Epson PM-A920
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="082a", ENV{libsane_matched}="yes"
        # Epson CX-5000 | Epson DX-5000 | Epson DX-5050
        # Epson Stylus CX4900 | Epson Stylus CX5000 | Epson Stylus DX5000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="082b", ENV{libsane_matched}="yes"
        # Epson DX-6000 | Epson PX-A720 | Epson Stylus CX5900
        # Epson Stylus CX6000 | Epson Stylus DX6000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="082e", ENV{libsane_matched}="yes"
        # Epson DX-4050 | Epson PX-A620 | Epson Stylus CX3900
        # Epson Stylus DX4000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="082f", ENV{libsane_matched}="yes"
        # Epson ME 200 | Epson Stylus CX2800 | Epson Stylus CX2900
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0830", ENV{libsane_matched}="yes"
        # Epson LP-M5600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0833", ENV{libsane_matched}="yes"
        # Epson LP-M6000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0834", ENV{libsane_matched}="yes"
        # Epson AcuLaser CX21
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0835", ENV{libsane_matched}="yes"
        # Epson PM-T960
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0836", ENV{libsane_matched}="yes"
        # Epson PM-A940 | Epson Stylus Photo RX680 | Epson Stylus Photo RX685
        # Epson Stylus Photo RX690
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0837", ENV{libsane_matched}="yes"
        # Epson DX-7400 | Epson PX-A640 | Epson Stylus CX7300
        # Epson Stylus CX7400 | Epson Stylus DX7400
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0838", ENV{libsane_matched}="yes"
        # Epson PX-A740 | Epson Stylus CX8300 | Epson Stylus CX8400
        # Epson Stylus DX8400
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0839", ENV{libsane_matched}="yes"
        # Epson PX-FA700 | Epson Stylus CX9300F | Epson Stylus CX9400Fax
        # Epson Stylus DX9400F
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="083a", ENV{libsane_matched}="yes"
        # Epson PM-A840 | Epson PM-A840S | Epson Stylus Photo RX585
        # Epson Stylus Photo RX595 | Epson Stylus Photo RX610
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="083c", ENV{libsane_matched}="yes"
        # Epson ME 300 | Epson PX-401A | Epson Stylus NX100
        # Epson Stylus SX100 | Epson Stylus TX100
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0841", ENV{libsane_matched}="yes"
        # Epson LP-M5000
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0843", ENV{libsane_matched}="yes"
        # Epson Artisan 800 | Epson EP-901A | Epson EP-901F
        # Epson Stylus Photo PX800FW | Epson Stylus Photo TX800FW
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0844", ENV{libsane_matched}="yes"
        # Epson Artisan 700 | Epson EP-801A | Epson Stylus Photo PX700W
        # Epson Stylus Photo TX700W
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0846", ENV{libsane_matched}="yes"
        # Epson ME Office 700FW | Epson PX-601F | Epson Stylus Office BX600FW
        # Epson Stylus Office TX600FW | Epson Stylus SX600FW | Epson WorkForce 600
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0847", ENV{libsane_matched}="yes"
        # Epson ME Office 600F | Epson Stylus Office BX300F | Epson Stylus Office TX300F
        # Epson Stylus NX300
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0848", ENV{libsane_matched}="yes"
        # Epson Stylus NX200 | Epson Stylus SX200 | Epson Stylus SX205
        # Epson Stylus TX200 | Epson Stylus TX203 | Epson Stylus TX209
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0849", ENV{libsane_matched}="yes"
        # Epson PX-501A | Epson Stylus NX400 | Epson Stylus SX400
        # Epson Stylus SX405 | Epson Stylus TX400
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="084a", ENV{libsane_matched}="yes"
        # Epson WorkForce 500
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="084c", ENV{libsane_matched}="yes"
        # Epson PX-402A | Epson Stylus NX110 Series | Epson Stylus SX110 Series
        # Epson Stylus TX110 Series
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="084d", ENV{libsane_matched}="yes"
        # Epson ME OFFICE 510 | Epson Stylus NX210 Series | Epson Stylus SX210 Series
        # Epson Stylus TX210 Series
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="084f", ENV{libsane_matched}="yes"
        # Epson Stylus NX410 Series | Epson Stylus SX410 Series | Epson Stylus TX410 Series
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0851", ENV{libsane_matched}="yes"
        # Epson ME OFFICE 650FN Series | Epson Stylus Office BX310FN Series | Epson Stylus Office TX510FN Series
        # Epson WorkForce 310 Series
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0854", ENV{libsane_matched}="yes"
        # Epson PX-502A | Epson Stylus NX510 Series | Epson Stylus SX510W Series
        # Epson Stylus TX550W Series
        ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0856", ENV{libsane_matched}="yes"
        # Fujitsu fi-4010CU
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1029", ENV{libsane_matched}="yes"
        # Fujitsu fi-4120C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1041", ENV{libsane_matched}="yes"
        # Fujitsu fi-4220C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1042", ENV{libsane_matched}="yes"
        # Fujitsu fi-4530C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1078", ENV{libsane_matched}="yes"
        # Fujitsu fi-5750C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1095", ENV{libsane_matched}="yes"
        # Fujitsu fi-5110EOX/2
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1096", ENV{libsane_matched}="yes"
        # Fujitsu fi-5110C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1097", ENV{libsane_matched}="yes"
        # Fujitsu fi-5650C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10ad", ENV{libsane_matched}="yes"
        # Fujitsu fi-4120C2
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10ae", ENV{libsane_matched}="yes"
        # Fujitsu fi-4220C2
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10af", ENV{libsane_matched}="yes"
        # Fujitsu fi-60F
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10c7", ENV{libsane_matched}="yes"
        # Fujitsu fi-4340C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10cf", ENV{libsane_matched}="yes"
        # Fujitsu fi-5120C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10e0", ENV{libsane_matched}="yes"
        # Fujitsu fi-5220C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10e1", ENV{libsane_matched}="yes"
        # Fujitsu fi-5530C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10e2", ENV{libsane_matched}="yes"
        # Fujitsu fi-5110EOX3
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10e6", ENV{libsane_matched}="yes"
        # Fujitsu fi-5900C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10e7", ENV{libsane_matched}="yes"
        # Fujitsu fi-5015C
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10ef", ENV{libsane_matched}="yes"
        # Fujitsu fi-5110EOXM
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10f2", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S500
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="10fe", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S500M
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1135", ENV{libsane_matched}="yes"
        # Fujitsu fi-5530C2
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="114a", ENV{libsane_matched}="yes"
        # Fujitsu fi-6140
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="114d", ENV{libsane_matched}="yes"
        # Fujitsu fi-6240
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="114e", ENV{libsane_matched}="yes"
        # Fujitsu fi-6130
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="114f", ENV{libsane_matched}="yes"
        # Fujitsu fi-6230
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1150", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S510
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1155", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S300
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1156", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S510M
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="116f", ENV{libsane_matched}="yes"
        # Fujitsu fi-6770
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1174", ENV{libsane_matched}="yes"
        # Fujitsu fi-6770A
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1175", ENV{libsane_matched}="yes"
        # Fujitsu fi-6670
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1176", ENV{libsane_matched}="yes"
        # Fujitsu fi-6670A
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1177", ENV{libsane_matched}="yes"
        # Fujitsu fi-6750S
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="1178", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S300M
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="117f", ENV{libsane_matched}="yes"
        # Fujitsu fi-6800
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="119d", ENV{libsane_matched}="yes"
        # Fujitsu fi-6800-CGA
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="119e", ENV{libsane_matched}="yes"
        # Fujitsu fi-6900
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="119f", ENV{libsane_matched}="yes"
        # Fujitsu fi-6900-CGA
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11a0", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S1500 | Fujitsu ScanSnap S1500M
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11a2", ENV{libsane_matched}="yes"
        # Fujitsu ScanSnap S1300
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11ed", ENV{libsane_matched}="yes"
        # Fujitsu fi-6125
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11ee", ENV{libsane_matched}="yes"
        # Fujitsu fi-6225
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11ef", ENV{libsane_matched}="yes"
        # Fujitsu fi-6145
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11f1", ENV{libsane_matched}="yes"
        # Fujitsu fi-6245
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11f2", ENV{libsane_matched}="yes"
        # Fujitsu fi-6135
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11f3", ENV{libsane_matched}="yes"
        # Fujitsu fi-6235
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11f4", ENV{libsane_matched}="yes"
        # Fujitsu fi-6110
        ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11fc", ENV{libsane_matched}="yes"
        # Konica e-mini
        ATTRS{idVendor}=="04c8", ATTRS{idProduct}=="0722", ENV{libsane_matched}="yes"
        # Panasonic KV-S2026C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1000", ENV{libsane_matched}="yes"
        # Panasonic KV-S2046C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1001", ENV{libsane_matched}="yes"
        # Panasonic KV-S1025C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1006", ENV{libsane_matched}="yes"
        # Panasonic KV-S1020C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1007", ENV{libsane_matched}="yes"
        # Panasonic KV-S2048C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1009", ENV{libsane_matched}="yes"
        # Panasonic KV-S2028C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="100a", ENV{libsane_matched}="yes"
        # Panasonic KV-SS080
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="100f", ENV{libsane_matched}="yes"
        # Panasonic KV-S1045C
        ATTRS{idVendor}=="04da", ATTRS{idProduct}=="1010", ENV{libsane_matched}="yes"
        # Samsung SCX-4200
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341b", ENV{libsane_matched}="yes"
        # Samsung SCX4725-FN
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="341f", ENV{libsane_matched}="yes"
        # Samsung SCX-4500
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3426", ENV{libsane_matched}="yes"
        # Samsung CLX-3170fn | Samsung CLX-3175FW
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342a", ENV{libsane_matched}="yes"
        # Samsung SCX-4500W
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342b", ENV{libsane_matched}="yes"
        # Samsung SCX-4824
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342c", ENV{libsane_matched}="yes"
        # Samsung SCX-4300
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342e", ENV{libsane_matched}="yes"
        # Samsung SCX-4600
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3433", ENV{libsane_matched}="yes"
        # Samsung SCX-4623
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3434", ENV{libsane_matched}="yes"
        # Samsung SCX-4825FN
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="343c", ENV{libsane_matched}="yes"
        # Samsung SCX-4623FW
        ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3440", ENV{libsane_matched}="yes"
        # Pentax DSmobile 600
        ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="2038", ENV{libsane_matched}="yes"
        # Aiptek Aiptek Pencam
        ATTRS{idVendor}=="0553", ATTRS{idProduct}=="0202", ENV{libsane_matched}="yes"
        # Mustek ScanExpress 1200 CU
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
        # Mustek ScanExpress 600 CU
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0002", ENV{libsane_matched}="yes"
        # Mustek ScanExpress 1200 UB | Trust Compact Scan USB 19200
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0006", ENV{libsane_matched}="yes"
        # Mustek ScanExpress 1200 CU Plus
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0008", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200 F
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0010", ENV{libsane_matched}="yes"
        # Mustek ScanExpress A3 USB
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0210", ENV{libsane_matched}="yes"
        # Mustek BearPaw 2400 CS | Mustek BearPaw 2400 TA | Trust 240TH Easy Webscan Gold
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0218", ENV{libsane_matched}="yes"
        # Mustek BearPaw 2400 CS Plus | Mustek BearPaw 2400 TA Plus | Mustek Plug-n-Scan 2400 MT
        # Mustek Plug-n-Scan 2400 M | Packard Bell Diamond 2450
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0219", ENV{libsane_matched}="yes"
        # Mustek BearPaw 2448 CS Plus | Mustek BearPaw 2448 TA Plus
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021a", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200 CU Plus | Packard Bell Diamond 1200 Plus
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021b", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200 CU Plus | Mustek BearPaw 1248 CU | Packard Bell Diamond 1200 Plus
        # Trust Direct WebScan 19200
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021c", ENV{libsane_matched}="yes"
        # Mustek BearPaw 2400 CU Plus
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021d", ENV{libsane_matched}="yes"
        # Mustek BearPaw 1200 CS | Mustek BearPaw 1200 TA
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021e", ENV{libsane_matched}="yes"
        # Mustek ScanExpress 1248 UB
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="021f", ENV{libsane_matched}="yes"
        # Mustek BearPaw 2448TA Pro
        ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0409", ENV{libsane_matched}="yes"
        # Artec/Ultima Ultima 2000 | Artec/Ultima Ultima 2000 e+ | Boeder Sm@rtScan Slim Edition
        # Fujitsu 1200CUS | Googlegear 2000 | Medion/Lifetec/Tevion/Cytron MD 4394
        # Medion/Lifetec/Tevion/Cytron MD/LT 9375 | Medion/Lifetec/Tevion/Cytron MD/LT 9385 | Medion/Lifetec/Tevion/Cytron LT 9452
        # Medion/Lifetec/Tevion/Cytron MD 9458 | Mustek BearPaw 1200 CU | Mustek BearPaw 2400 CU
        # Mustek ScanExpress 1200 UB Plus | Mustek ScanExpress 2400 USB | Mustek ScanMagic 1200 UB Plus
        # Packard Bell Diamond 1200 | Trust Compact Scan USB 19200 | Trust Flat Scan USB 19200
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4002", ENV{libsane_matched}="yes"
        # Artec/Ultima E+ 48U | Medion/Lifetec/Tevion/Cytron MD9693 | Medion/Lifetec/Tevion/Cytron MD9705
        # Medion/Lifetec/Tevion/Cytron MD4394 | Microstar MR 9791
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4003", ENV{libsane_matched}="yes"
        # Artec/Ultima E+ Pro
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4004", ENV{libsane_matched}="yes"
        # Memorex MEM 48U
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4005", ENV{libsane_matched}="yes"
        # Trust Easy Webscan 19200
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4006", ENV{libsane_matched}="yes"
        # Trust 240H Easy Webscan Gold
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4007", ENV{libsane_matched}="yes"
        # UMAX AstraSlim SE
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4009", ENV{libsane_matched}="yes"
        # UMAX AstraSlim 1200 SE
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4010", ENV{libsane_matched}="yes"
        # Yakumo Scan50
        ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4011", ENV{libsane_matched}="yes"
        # Microtek ScanMaker X6USB
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="0099", ENV{libsane_matched}="yes"
        # Microtek SlimScan C6
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="009a", ENV{libsane_matched}="yes"
        # Microtek ScanMaker V6USL
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="00a3", ENV{libsane_matched}="yes"
        # Microtek ScanMaker V6UPL
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="00b6", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 4800
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="30cf", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3840
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="30d4", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3600
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40b3", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3700
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40b8", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3600
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40ca", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3700
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40cb", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3750
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40dd", ENV{libsane_matched}="yes"
        # Microtek ScanMaker 3600
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="40ff", ENV{libsane_matched}="yes"
        # Microtek ScanMaker V6USL
        ATTRS{idVendor}=="05da", ATTRS{idProduct}=="80a3", ENV{libsane_matched}="yes"
        # iVina 1200U
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0268", ENV{libsane_matched}="yes"
        # Minolta Dimage Scan Dual II
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="026a", ENV{libsane_matched}="yes"
        # Avision AV600U
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a13", ENV{libsane_matched}="yes"
        # Minolta-QMS SC-110
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a15", ENV{libsane_matched}="yes"
        # Avision DS610CU Scancopier | Minolta-QMS SC-215 | OKI S700 Scancopier
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a16", ENV{libsane_matched}="yes"
        # Avision AV600U Plus
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a18", ENV{libsane_matched}="yes"
        # Avision AV610
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a19", ENV{libsane_matched}="yes"
        # Avision AV220
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a23", ENV{libsane_matched}="yes"
        # Avision AV210
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a24", ENV{libsane_matched}="yes"
        # Avision AV210
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a25", ENV{libsane_matched}="yes"
        # Avision AV120
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a27", ENV{libsane_matched}="yes"
        # Avision AV220C2
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2a", ENV{libsane_matched}="yes"
        # Avision AV220D2
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2b", ENV{libsane_matched}="yes"
        # Avision AV220+
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2c", ENV{libsane_matched}="yes"
        # Avision AV220C2-G
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2d", ENV{libsane_matched}="yes"
        # Avision AV220C2-B
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2e", ENV{libsane_matched}="yes"
        # Avision AV210C2-G
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a2f", ENV{libsane_matched}="yes"
        # Avision AV122
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a33", ENV{libsane_matched}="yes"
        # Avision AV210C2
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a3a", ENV{libsane_matched}="yes"
        # Avision AV121
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a3c", ENV{libsane_matched}="yes"
        # Avision AV8300
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a40", ENV{libsane_matched}="yes"
        # Avision AM3000 Series
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a41", ENV{libsane_matched}="yes"
        # Avision @V5100
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a45", ENV{libsane_matched}="yes"
        # Avision AV8050U
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a4d", ENV{libsane_matched}="yes"
        # Avision AV3200SU
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a4e", ENV{libsane_matched}="yes"
        # Avision AV3730SU
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a4f", ENV{libsane_matched}="yes"
        # Avision AV610C2
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a5e", ENV{libsane_matched}="yes"
        # Avision IT8300
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a61", ENV{libsane_matched}="yes"
        # Avision AV3750SU
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a65", ENV{libsane_matched}="yes"
        # Avision AV3850SU
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a66", ENV{libsane_matched}="yes"
        # Avision AV8350
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a68", ENV{libsane_matched}="yes"
        # Avision FB6080E
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a82", ENV{libsane_matched}="yes"
        # Avision FB2080E
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a84", ENV{libsane_matched}="yes"
        # Avision AV122 C2
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a93", ENV{libsane_matched}="yes"
        # Avision AV220-G
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0a94", ENV{libsane_matched}="yes"
        # Avision @V2500
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="0aa1", ENV{libsane_matched}="yes"
        # Avision AV210D2+
        ATTRS{idVendor}=="0638", ATTRS{idProduct}=="1a35", ENV{libsane_matched}="yes"
        # Minolta Elite II
        ATTRS{idVendor}=="0686", ATTRS{idProduct}=="4004", ENV{libsane_matched}="yes"
        # Minolta Dimage Scan Dual III
        ATTRS{idVendor}=="0686", ATTRS{idProduct}=="400d", ENV{libsane_matched}="yes"
        # Minolta Dimage Scan Elite 5400
        ATTRS{idVendor}=="0686", ATTRS{idProduct}=="400e", ENV{libsane_matched}="yes"
        # AGFA SnapScan 1212U
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
        # AGFA SnapScan 1236u
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0002", ENV{libsane_matched}="yes"
        # Agfa Snapscan Touch
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="0100", ENV{libsane_matched}="yes"
        # AGFA SnapScan 1212U_2
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2061", ENV{libsane_matched}="yes"
        # AGFA SnapScan e40
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208d", ENV{libsane_matched}="yes"
        # AGFA SnapScan e50
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="208f", ENV{libsane_matched}="yes"
        # AGFA SnapScan e20
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2091", ENV{libsane_matched}="yes"
        # AGFA SnapScan e10
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2093", ENV{libsane_matched}="yes"
        # AGFA SnapScan e25
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2095", ENV{libsane_matched}="yes"
        # AGFA SnapScan e26
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="2097", ENV{libsane_matched}="yes"
        # AGFA SnapScan e52
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="20fd", ENV{libsane_matched}="yes"
        # AGFA SnapScan e42
        ATTRS{idVendor}=="06bd", ATTRS{idProduct}=="20ff", ENV{libsane_matched}="yes"
        # UMAX Astra 4900
        ATTRS{idVendor}=="06dc", ATTRS{idProduct}=="0020", ENV{libsane_matched}="yes"
        # Plustek OpticPro U12 | Plustek OpticPro UT12 | Plustek OpticPro 1212U
        # RevScan RevScan Orange R48Ti | Genius ColorPage Vivid III USB
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
        # Plustek OpticPro U12
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0010", ENV{libsane_matched}="yes"
        # Plustek OpticPro U24
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0011", ENV{libsane_matched}="yes"
        # Plustek OpticPro UT12
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0013", ENV{libsane_matched}="yes"
        # Plustek OpticPro U24
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0015", ENV{libsane_matched}="yes"
        # Plustek OpticPro UT12 | Plustek OpticPro UT16 | Plustek OpticPro UT24
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0017", ENV{libsane_matched}="yes"
        # Plustek OpticPro 1248U | RevScan 19200i
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0400", ENV{libsane_matched}="yes"
        # Plustek OpticPro 1248U
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0401", ENV{libsane_matched}="yes"
        # Plustek OpticPro U16B
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0402", ENV{libsane_matched}="yes"
        # Plustek OpticPro U16B+ | Plustek OpticPro UT16B
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0403", ENV{libsane_matched}="yes"
        # Nortek MyScan 1200 | Plustek OpticPro S12 | Plustek OpticPro ST12
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="040b", ENV{libsane_matched}="yes"
        # Plustek OpticPro S24
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="040e", ENV{libsane_matched}="yes"
        # NeatReceipts Scanalizer Professional 2.5 | Plustek OpticSlim M12
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0412", ENV{libsane_matched}="yes"
        # Plustek OpticSlim 1200
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0413", ENV{libsane_matched}="yes"
        # Plustek OpticSlim 2400
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0422", ENV{libsane_matched}="yes"
        # Plustek OpticSlim 2400 plus
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0454", ENV{libsane_matched}="yes"
        # Plustek Iriscan Express 2
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="045f", ENV{libsane_matched}="yes"
        # NeatReceipts Mobile Scanner
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0462", ENV{libsane_matched}="yes"
        # Plustek OpticBook 3600
        ATTRS{idVendor}=="07b3", ATTRS{idProduct}=="0900", ENV{libsane_matched}="yes"
        # Corex 600c
        ATTRS{idVendor}=="08f0", ATTRS{idProduct}=="0002", ENV{libsane_matched}="yes"
        # Corex 800c
        ATTRS{idVendor}=="08f0", ATTRS{idProduct}=="0005", ENV{libsane_matched}="yes"
        # Xerox Phaser 6110MFP
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="3d5d", ENV{libsane_matched}="yes"
        # Xerox Phaser 3200MFP
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="3da4", ENV{libsane_matched}="yes"
        # Xerox WorkCentre 4118 Series
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="420c", ENV{libsane_matched}="yes"
        # Xerox WorkCentre 3119 Series
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="4265", ENV{libsane_matched}="yes"
        # Xerox WorkCentre 3210
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="4293", ENV{libsane_matched}="yes"
        # Xerox WorkCentre 3220
        ATTRS{idVendor}=="0924", ATTRS{idProduct}=="4294", ENV{libsane_matched}="yes"
        # Pentax DSmobile 600
        ATTRS{idVendor}=="0a17", ATTRS{idProduct}=="3210", ENV{libsane_matched}="yes"
        # Portable Peripheral Co., Ltd. Q-Scan USB001 (A4 portable scanner)
        ATTRS{idVendor}=="0a53", ATTRS{idProduct}=="1000", ENV{libsane_matched}="yes"
        # Syscan TravelScan 460/464 | Ambir Visigo A4
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="4600", ENV{libsane_matched}="yes"
        # Syscan DocketPort 465
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="4802", ENV{libsane_matched}="yes"
        # Syscan DocketPort 665
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="4803", ENV{libsane_matched}="yes"
        # Syscan DocketPort 685/ Ambir DS685
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="480c", ENV{libsane_matched}="yes"
        # Syscan DocketPort 485
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="4810", ENV{libsane_matched}="yes"
        # Syscan TravelScan 662
        ATTRS{idVendor}=="0a82", ATTRS{idProduct}=="6620", ENV{libsane_matched}="yes"
        # Canon CR-55
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="160c", ENV{libsane_matched}="yes"
        # Canon DR-1210C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="160f", ENV{libsane_matched}="yes"
        # Canon DR-4010C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1614", ENV{libsane_matched}="yes"
        # Canon DR-2510C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1617", ENV{libsane_matched}="yes"
        # Canon DR-X10C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1618", ENV{libsane_matched}="yes"
        # Canon CR-25
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="161a", ENV{libsane_matched}="yes"
        # Canon DR-2010C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="161b", ENV{libsane_matched}="yes"
        # Canon DR-3010C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="161d", ENV{libsane_matched}="yes"
        # Canon DR-7090C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1620", ENV{libsane_matched}="yes"
        # Canon DR-9050C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1622", ENV{libsane_matched}="yes"
        # Canon DR-7550C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1623", ENV{libsane_matched}="yes"
        # Canon DR-6050C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1624", ENV{libsane_matched}="yes"
        # Canon DR-6010C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1626", ENV{libsane_matched}="yes"
        # Canon CR-190i
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="162b", ENV{libsane_matched}="yes"
        # Canon DR-6030C
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1638", ENV{libsane_matched}="yes"
        # Canon CR-135i
        ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1639", ENV{libsane_matched}="yes"
        # Digital Dream l' espion XS
        ATTRS{idVendor}=="1183", ATTRS{idProduct}=="0001", ENV{libsane_matched}="yes"
        # KONICA MINOLTA magicolor 1690MF
        ATTRS{idVendor}=="132b", ATTRS{idProduct}=="2089", ENV{libsane_matched}="yes"
        # UMAX Astra 1220U
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0010", ENV{libsane_matched}="yes"
        # UMAX Astra 1600U | UMAX Astra 2000U
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0030", ENV{libsane_matched}="yes"
        # Umax UMAX 3400
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0050", ENV{libsane_matched}="yes"
        # Umax UMAX 3400 | Umax UMAX Astranet ia101 | Umax UMAX 3450
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0060", ENV{libsane_matched}="yes"
        # UMAX Astra 4400 | UMAX Astra 4450
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0070", ENV{libsane_matched}="yes"
        # UMAX Astra 2100U
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0130", ENV{libsane_matched}="yes"
        # Umax UMAX 5400
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0160", ENV{libsane_matched}="yes"
        # UMAX Astra 2200 (SU)
        ATTRS{idVendor}=="1606", ATTRS{idProduct}=="0230", ENV{libsane_matched}="yes"
        # DCT DocketPort 487
        ATTRS{idVendor}=="1dcc", ATTRS{idProduct}=="4810", ENV{libsane_matched}="yes"
        # Dell A920
        ATTRS{idVendor}=="413c", ATTRS{idProduct}=="5105", ENV{libsane_matched}="yes"
        # Dell Dell MFP Laser Printer 1815dn
        ATTRS{idVendor}=="413c", ATTRS{idProduct}=="5124", ENV{libsane_matched}="yes"
        # Dell 1600n
        ATTRS{idVendor}=="413c", ATTRS{idProduct}=="5250", ENV{libsane_matched}="yes"
        # Brother scanners
        ATTRS{idVendor}=="04f9", 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"
        # Generic: SCSI device type 6 indicates a scanner
        KERNEL=="sg[0-9]*", ATTRS{type}=="6", ENV{libsane_matched}="yes"
        # Some scanners advertise themselves as SCSI device type 3
        # Epson Perfection 2450 | Epson Perfection 2450 PHOTO
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9700", ENV{libsane_matched}="yes"
        # Epson Perfection 3200 | Epson Perfection 3200 PHOTO
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="GT-9800", ENV{libsane_matched}="yes"
        # Epson Perfection 636S | Epson Perfection 1200S
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection1200", ENV{libsane_matched}="yes"
        # Epson Perfection 636
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="Perfection636", ENV{libsane_matched}="yes"
        # Epson GT-7000
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="EPSON", ATTRS{model}=="SCANNER GT-7000", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4p
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1130A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet IIc
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1750A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet IIp
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C1790A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet IIcx
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2500A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 4c
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C2520A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 5p
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C5110A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 6200C
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C6270A", ENV{libsane_matched}="yes"
        # Hewlett-Packard ScanJet 6300C
        KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"

        LABEL="libsane_scsi_rules_end"

        ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"

        LABEL="libsane_rules_end"

        Comment

        Working...
        X