mistake in models.dat for color laserjet m281

Bug #1772544 reported by Thomas B. Clark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned
hplip (Fedora)
Fix Released
Undecided

Bug Description

In the current version of models.dat, the entry for HP Color Laserjet m281 shows:
[colorlaserjet_mfp_m278-m281]

This results in inability to find the printer. The entry should be:
[hp_colorlaserjet_mfp_m278-m281]

Revision history for this message
In , Upstream (upstream-redhat-bugs) wrote :

Latest upstream release: 3.18.4
Current version/release in rawhide: 3.18.3-3.fc29
URL: http://hplipopensource.com/

Please consult the package updates policy before you issue an update to a stable branch: https://fedoraproject.org/wiki/Updates_Policy

More information about the service that created this bug can be found at: https://fedoraproject.org/wiki/Upstream_release_monitoring

Please keep in mind that with any upstream change, there may also be packaging changes that need to be made. Specifically, please remember that it is your responsibility to review the new version to ensure that the licensing is still correct and that no non-free or legally problematic items have been added upstream.

Based on the information from anitya: https://release-monitoring.org/project/1327/

Revision history for this message
In , Upstream (upstream-redhat-bugs) wrote :

Latest upstream release: 3.18.5
Current version/release in rawhide: 3.18.4-3.fc29
URL: http://hplipopensource.com/

Please consult the package updates policy before you issue an update to a stable branch: https://fedoraproject.org/wiki/Updates_Policy

More information about the service that created this bug can be found at: https://fedoraproject.org/wiki/Upstream_release_monitoring

Please keep in mind that with any upstream change, there may also be packaging changes that need to be made. Specifically, please remember that it is your responsibility to review the new version to ensure that the licensing is still correct and that no non-free or legally problematic items have been added upstream.

Based on the information from anitya: https://release-monitoring.org/project/1327/

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.18.5-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fe5c004d86

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :
Download full text (13.0 KiB)

The printer is initially recognized in hp-setup, but unfortunately hp-setup has problems to read or display the FAX setup later when attempting to add the corresponding queue.

This is the debug-output and the python traceback:

[felfert@floh ~]$ hp-setup --debug

