I think the hostname/ZC part is OK, it's actually the model name that's wrong. I get the following error in the system logs when I try to print to the printer, and nothing happens:
Oct 10 13:07:09 lap-x201 hp[27866]: io/hpmud/jd.c 808: In while after select ret=1 maxfd=6 tmo=16
Oct 10 13:07:09 lap-x201 hp[27866]: io/hpmud/jd.c 197: invalid uri model HP_ENVY_5640_series != ENVY_5640_series
Oct 10 13:07:09 lap-x201 hp[27866]: prnt/backend/hp.c 824: ERROR: open device failed stat=4: hp:/net/HP_ENVY_5640_series?zc=HP5065F3EF8CA8
If I maunally edit the printer URL in CUPS to remove the HP_ from the model name, like this:
hp:/net/ENVY_5640_series?zc=HP5065F3EF8CA8
Then it prints fine, but unfortunately the HP printer tools will no longer recognise the printer, so I can't check it's status or scan (not that I could before either, but at least it recognised that the printer existed, which it no longer does).
I think the hostname/ZC part is OK, it's actually the model name that's wrong. I get the following error in the system logs when I try to print to the printer, and nothing happens:
Oct 10 13:07:09 lap-x201 hp[27866]: io/hpmud/jd.c 808: In while after select ret=1 maxfd=6 tmo=16 HP_ENVY_ 5640_series? zc=HP5065F3EF8C A8
Oct 10 13:07:09 lap-x201 hp[27866]: io/hpmud/jd.c 197: invalid uri model HP_ENVY_5640_series != ENVY_5640_series
Oct 10 13:07:09 lap-x201 hp[27866]: prnt/backend/hp.c 824: ERROR: open device failed stat=4: hp:/net/
If I maunally edit the printer URL in CUPS to remove the HP_ from the model name, like this:
hp:/net/ ENVY_5640_ series? zc=HP5065F3EF8C A8
Then it prints fine, but unfortunately the HP printer tools will no longer recognise the printer, so I can't check it's status or scan (not that I could before either, but at least it recognised that the printer existed, which it no longer does).