'commandtoepson' revamping?

Solomon Peachy <[email protected]>
Newsgroups gmane.linux.printing.gimp-print.devel
Message-ID <[email protected]>
I've been looking at how to get escp2 printer status and ink level 
reporting back up through the CUPS stack.  This is normally done via 
inline ATTRs via the normal print filter flow, but can also be done 
using an out-of-band "command filter".

I saw that there is an existing 'commandtoepson' filter, but it's not 
hooked up through our generated PPDs, so CUPS doesn't know it exists.  
Digging a little further I discovered that due to how it's written, the 
'ReportLevels' command trigges a physical printout rather than just 
querying and returning (ala escputil) the status/levels as ATTRs that 
CUPS expects and can report to the user:

  https://www.cups.org/doc/spec-command.html#ReportLevels

I'd like to change 'commandtoepson' to work the way CUPS expects, and 
add the filter to the PPD so CUPS can invoke it automatically, but this 
would require an implementation change so that it doesn't trigger a 
print.

This would be broadly applicable to any printer escputil can work with, 
so it probably makes sense to enable it across the board for the entire 
escp2 family (perhaps with a blacklist) rather than only enabling it for 
specific models.

Thoughts?

(The dyesub backend acually implements this command filter functionality 
 already, but I never did hook it up to the PPDs)

 - Solomon
-- 
Solomon Peachy			      pizza at shaftnet dot org (email&xmpp)
                                      @pizza:shaftnet dot org   (matrix)
High Springs, FL                      speachy (libra.chat)

_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmFDO9UACgkQrGLLO/XV
ulGx+xAAmHUupkuH5yoJyTDOL8p9DdTpzlK4myAbH4fCNzhYeNWc6fZCRYrP2I+f
uLIB+oYxl291Q6/w8K6w5RsNsMgzWztGhS4T4nt2eZvq4eY7e7WQTKdddlkbk3ks
ISVydAuHM0coN6Q+zmiNBfH/Z7DYgcNf5D594Qf7M8J2gH/+vyDwaU9ukueCGtyL
UXdJCdBMwmZumOgi/BuOdShFfCDbbor/16stUHh8EtZOBrXJFsVH/wLqmbclJBE5
H+DiDGYZRAOJCWlK3MBUxO0zq5Jm83OwIqW8Vp0UQrhz0NJPuOXBXKJgRT0IadMe
q/AJqF6v0Fq/DqITlzx39/feg5c33dVAEswGnFETFWNzFM2DKFb7TLZvZITyYlud
tpgGT1hbkhJGw+mOFeVKhTNLNSfvi5078fegBjd9uOmFBezsKrlkdR3Spk4Aum7s
s0nx+Xl5GnKVOvq9erkPZ/l507f74MtJPsv3a1jBn1SybILUgkJHe6rsfavTk8hO
dzRq7U5kFq3d8mQjV19u99J5KVBJS72wesSyBeSKn3wglmthLSNUrPgXzen4Slhh
FPTXNqLTFNWZSw1HVG4oKupqjPgCsvFpNVMJd5kf6zNN9NUTM2horQbdrVNtzsft
RB3rXnKhg0PWxFd8rEf3F/BKwsVw13MskwGepvNpDjwWjC0x9Nk=
=/AuH
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.