HP Linux Imaging and Printing System (ver. 3.18.5)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-setup[9357]: debug: param=
hp-setup[9357]: debug: selected_device_name=None
hp-setup[9357]: debug: Using PyQt5
hp-setup[9357]: debug: Sys.argv=['/usr/bin/hp-setup', '--debug'] printer_name=None param= jd_port=1 device_uri=None remove=False
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(SingleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Falling back to using screens root_visual.
hp-setup[9357]: debug: Starting GUI Event Loop...
Searching... (bus=net, timeout=5, ttl=4, search=(None) desc=0, method=slp)
hp-setup[9357]: debug: 0000: 01 07 01 e9 00 00 65 6e 00 03 6b 2c 00 00 01 d9 28 78 2d 68 70 2d 76 65 72 3d 30 31 29 28 78 2d ......en..k,....(x-hp-ver=01)(x-
hp-setup[9357]: debug: 0020: 68 70 2d 70 72 6f 64 5f 69 64 3d 54 36 42 38 32 41 29 28 78 2d 68 70 2d 6d 61 63 3d 34 38 42 41 hp-prod_id=T6B82A)(x-hp-mac=48BA
hp-setup[9357]: debug: 0040: 34 45 33 34 41 33 38 36 29 28 78 2d 68 70 2d 67 75 69 64 3d 34 38 42 41 34 45 33 34 41 33 38 36 4E34A386)(x-hp-guid=48BA4E34A386
hp-setup[9357]: debug: 0060: 29 28 78 2d 68 70 2d 6e 75 6d 5f 70 6f 72 74 3d 30 31 29 28 78 2d 68 70 2d 69 70 3d 31 39 32 2e )(x-hp-num_port=01)(x-hp-ip=192.
hp-setup[9357]: debug: 0080: 31 36 38 2e 30 30 32 2e 30 32 39 29 28 78 2d 68 70 2d 68 6e 3d 68 70 6d 32 38 31 29 28 78 2d 68 168.002.029)(x-hp-hn=hpm281)(x-h
hp-setup[9357]: debug: 00a0: 70 2d 70 31 3d 4d 46 47 3a 48 50 3b 43 4d 44 3a 50 4a 4c 2c 50 4d 4c 2c 50 43 4c 58 4c 2c 50 57 p-p1=MFG:HP;CMD:PJL,PML,PCLXL,PW
hp-setup[9357]: debug: 00c0: 47 5f 52 41 53 54 45 52 2c 55 52 50 2c 50 43 4c 2c 50 44 46 2c 50 4f 53 54 53 43 52 49 50 54 3b G_RASTER,URP,PCL,PDF,POSTSCRIPT;
hp-setup[9357]: debug: 00e0: 4d 44 4c 3a 48 50 20 43 6f 6c 6f 72 4c 61 73 65 72 4a 65 74 20 4d 46 50 20 4d 32 37 38 2d 4d 32 MDL:HP ColorLaserJet MFP M278-M2
hp-setup[9357]: debug: 0100: 38 31 3b 43 4c 53 3a 50 52 49 4e 54 45 52 3b 44 45 53 3a 48 50 20 43 6f 6c 6f 72 20 4c 61 73 65 81;CLS:PRINTER;DES:HP Color Lase
hp-setup[9357]: debug: 0120: 72 4a 65 74 20 4d 46 50 20 4d 32 38 31 66 64 77 3b 4d 45 4d 3a 4d 45 4d 3d 32 31 33 4d 42 3b 50 rJet MFP M281fdw;MEM:MEM=213MB;P
hp-setup[9357]: debug: 0140: 52 4e 3a 54 36 42 38 32 41 3b 43 4f 4d 4d 45 4e 54 3a 52 45 53 3d 36 30 3...

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :

I will attemt to debug this further tonight ...

Revision history for this message
In , Zdenek (zdenek-redhat-bugs) wrote :

(In reply to Fritz Elfert from comment #3)
> hp-setup[9357]: debug: Matching PPD list to model
> color_laserjet_mfp_m278-m281...
> hp-setup[9357]: debug: []
> hp-setup[9357]: debug: No PPD found for model color_laserjet_mfp_m278-m281
> using new algorithm. Trying old algorithm...
> hp-setup[9357]: debug: 1st stage edit distance match
> hp-setup[9357]: debug: Determining edit distance from
> color_laserjet_mfp_m278-m281 (only showing edit distances < 4)...
> hp-setup[9357]: debug: Min. dist = 9
> hp-setup[9357]: debug:
> {'drv:///hp/hpijs.drv/hp-laserjet_mfp_m28-m31-hpijs.ppd': 'HP LaserJet MFP
> m28-m31 hpijs, 3.18.5', 'drv:///hp/hpcups.drv/hp-laserjet_mfp_m28-m31.ppd':
> 'HP LaserJet MFP m28-m31, hpcups 3.18.5'}

I think hp-setup found the printer tag in models.dat, but it cannot find a ppd then and uses different one.

Revision history for this message
kasoju pranavateja (pranavateja) wrote :

Hi Thomas,

Can you please tell me which hplip version you are using. We have supported 'hp_colorlaserjet_mfp_m278-m281' model in our latest version 3.18.5 which we have released on 2018-05-24.

Regards
Pranavateja

Badal (badalkumar)
Changed in hplip:
status: New → In Progress
Revision history for this message
In , Zdenek (zdenek-redhat-bugs) wrote :

Actually there are two issues - 1) with not being able to find correct ppd
                                2) fax issue.

I can fix the fax issue, and look into PPD issue... I'll try to put our patch for m278-m281 back, would you mind testing it after I build it?

Revision history for this message
In , Zdenek (zdenek-redhat-bugs) wrote :

Fritz,

there is upstream issue https://bugs.launchpad.net/hplip/+bug/1772544 about it, would you mind reporting there about non functional m27-m281 printers?

Revision history for this message
zdohnal (zdohnal) wrote :

Hi Pranavateja,

unfortunately, it seems to not work either in 3.18.5. It seems model is recognized in models.dat, but the correct ppd is not found (m28-m31 is used instead). The relevant part of debug log of hp-setup:

hp-setup[9357]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'T6B82A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:HP;CMD:PJL,PML,PCLXL,PWG_RASTER,URP,PCL,PDF,POSTSCRIPT;MDL:HP ColorLaserJet MFP M278-M281;CLS:PRINTER;DES:HP Color LaserJet MFP M281fdw;MEM:MEM=213MB;PRN:T6B82A;COMMENT:RES=600x8;LEDMDIS:USB#ff#04#01;CID:HPLJPDLV1;IPP-E:FF-04-01,FF-04-01,FF-09-01,FF-09-01;eSCL:FF-04-01,FF-04-01,FF-09-01,FF-09-01;MCT:MF;MCL:DL;MCV:2.0;', 'mac': '48BA4E34A386', 'ip': '192.168.002.029', 'hn': 'hpm281'}
hp-setup[9357]: debug: Cache miss: hp_colorlaserjet_mfp_m278-m281
hp-setup[9357]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[9357]: debug: Searching for section [hp_colorlaserjet_mfp_m278-m281] in file /usr/share/hplip/data/models/models.dat
hp-setup[9357]: debug: Found section [hp_colorlaserjet_mfp_m278-m281] in file /usr/share/hplip/data/models/models.dat
hp-setup[9357]: debug: {}
hp-setup[9357]: debug: HP_ColorLaserJet_MFP_M278-M281
hp-setup[9357]: debug: (CUPS 1.2.x) Getting list of PPDs using CUPS_GET_PPDS...
hp-setup[9357]: debug: CUPS PPD base path = /usr/share/cups/model
hp-setup[9357]: debug: Foomatic PPD base path = /usr/share/ppd
hp-setup[9357]: debug: Matching PPD list to model color_laserjet_mfp_m278-m281...
hp-setup[9357]: debug: []
hp-setup[9357]: debug: No PPD found for model color_laserjet_mfp_m278-m281 using new algorithm. Trying old algorithm...
hp-setup[9357]: debug: 1st stage edit distance match
hp-setup[9357]: debug: Determining edit distance from color_laserjet_mfp_m278-m281 (only showing edit distances < 4)...
hp-setup[9357]: debug: Min. dist = 9
hp-setup[9357]: debug: {'drv:///hp/hpijs.drv/hp-laserjet_mfp_m28-m31-hpijs.ppd': 'HP LaserJet MFP m28-m31 hpijs, 3.18.5', 'drv:///hp/hpcups.drv/hp-laserjet_mfp_m28-m31.ppd': 'HP LaserJet MFP m28-m31, hpcups 3.18.5'}

