/lib/udev/rules.d/40-hplip.rules is in libhpmud0 3.12.2-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | # HPLIP udev rules file for HP printer and all-in-one products.
#
# The 40-hplip.rules file replaces the 55-hpmud.rules on newer distros with udev ACL support.
# For older distros that use HAL ACL support use the 55-hpmud.rules.
#
ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="pid_test"
SUBSYSTEM!="usb_device", GOTO="hpmud_rules_end"
LABEL="pid_test"
# Check for AiO products (0x03f0xx11).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??11", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for Photosmart products without wildcard since cameras and scanners also used (0x03f0xx02).
# The xx02 pid has been retired so this explicit list should not change.
# photosmart_d2300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c302", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_100
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3802", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_1115
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3402", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_1215
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3202", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_1218
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3302", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_130
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3902", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_1315
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3602", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_140_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1002", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_230
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3502", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_240_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1102", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_320_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1202", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_330_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1602", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_370_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1302", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_380_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1702", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_420_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1502", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_470_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1802", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7150
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3a02", GROUP="lp", ENV{ID_HPLIP}="1"
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3b02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7200_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b002", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7345
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2002", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7350
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3c02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7400_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b802", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7550
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="3e02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7600_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b202", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7700_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b402", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7800_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c002", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_7900_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="b602", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_8000_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c102", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_8100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="ba02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_8200_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c202", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_8400_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bb02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_8700_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bc02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a310_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1d02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a320_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1e02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a430_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1902", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a440_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1f02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a510_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1a02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a520_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2602", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a530_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2b02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a610_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1b02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a620_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2702", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a630_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2c02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a710_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="1c02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_a820_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="2902", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_d5060_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c802", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_d5100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c402", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_d6100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c502", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_d7100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c602", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_d7300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="c702", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_pro_b8300_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="be02", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_b8800_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="d002", GROUP="lp", ENV{ID_HPLIP}="1"
# photosmart_pro_b9100_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="bd02", GROUP="lp", ENV{ID_HPLIP}="1"
# Photosmart_B8500_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="d102", GROUP="lp", ENV{ID_HPLIP}="1"
# Photosmart_A640_series
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="7902", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for Business Inkjet products (0x03f0xx12).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??12", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for Deskjet products (0x03f0xx04).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??04", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for LaserJet products (0x03f0xx17).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for LaserJet products (0x03f0xx2a).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??2a", GROUP="lp", ENV{ID_HPLIP}="1"
# Check for DesignJet product (0x03f0xx14).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??14", GROUP="lp", ENV{ID_HPLIP}="1"
LABEL="hpmud_rules_end"
|