Bug 1544912
| Summary: | hp colorlaserjet m278-m281 doesn't install correctly | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Dohnal <zdohnal> | ||||||
| Component: | hplip | Assignee: | Zdenek Dohnal <zdohnal> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 28 | CC: | alexl, control-center-maint, extras-qa, fmuellner, fritz, jan.public, john.j5live, jpopelka, juliusvonkohout, mclasen, mkasik, ofourdan, rhughes, rstrode, sandmann, tiagomatos, twaugh, zdohnal | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | 1544788 | Environment: | |||||||
| Last Closed: | 2018-06-01 13:48:27 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | 1544788 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Zdenek Dohnal
2018-02-13 18:07:12 UTC
Hi, to sum it up previous comment - gnome control center creates different (not working) scanner uri for network scanner than 'hp-setup' command from hplip package (which works). Would you mind giving a more insight into how scanner uris are created in control center? I think control center just calls a function from libsane to get scanner uris, but I'm not sure (that means I do not know if it is issue for control center or sane). Thank you in advance. > It is still initialized as generic PCL3 printer. There is a popup from > gnome-software asking for missing software if i install via gnome-settings. > That's correct behavior - your printer needs proprietary plugin, which is in hplip, so gnome-software wants to install hplip, which provides driver for your printer. > Then you need to run 'hp-plugin -i', because your printer needs that proprietary plugin and that command downloads it and put it in correct place - gnome-settings won't do it probably because of licensing problems of that proprietary plugin. Yes gnome-software fails to list anything. It just says that the missing software could not be found. Pointing to hplip or if possible the plugin directly would be sensible. The plugin is installed but gnome-settings is not able to use it. Changing the name - I misunderstood you, I thought you have problem with scanner uri. (In reply to Zdenek Dohnal from comment #3) > Changing the name - I misunderstood you, I thought you have problem with > scanner uri. The Scanner is not working over network via gnome-settings AND the printer is PCL3 only and prints garbage. This is happening with the propietary hp plugin installed. Via PCL3 it just prints one random line per page instead of the desired output. Via hp-setup scanning and printing works. (In reply to Julius from comment #4) > The Scanner is not working over network via gnome-settings AND the printer > is PCL3 only and prints garbage. This is happening with the propietary hp > plugin installed. What do you mean by proprietary plugin installed? Did you run 'hp-plugin -i' after gnome installation? (In reply to Zdenek Dohnal from comment #5) > (In reply to Julius from comment #4) > > The Scanner is not working over network via gnome-settings AND the printer > > is PCL3 only and prints garbage. This is happening with the propietary hp > > plugin installed. > What do you mean by proprietary plugin installed? Did you run 'hp-plugin -i' > after gnome installation? I have installled the Plugin via the hplip GUI and hp-plugin -i says that it is already installed. It works fine. The printer is properly installed via hp-setup. If i try to add it again via gnome-settings it only adds a pcl3 garbage printer and no scanner Device needs proprietary plugin, which cannot be in Fedora, that's why gnome-settings installed as generic pcl3 printer. Closing as NOTABUG. Created attachment 1398585 [details] Installation process with gnome-settings Yes but if the plugin is installed why does gnome not use it? The plugin should be necessary for scanning only. The printer supports ipp and other protocols which should allow network printing. It is not listed on https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html that it needs a plugin for printing. I was able to get it to print properly by installing it as jetdirect printer instead of PCL3 and then sellecting the 277 modell. The steps can bee seen in the attachment. LPD might also work. Why is it insatalled as PCL3 which does print garbage only and not jetdirect? (In reply to Julius from comment #8) > Yes but if the plugin is installed why does gnome not use it? The plugin > should be necessary for scanning only. The printer supports ipp and other > protocols which should allow network printing. > Plugin is needed for both - printing and scanning. > It is not listed on > https://developers.hp.com/hp-linux-imaging-and-printing/binary_plugin.html > that it needs a plugin for printing. If you look into https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index your printer isn't listed there neither. Hplip was patched to work with your printer in our OS and uses proprietary plugin for m277 series (see /usr/share/hplip/data/models/models.dat). Control center doesn't create correct uri, because your printer doesn't have his own plugin. I can try to copy m277 plugin and name it accordingly - I can make scratch build to test. Please try these rpms - now control center should install correct uri https://koji.fedoraproject.org/koji/taskinfo?taskID=25216764 I have installed libsane-hpaio-3.17.11-10.fc27.x86_64.rpm hplip-libs-3.17.11-10.fc27.x86_64.rpm hplip-gui-3.17.11-10.fc27.x86_64.rpm hplip-common-3.17.11-10.fc27.x86_64.rpm hplip-3.17.11-10.fc27.x86_64.rpm and rebooted. It did not change anything. I can provide more debuginfo if you tell me how to do so. Julius, can you please check if 'rpm -q --provides hplip | grep m278' returns anything? It should return one postscriptdriver tag for m278-m281. Then we can check what model name your printer has by '$ lpinfo -l -v' (would you mind running it twice - one for hp created printer, other for control-center created printer?) [julius@julius ~]$ rpm -q --provides hplip | grep m278
postscriptdriver(hewlett-packard;hp_colorlaserjet_mfp_m278-m281;)
For hp-setup
Device: uri = dnssd://HP%20Color%20LaserJet%20MFP%20M281fdw%20(E038CC)._ipp._tcp.local/?uuid=564e424e-4b42-5244-4a48-48ba4ee038cc
class = network
info = HP Color LaserJet MFP M281fdw (E038CC)
make-and-model = HP HP ColorLaserJet MFP M278-M281
device-id = MFG:HP;MDL:HP ColorLaserJet MFP M278-M281;FZY:0;CMD:PDF,PS,PCL,URF,JPEG;
location =
Device: uri = socket://192.168.2.103
class = network
info = HP Color LaserJet MFP M281fdw
make-and-model = HP ColorLaserJet MFP M278-M281
device-id = 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;
location =
for gnome-settings
Device: uri = dnssd://HP%20Color%20LaserJet%20MFP%20M281fdw%20(E038CC)._ipp._tcp.local/?uuid=564e424e-4b42-5244-4a48-48ba4ee038cc
class = network
info = HP Color LaserJet MFP M281fdw (E038CC)
make-and-model = HP HP ColorLaserJet MFP M278-M281
device-id = MFG:HP;MDL:HP ColorLaserJet MFP M278-M281;FZY:0;CMD:PDF,PS,PCL,URF,JPEG;
location =
Device: uri = socket://192.168.2.103
class = network
info = HP Color LaserJet MFP M281fdw
make-and-model = HP ColorLaserJet MFP M278-M281
device-id = 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;
location =
Created attachment 1426026 [details] Network COnfiguration I have installed fedora 28 final release candidate and at first it was worse than in Fedora 27. There is no m281 ppd file anymore and it was recognized as m176n without duplex by hp-setup. Then i found the following solution. In the printer web frontend you can disable everything not needed as seen in the attachment. Then it is always recognized as postscript and works nicely. Nevertheless the scanner does not work. But on https://forums.fedoraforum.org/showthread.php?317915-Print-amp-scan-with-an-HP-Color-LaserJet-MFP-M281-(fdw)&p=1806395 is a solution. i have created the file /usr/share/hplip/data/models/unreleased/unreleased.dat containing [colorlaserjet_mfp_m278-m281] align-type=0 clean-type=0 color-cal-type=0 copy-type=0 embedded-server-type=1 fax-type=7 fw-download=False icon=hp_color_laserjet_cm1312_mfp.png io-mfp-mode=1 io-mode=1 io-support=14 job-storage=0 linefeed-cal-type=0 model1=HP Color LaserJet MFP M278-281 monitor-type=0 panel-check-type=0 pcard-type=0 plugin=1 plugin-reason=64 power-settings=0 ppd-name=hp-color_laserjet_pro_mfp_m277 pq-diag-type=0 r-type=0 r0-agent1-kind=4 r0-agent1-sku=CF400A/CF400X r0-agent1-type=1 r0-agent2-kind=4 r0-agent2-sku=CF401A r0-agent2-type=4 r0-agent3-kind=4 r0-agent3-sku=CF403A r0-agent3-type=5 r0-agent4-kind=4 r0-agent4-sku=CF402A r0-agent4-type=6 scan-src=3 scan-type=5 status-battery-check=0 status-dynamic-counters=0 status-type=10 support-released=True support-subtype=48c3 support-type=2 support-ver=3.15.4 tech-class=Postscript family-class=Undefined tech-subclass=Normal tech-type=4 usb-pid=3c2a usb-vid=3f0 wifi-config=3 This allowed me to scan without adding any printers. It would be very kind if someone could merge those changes into fedora 28. (In reply to Julius from comment #14) > Created attachment 1426026 [details] > Network COnfiguration > > I have installed fedora 28 final release candidate and at first it was worse > than in Fedora 27. There is no m281 ppd file anymore There wasn't such ppd file before at all. I only created m281 ppd file for testing purpose in our previous conversation. It used m277 ppd file. > i have created the file > /usr/share/hplip/data/models/unreleased/unreleased.dat containing > > [colorlaserjet_mfp_m278-m281] > align-type=0 > clean-type=0 > color-cal-type=0 > copy-type=0 > embedded-server-type=1 > fax-type=7 > fw-download=False > icon=hp_color_laserjet_cm1312_mfp.png > io-mfp-mode=1 > io-mode=1 > io-support=14 > job-storage=0 > linefeed-cal-type=0 > model1=HP Color LaserJet MFP M278-281 > monitor-type=0 > panel-check-type=0 > pcard-type=0 > plugin=1 > plugin-reason=64 > power-settings=0 > ppd-name=hp-color_laserjet_pro_mfp_m277 > pq-diag-type=0 > r-type=0 > r0-agent1-kind=4 > r0-agent1-sku=CF400A/CF400X > r0-agent1-type=1 > r0-agent2-kind=4 > r0-agent2-sku=CF401A > r0-agent2-type=4 > r0-agent3-kind=4 > r0-agent3-sku=CF403A > r0-agent3-type=5 > r0-agent4-kind=4 > r0-agent4-sku=CF402A > r0-agent4-type=6 > scan-src=3 > scan-type=5 > status-battery-check=0 > status-dynamic-counters=0 > status-type=10 > support-released=True > support-subtype=48c3 > support-type=2 > support-ver=3.15.4 > tech-class=Postscript > family-class=Undefined > tech-subclass=Normal > tech-type=4 > usb-pid=3c2a > usb-vid=3f0 > wifi-config=3 > Similar should be in /usr/share/hplip/data/models/models.dat, can you check if it is there? Only the first line is changed - if I changed it in this build https://koji.fedoraproject.org/koji/taskinfo?taskID=26539313 , does it work correctly? I would like to remind that printer isn't supported in hplip, so such problems are understandable. I removed /usr/share/hplip/data/models/unreleased/unreleased.dat, removed all of hplip, except for the plugin and installed the files you provided on fedora 28. I rebooted and it works. The workaround also works on clean fedora 27 with hp-plugin, while the files you provided do not install on fedora 27 for dependency reasons. Sadly, you still need the binary soap scan plugin from hp-plugin for scanning until someone implements ws-scan or airprint scan in sane. I strongly suggest moving this to updates-testing (In reply to Julius from comment #16) > I removed /usr/share/hplip/data/models/unreleased/unreleased.dat, removed > all of hplip, except for the plugin and installed the files you provided on > fedora 28. I rebooted and it works. Glad to hear it - I'll issue a build. hplip-3.18.3-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1d68014224 hplip-3.18.3-3.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-1d68014224 hplip-3.18.4-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d1aed92d7a hplip-3.18.4-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-d1aed92d7a hplip-3.18.4-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. I just upgraded multiple machines, some to F27, some to F28. Both show the same flaw: hp-setup fails to recognize the Printer. I don't know, how Julius (in comment #16) got to his conclusion - maybe he only removed the files but did not attempt to run hp-setup again. Anyway: The reason for the failure is simple: There is a typo in models.dat. The necessary tag is "hp_colorlaserjet_mfp_m278-m281" (see also Julius' debug output in bug #1544788 https://bugzilla.redhat.com/attachment.cgi?id=1395564 ) but in models.dat it is named "colorlaserjet_mfp_m278-m281" (the prefix "hp_" is missing) I think I don't need to attach a patch here as this change ist so trivial. Cheers -Fritz Forgot to mention the package versions tested by me: 1. hplip-common-3.18.4-2.fc27.x86_64 2. hplip-common-3.18.4-2.fc28.x86_64 Thank you for finding it out, Fritz! I'll revert the updated patch after Julius' report. hplip-3.18.4-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fa55875ce7 HP seems to support m278-m281 model officially in hplip-3.18.5. I'll remove the patch completely, would you mind checking if installing your printer works with hplip-3.18.5? There will be an update in bodhi with 3.18.5 today. hplip-3.18.4-3.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-fa55875ce7 hplip-3.18.4-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. With hplip 3.18.6 the scanner is not detected. i need to call hp-makeuri 192.168.2.106 and then simple-scan hpaio:/net/HP_ColorLaserJet_MFP_M278-M281?ip=192.168.2.106 to scan. The Sane URI is not automatically created and propagated. Hi, please file a new bug on sane-backends, which is primarily component for scanning issues, and attach there a file with logs gathered by this command (when you don't have scanner installed): $ SANE_DEBUG_HPAIO=255 SANE_DEBUG_DLL=255 SANE_DEBUG_SANEI_TCP=255 scanimage -L &> sane.debug |