Revision history for this message
In , Zdenek (zdenek-redhat-bugs) wrote :

Here is the scratch build (it will last available for 3 days). https://koji.fedoraproject.org/koji/taskinfo?taskID=27184511

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :

(In reply to Zdenek Dohnal from comment #8)
> Here is the scratch build (it will last available for 3 days).
> https://koji.fedoraproject.org/koji/taskinfo?taskID=27184511

Almost ...

The FAX-Number related bug appears to have been fixed (no crash anymore): It presents the download dialog for the plugin now and correctly downloads it. However later on, when attempting to add the print queues it fails while adding the FAX queue. Debug output and screenshot will be attached.

BTW: I also noticed the FAX number to be wrong. In my printer, an international number is configured starting with the german country prefix "+49...". In the GUI dialog, the number is shown without the leading "+" (Can bee seen in the screenshot too).

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :

Created attachment 1441803
Debug output of running hp-setup (from version 3.18.5-2.fc28)

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :

Created attachment 1441804
Screenshot of running hp-setup (from version 3.18.5-2.fc28)

Revision history for this message
Fritz Elfert (felfert) wrote :

Actually, the above debug output was produced on my machine :-) (zdohnal is the Fedora package maintainer). You can see the testing progress and further observations here:
https://bugzilla.redhat.com/show_bug.cgi?id=1571782

Revision history for this message
In , Fritz (fritz-redhat-bugs) wrote :

Oops. I just noticed that a different PPD was selected compared to hplip-3.18.4-2.fc27

Excerpt of /etc/cups/printers.conf resulting from the old (working) package:

<DefaultPrinter HP_ColorLaserJet_MFP_M278-M281>
UUID urn:uuid:2e355587-28f7-3616-6687-c763e67767d8
Info HP_ColorLaserJet_MFP_M278-M281
Location 2. Stock
MakeModel HP Color LaserJet Pro MFP M277 Postscript (recommended)

Excerpt of /etc/cups/printers.conf resulting from the scratch package:

<Printer HP_ColorLaserJet_MFP_M278-M281>
UUID urn:uuid:e6c54b80-12a9-3570-4b7f-93e785853a2a
Info
Location
MakeModel HP Color LaserJet Pro MFP m177fw, hpcups 3.18.5

Notice: MFP M277 vs. MFP M177. Actual printing DOES work though. Just tested a B/W simple pdf doc.

Changed in hplip (Fedora):
importance: Unknown → Undecided
status: Unknown → In Progress
Revision history for this message
Badal (badalkumar) wrote :

Hi,

Please use the latest HPLIP driver and let us know if you are facing any issue with the latest driver.
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

Please download the latest driver from the below mentioned path.
https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

Thanks,
Badal Kumar

Revision history for this message
Thomas B. Clark (tbclark3) wrote :

It works now. Thanks!

Revision history for this message
In , Upstream (upstream-redhat-bugs) wrote :

Latest upstream release: 3.18.6
Current version/release in rawhide: 3.18.5-1.fc29
URL: http://hplipopensource.com/

Please consult the package updates policy before you issue an update to a stable branch: https://fedoraproject.org/wiki/Updates_Policy

More information about the service that created this bug can be found at: https://fedoraproject.org/wiki/Upstream_release_monitoring

Please keep in mind that with any upstream change, there may also be packaging changes that need to be made. Specifically, please remember that it is your responsibility to review the new version to ensure that the licensing is still correct and that no non-free or legally problematic items have been added upstream.

Based on the information from anitya: https://release-monitoring.org/project/1327/

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.18.6-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-cd7f5d4499

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.18.6-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-cd7f5d4499

Changed in hplip (Fedora):
status: In Progress → Fix Committed
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

hplip-3.18.6-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Changed in hplip (Fedora):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.