[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#879719: libsane-hpaio: Does not recognize OfficeJet Pro 8710



On 11/23/2017 09:08 PM, Brian Potkin wrote:
This device-uri should also be given by hp-makeuri. Would you confirm
this and check printing takes place.
This in fact works only with the original models.dat, with the hp_ prefix:
That in itself should indicate something to you.


I get the impression that hplip has more than one convention for device names, logic for normalizing device names inconsistently duplicated multiple places, and more than one way of detecting a device and deciding on what string shall be its name.

The file you mentioned, dat2drv.py, seems to be part of the build process and doesn't ship in the binary package.
base/models.py has functions to normalize model names for display (normalizeModelUIName) and otherwise (normalizeModelName). That would be one instance.

It looks like under certain circumstances (like, you've just pulled a new device out of the box and want to immediately use it as a scanner), "mdl=OfficeJet Pro 8710" returned by Bonjour for _scanner._tcp gets normalized into officejet_pro_8710 and looked up in model.dat.

And yea, this is the case for scanimage, not for hp-makeuri. Great.



Reply to: