From c07d98eebd87cd994b6920211b1ba7cd4b940375 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 18 Nov 2019 14:21:59 +0100 Subject: [PATCH] 1773345 - Problems with HP M281fdw LaserJet --- hplip-m278m281-bad-model.patch | 13 +++++++++++++ hplip.spec | 11 ++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 hplip-m278m281-bad-model.patch diff --git a/hplip-m278m281-bad-model.patch b/hplip-m278m281-bad-model.patch new file mode 100644 index 0000000..36c8685 --- /dev/null +++ b/hplip-m278m281-bad-model.patch @@ -0,0 +1,13 @@ +diff --git a/data/models/models.dat b/data/models/models.dat +index f4d9955..234902f 100644 +--- a/data/models/models.dat ++++ b/data/models/models.dat +@@ -62355,7 +62355,7 @@ usb-pid=af2a + usb-vid=3f0 + wifi-config=3 + +-[hp_color_laserjet_mfp_m278-m281] ++[hp_colorlaserjet_mfp_m278-m281] + align-type=0 + clean-type=0 + color-cal-type=0 diff --git a/hplip.spec b/hplip.spec index f70deca..b938b4a 100644 --- a/hplip.spec +++ b/hplip.spec @@ -121,8 +121,12 @@ Patch47: hplip-systray-blockerror.patch Patch48: hplip-missing-drivers.patch # laserjet 2200 has different device id than HP expects... # https://bugzilla.redhat.com/show_bug.cgi?id=1772698 -# reported upstream +# reported upstream https://bugs.launchpad.net/hplip/+bug/1853002 Patch49: hplip-missing-laserjet2200.patch +# color laserjet m278-m281 printers report themselves as colorlaserjet... in queries +# https://bugzilla.redhat.com/show_bug.cgi?id=1773345 +# upstream https://bugs.launchpad.net/hplip/+bug/1851013 +Patch50: hplip-m278m281-bad-model.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: python3-pillow @@ -378,6 +382,8 @@ rm prnt/hpcups/ErnieFilter.{cpp,h} prnt/hpijs/ernieplatform.h %patch48 -p1 -b .missing-drivers # 1772698 - Can't setup printer (HP LJ 2200): no attributes found in model.dat %patch49 -p1 -b .missing-laserjet-2200 +# 1773345 - Problems with HP M281fdw LaserJet +%patch50 -p1 -b .m278-m281-bad-model sed -i.duplex-constraints \ -e 's,\(UIConstraints.* \*Duplex\),//\1,' \ @@ -684,6 +690,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio %changelog +* Mon Nov 18 2019 Zdenek Dohnal - 3.19.10-2 +- 1773345 - Problems with HP M281fdw LaserJet + * Fri Nov 15 2019 Zdenek Dohnal - 3.19.10-2 - 1772698 - missing HP LaserJet 2200 driver