Bug 633227
Summary: | Missing Device ID for HP Laserjet 4000 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jiri Popelka <jpopelka> |
Component: | hplip | Assignee: | Tim Waugh <twaugh> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | jfrieben, jpopelka, twaugh, ykopkova |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | hplip-3.10.9-9.fc13 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-14 21:35:56 UTC | Type: | --- |
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: | 639394, 643073 | ||
Bug Blocks: | 219467 | ||
Attachments: |
Description
Jiri Popelka
2010-09-13 10:16:48 UTC
Could anybody push package hplip-3.10.6-5.fc14 to F14 or F14-updates-testing repos? Thanks! You can get it from koji https://koji.fedoraproject.org/koji/buildinfo?buildID=196054 (In reply to comment #2) According to Tim's comment at https://bugzilla.redhat.com/show_bug.cgi?id=630350#c11 package hplip (which is not even installed yet (!)) is expected to raise its hand when s-c-p is querying for the best printer driver. This requires the presence of the corrected package hplip-3.10.6-5.fc14 in the online repositories. Otherwise, autodetection cannot be tested. hplip-3.10.6-5.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/hplip-3.10.6-5.fc14 Even though yum reports that hplip-3.10.6-7.fc14 is available, s-c-p still wants me to install driver "laserjet.ppd": $ system-config-printer No ID match for device socket://192.168.2.2:9100: MFG:HP;MDL:LaserJet 4000;DES:HP LaserJet 4000; Using drv:///sample.drv/laserjet.ppd (status: 1) . After installing hlip manually which updates or pulls in other packages as shown below ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: hplip x86_64 3.10.6-7.fc14 updates-testing 6.0 M Installing for dependencies: hpijs x86_64 1:3.10.6-7.fc14 updates-testing 4.9 M net-snmp x86_64 1:5.5-20.fc14 fedora 302 k Updating for dependencies: hplip-common x86_64 3.10.6-7.fc14 updates-testing 73 k hplip-libs x86_64 3.10.6-7.fc14 updates-testing 144 k libsane-hpaio x86_64 3.10.6-7.fc14 updates-testing 77 k Transaction Summary ================================================================================ The outcome now becomes: $ system-config-printer No ID match for device socket://192.168.2.2:9100: MFG:HP;MDL:LaserJet 4000;DES:HP LaserJet 4000; Using lsb/usr/HP/hp-laserjet_4000_series-ps.ppd.gz (status: 0) File hp-laserjet_4000_series-ps.ppd.gz is actually part of package hpijs. Could you please run 'lpinfo -l -v' and attach the output here? There seem to be two different IDs in play here. Created attachment 450964 [details]
Output of 'lpinfo -l -v'
Command 'lpinfo -l -v' was run while packages listed in comment 6 were still installed. I wish we could find out which ID it was actually trying to look for. Guess I'll need to build a system-config-printer with that debug comment fixed, and maybe with some extra debugging for where IDs are found from. Can you please run 'system-config-printer --debug', and follow the same procedure as before to install a queue for the printer? You can stop once you see the manufacturer list. I'd like to see the output -- it might give a clue about what's going wrong. It's fine to do this with the hplip packages installed. Created attachment 450987 [details]
Output of 'system-config-printer --debug'
After entering the root password twice, then "Devices > AppSocket/JetDirect" and the printer address, s-c-p jumps directly to dialog window for "Installable Options" of hp-laserjet_4000_series-ps.ppd.
Thanks. Could you please try again with this new system-config-printer build?: http://koji.fedoraproject.org/koji/buildinfo?buildID=198400 Created attachment 451036 [details]
Output of 'system-config-printer --debug' (1.2.4-3.fc14)
*sigh* There's a problem with the way system-config-printer fetches Device IDs from specific SNMP hosts. Filed as a separate bug... hplip-3.10.9-1.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/hplip-3.10.9-1.fc13 hplip-3.10.9-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update hplip'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/hplip-3.10.9-1.fc13 I've built system-config-printer-1.2.5-1.fc13 which fixes the problem mentioned in comment #15. Could you please try again using that? http://koji.fedoraproject.org/koji/buildinfo?buildID=200314 Created attachment 453236 [details]
Output of 'system-config-printer --debug' (1.2.5-1.fc14)
Neither package hplip nor package foomatic have been installed prior to running system-config-printer.
And did it ask you to install hpijs? (I expect so?) (In reply to comment #20) No, it didn't. It immediately prompted me to choose between either the PCL 4/5 or the PCL 6 driver, the former one being marked as "recommended". hpijs is currently not installed, only packages hplip-common-3.10.9-1.fc14.x86_64 and hplip-libs-3.10.9-1.fc14.x86_64. The current CUPS driver is /etc/cups/ppd/HP-LaserJet-4000.ppd. (In reply to comment #21) > hpijs is currently not installed Yes, I know. But I'm confused because the debug log says this: MFG:Hewlett-Packard;MDL:HP LaserJet 4000 Series;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT; ... Asking PackageKit to install drivers and on Fedora 13 I get matches for that ID when running this: pkcon what-provides 'hewlett_packard;hp_laserjet_4000_series;' So it all looks like it should work. What does this do, for you?: dbus-send --print-reply --session \ --dest=org.freedesktop.PackageKit \ /org/freedesktop/PackageKit \ org.freedesktop.PackageKit.Modify.InstallPrinterDrivers \ uint32:0 \ array:string:"MFG:Hewlett-Packard;MDL:HP LaserJet 4000 Series;" \ string:"hide-finished" (I get a prompt to install hpijs...) (In reply to comment #22) After executing command 'dbus-send ..", a dialog window pops up prompting me to accept installing packages foomatic, hpijs, and gutenprint-cups. This behaviour clearly contradicts the suggestion by system-config-printer which after querying and displaying the printer make ("HP") jumps from "Choose Driver" ("Select printer from database") to "Choose Driver" ("Models" ("LaserJet"), "Drivers" ("HP LaserJet Series PCL 4/5[en] (recommended)", "HP LaserJet Series PCL 6 CUPS [en]"). It thus seems that system-config-printer actually does not execute the dbus command specified in comment 22. > pkcon what-provides 'hewlett_packard;hp_laserjet_4000_series;'
Getting provides [=========================]
Starting [=========================]
Querying [=========================]
Sorry, the pkcon command line should have read: pkcon what-provides 'hewlett-packard;hp_laserjet_4000_series;' (i.e. 'hewlett-packard', not 'hewlett_packard') I've tried to replicate your environment as closely as I can here. I created a new CUPS backend, /usr/lib/cups/backend/test: ==> #!/bin/bash cat <<"EOF" direct test://foo "HP LaserJet 4000" "HP LaserJet 4000" "MFG:Hewlett-Packard;MDL:HP LaserJet 4000 Series;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;" EOF exit 0 <== and made it executable, so that I see a device in the list and so that system-config-printer attempts Device ID matching for it. The result: I get a prompt to install drivers. I've built another system-config-printer package with debugging at the crucial moment (like "Calling InstallPrinterDrivers (...)") telling us what it's doing. It sounds like the problem might be in gnome-packagekit or somewhere like that. http://koji.fedoraproject.org/koji/buildinfo?buildID=200485 Created attachment 453478 [details]
Output of 'system-config-printer --debug' (1.2.5-2.fc14)
Having moved to F14, I had to build the binary package from system-config-printer-1.2.5-2.fc13.src.rpm. After installing the new packages, I obtain
$ rpm -qa 'system-config-printer*'
system-config-printer-libs-1.2.5-2.fc14.x86_64
system-config-printer-1.2.5-2.fc14.x86_64 .
Please let me know if I was supposed to install system-config-printer-udev-1.2.5-2.fc14.x86_64, too.
Moreover, 'pkcon what-provides 'hewlett-packard;hp_laserjet_4000_series;'' returns
Getting provides [=========================]
Starting [=========================]
Querying [=========================]
Available foomatic-4.0.5-1.fc14.x86_64 Database of printers and printer drivers
Available foomatic-4.0.5-1.fc14.x86_64 Database of printers and printer drivers
Available gutenprint-cups-5.2.6-1.fc14.x86_64 CUPS drivers for Canon, Epson, HP and compatible printers
Available gutenprint-cups-5.2.6-1.fc14.x86_64 CUPS drivers for Canon, Epson, HP and compatible printers
Available hpijs-1:3.10.6-3.fc14.x86_64 HP Printer Drivers
Available hpijs-1:3.10.9-1.fc14.x86_64 HP Printer Drivers
That last debug output seems to have pointed out the problem: the device is giving us MANUFACTURER and MODEL keys, but the InstallPrinterDrivers interface is defined only in MFG and MDL keys. New build should fix it: system-config-printer-1.2.5-3.fc13 http://koji.fedoraproject.org/koji/buildinfo?buildID=200507 I've filed bug #643073 to track that. hplip-3.10.9-5.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. hplip-3.10.9-9.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. |