/[packages]/updates/8/hplip/current/SOURCES/hplip-udev-rules.patch
ViewVC logotype

Diff of /updates/8/hplip/current/SOURCES/hplip-udev-rules.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1790575 by ns80, Mon Feb 21 12:19:34 2022 UTC revision 1790576 by ns80, Sat Mar 12 13:44:03 2022 UTC
# Line 1  Line 1 
1    diff -Nru a/data/rules/56-hpmud.rules b/data/rules/56-hpmud.rules
2    --- a/data/rules/56-hpmud.rules 2018-03-06 10:55:53.000000000 +0100
3    +++ b/data/rules/56-hpmud.rules 2018-04-25 08:36:12.827999307 +0200
4    @@ -1,8 +1,33 @@
5     # HPLIP udev rules file. Notify console user if plugin support is required for this device.
6    +#
7    +# SUSE changed:
8    +#
9    +# Exchanged the rule to GOTO hpmud_usb_rules if SUBSYSTEM is "usb"
10    +# with the rule if SUBSYSTEM is "ppdev" to avoid that the "ppdev" rule
11    +# is needlessly processed when SUBSYSTEM is "usb".
12    +#
13    +# Added GOTO hpmud_rules_end rule to skip the hpmud_usb_rules
14    +# if SUBSYSTEM is not "usb" or if ENV{DEVTYPE} is not "usb_device" or if SUBSYSTEM is not "ppdev"
15    +# to avoid that the hpmud_usb_rules are needlessly processed.
16    +#
17    +# The rule to automatically "check ... plugin status" is disabled
18    +# because automated installation of non-free proprietary third-party software
19    +# (here the plugin from HP) should not happen and it can cause whatever kind
20    +# of strange behaviour see for example https://bugs.launchpad.net/bugs/1197416
21    +# and https://bugs.launchpad.net/bugs/1221348
22    +# while in contrast manual printer setup via hp-setup usually "just works"
23    +# and it is clear for the user what goes on and in case of failure what went wrong.
24    +#
25    +# Because the rule to automatically "check ... plugin status"
26    +# is also used to upload firmware into printers that need it
27    +# see https://bugs.launchpad.net/bugs/1220628
28    +# a rule that only uploads firmware into printers that need it is added.
29    +#
30    +# If possible activate hpaio backend support in /etc/sane.d/dll.conf.
31    
32    -ACTION=="remove", GOTO="hpmud_rules_end"
33    -SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
34    +ACTION=="add", GOTO="hpmud_rules_end"
35     SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"
36    +SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
37     GOTO="hpmud_rules_end"
38    
39     LABEL="hpmud_usb_rules"
40    @@ -13,6 +38,10 @@
41     ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", OWNER="root", GROUP="lp", MODE="0664", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
42    
43     # This rule will check the smart install feature, plugin status and firmware download for the required printers.
44    -ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
45    +#ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
46    +# This rule uploads firmware to HP USB printer devices if needed:
47    +ENV{hp_test}=="yes", PROGRAM="/bin/logger -p user.info udev hpmud.rules runs hp-firmware to test if HP device with USB vendor ID $attr{idVendor} and USB product ID $attr{idProduct} at USB bus ID $env{BUSNUM} and USB device ID $env{DEVNUM} needs firmware and if yes to upload it", RUN+="/usr/bin/hp-firmware -s $env{BUSNUM}:$env{DEVNUM}"
48    
49    +# If possible activate hpaio backend support in /etc/sane.d/dll.conf:
50    +ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -w /etc/sane.d/dll.conf ; then sed -i -e /hpaio/d /etc/sane.d/dll.conf ; echo hpaio >>/etc/sane.d/dll.conf ; fi'"
51     LABEL="hpmud_rules_end"
52  diff -Nru a/Makefile.am b/Makefile.am  diff -Nru a/Makefile.am b/Makefile.am
53  --- a/Makefile.am       2018-03-06 10:56:02.000000000 +0100  --- a/Makefile.am       2018-03-06 10:56:02.000000000 +0100
54  +++ b/Makefile.am       2018-04-25 08:29:00.573778888 +0200  +++ b/Makefile.am       2018-04-25 08:29:00.573778888 +0200

Legend:
Removed from v.1790575  
changed lines
  Added in v.1790576

  ViewVC Help
Powered by ViewVC 1.1.30