Red Hat Bugzilla – Bug 178716
RFE - Add support for the HP DeviceURI
Last modified: 2007-11-30 17:11:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060103 Fedora/1.5-4 Firefox/1.5
Description of problem:
With HPLIP, an 'hp' backend is available for CUPS to provide better support for HP inkjets/multifunctions. I have an OfficeJet 7210 multi-function which I can setup fine with s-c-p for printing, but I can not use the HP toolbox to get better support for the device (scanning, ink levels, etc). If I use the 'hp-makeuri' command, it spits out a CUPS DeviceURI that I can then use with /etc/cups/printers.conf to get this support. Unfortunately, if foomatic (or anything else that rebuilds the printers.conf) gets updated/installed, I'm back to a socket DeviceURI. It looks to me like all that might be needed is a bit of code in utils/backend.py in the device_uri() subroutine, but I'm not a python guy and haven't figured out how all of the printer configuration is stored in the system.
For an idea of what the HP DeviceURI looks like:
[dhollis@dhollis-lnx ~]$ hp-makeuri 172.16.9.3
HP Linux Imaging and Printing System (ver. 0.9.7)
Device URI Creation Utility ver. 2.5
Copyright (c) 2003-5 Hewlett-Packard 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.
Creating URIs for '172.16.9.3':
CUPS URI: hp:/net/Officejet_7200_series?ip=172.16.9.3
SANE URI: hpaio:/net/Officejet_7200_series?ip=172.16.9.3
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install HP inkjet or multi-function printer
2. Configure with s-c-p as JetDirect
3. Change the DeviceURI to the HP backend
4. /usr/sbin/printconf-backend --force-rebuild
5. DeviceURI is now back to socket://x.x.x.x
You've reported this against 'devel' -- but are you really running rawhide?
What does 'rpm -q system-config-printer' say?
[dhollis@dhollis-lnx ~]$ rpm -q system-config-printer
Oh, are you actually editing an entry in the printers.conf file that
system-config-printer created? You can't do that -- make a new queue using