Ubuntu 16.04 uses HPLIP 3.16.3, whose "hp" backend still does not write any page_log. Verified it in the hplip 3.16.3 source code (prnt/backend/hp.c). So Martin's patch does not seem obsolete :-). Thanks to and based on Martin's explanation and patch, I improved it a bit, so it writes the proper page number and number of copies to STDERR, and thus to page_log. Tested with multiple HP LaserJet M225dw and M401dne printers. Any one interested in the patch?
Ubuntu 16.04 uses HPLIP 3.16.3, whose "hp" backend still does not write any page_log. Verified it in the hplip 3.16.3 source code (prnt/backend/ hp.c). So Martin's patch does not seem obsolete :-). Thanks to and based on Martin's explanation and patch, I improved it a bit, so it writes the proper page number and number of copies to STDERR, and thus to page_log. Tested with multiple HP LaserJet M225dw and M401dne printers. Any one interested in the patch?