Commit Graph

2162 Commits

Author SHA1 Message Date
Solomon Peachy a396200bce all: make "fast_return" only affect the final print in a job.
That way we can take advantage of printer pipelining within a job
even when fast_return is turned off.

This refactoring was also necessary for further changes in how
fast_return will work.
2021-09-30 13:55:27 -04:00
Solomon Peachy b91eead1f0 sonyupdneo: Properly log unknown printer status attributes 2021-09-30 09:25:17 -04:00
Solomon Peachy e32c652d64 common: custom ATTRs aren't supported by CUPS, use PPD attributes instead.
StpUsbBackend, StpUsbVid, StpUsbPid, StpUsbBus, StpUsbPort

plus

  StpMediaID##, StpMediaName##

We can use STATE: reasons or
 ATTR:printer-alert="code=XXX,severity=YYY"
 ATTR:printer-alert-description="textual explanation"
   code=jam,coverOpen,subunitMissing/Full/etc,and so forth...
   severity=warning,critical,other
2021-09-29 23:30:45 -04:00
Solomon Peachy 3d6ff53559 common: Rework usage of connecting-to-device & add offline-report
The former is logged as soon as we start probing, and cleared once
we've found the printer we care about.  The latter is only set
if we fail to find matching printer, and cleared otherwise
2021-09-29 22:56:44 -04:00
Solomon Peachy 87f3f39005 various: We used CUPS_BACKEND_HOLD instead of _STOP for some errors 2021-09-29 22:54:07 -04:00
Solomon Peachy 1a1e1c7dfb common: report the usb vid, pid, bus, and port as CUPS attributes
ATTR:org.gutenprint.usb.backend=%s
	ATTR:org.gutenprint.usb.vid=%04x
	ATTR:org.gutenprint.usb.vid=%04x
        ATTR:org.gutenprint.usb.bus=%03d
        ATTR:org.gutenprint.usb.port=%03d
2021-09-29 18:12:46 -04:00
Solomon Peachy 80d8222551 common: Log the bus/port number when we're probing things 2021-09-27 19:57:58 -04:00
Solomon Peachy 5866b8b908 DNP: when we run into a fatal printer error, STOP the queue
(Instead of HOLDing the job)
2021-09-27 19:26:12 -04:00
Solomon Peachy 66d66ccb00 Documentation updates 2021-09-27 06:49:19 -04:00
Solomon Peachy 6c85215ac7 common: Be more explicit when in CUPS command mode 2021-09-26 22:53:28 -04:00
Solomon Peachy 50819d9f0a common: key off of CONTENT_TYPE to determine if we're a command or not 2021-09-26 22:34:49 -04:00
Solomon Peachy fb0859ede0 s6245: Fix a memory leak in an error path 2021-09-24 09:57:04 -04:00
Solomon Peachy b056fcfb8d lib2245: Fix a potential crash causd by not checking the return code on an allocation path 2021-09-24 09:57:04 -04:00
Solomon Peachy 596edb8039 kodak8800: Fix a memory leak in a job parsing error path 2021-09-24 09:57:02 -04:00
Solomon Peachy e16b466e33 wigh.. wrong USB PID in the regression test list 2021-09-09 06:30:12 -04:00
Solomon Peachy a72feb3079 sony up-971: Make tests use the 971, not 991 id. 2021-09-09 06:22:16 -04:00
Solomon Peachy 76c9e23d10 sonyupdneo: Add updated test image for UP-9x1, and expand regressions 2021-09-09 00:02:05 -04:00
Solomon Peachy 00cc091212 sonyupdneo: Don't assume UP-991AD has the same USB PID as the 971AD
...even though the IEEE1284 stuff might is the same, the PID may not be
2021-09-08 07:00:50 -04:00
Solomon Peachy aa363e98b0 sonyupdneo: Fix incorrect USB PID for UP-991AD 2021-09-08 06:27:51 -04:00
Solomon Peachy 35500f3186 sonyupdneo: A bunch of minor fixes for the UP-D898 and UP-9x1 series 2021-09-07 23:38:44 -04:00
Solomon Peachy 0aa7c9ea33 Add testjob for sony up-991ad 2021-09-07 13:46:14 -04:00
Solomon Peachy 1316cfba45 Un-blacklist Kodak 9810/8800 2021-09-07 13:44:07 -04:00
Solomon Peachy aeae9566e6 sonyupdneo: Fixes for the UP-991AD/971AD
Can now pass static regression tests with the windows printjob
2021-09-07 13:35:12 -04:00
Solomon Peachy 95ac5f391d sonyupdneo: Add preliminary support for the Sony UP-971AD/UP-991AD 2021-09-07 12:34:54 -04:00
Solomon Peachy e7c4eb4391 Add in TODOs for the Sony UP-970AD/971AD/990AD/991AD 2021-09-07 09:16:30 -04:00
Solomon Peachy 1fd5be5512 kodak70xx: Document the new 70xx 5" size codes. No functional change 2021-08-19 23:57:31 -04:00
Solomon Peachy aad6d82569 kodak7015: additional print sizes in regression 2021-08-19 23:40:45 -04:00
Solomon Peachy 2bb883f49a Update copyright year on a few files 2021-08-19 23:40:45 -04:00
Solomon Peachy d4b9d75d66 dnp_citizen: When we get a media code of 0, check printer status
(This happens when the ribbon is exhausted, causing a parsing failure
rather than the underlying error being reported)

In the process, consolidate the various cut-n-pasted status queries
into a shared function.
2021-08-19 06:36:10 -04:00
Solomon Peachy 666952e6d9 README: Move the Sony UP-CX1 to the supported list. 2021-08-14 22:43:03 -04:00
Solomon Peachy 754bf01f80 sonyupd: Fix CUPS marker media level reporting and add a new media type 2021-08-14 22:39:53 -04:00
Solomon Peachy 85512ec8f2 lib70x: Fix a rewind check regression in the CPD80 processing code 2021-08-14 08:09:36 -04:00
Solomon Peachy 9726451a02 mitsu70x: Fix a minor issue in the valgrind result.
And add in a missing regression testcase!
2021-08-14 08:08:01 -04:00
Solomon Peachy 140cd844e4 Regression: Additional options to UP-CX1 2021-08-13 17:36:11 -04:00
Solomon Peachy 6c1b225b19 regression: Add S2145 sticker and Sony UP-CX1 2021-08-13 17:18:33 -04:00
Solomon Peachy 28956af578 sonyupd: Add USB PID of Sony UP-CX1
Should JustWork(tm)
2021-08-13 16:42:59 -04:00
Solomon Peachy 9c90c869b1 add kodak8800 to gitignore 2021-08-13 16:30:32 -04:00
Solomon Peachy b7e615c9ba lib70x: Rework the rewind logic a little bit
* Support additional rewind sizes listed in updated EK305 CPC files
 * Some failure paths in the rewind checks could leave rewind enabled
2021-08-13 08:22:39 -04:00
Solomon Peachy 248a0041ea Kodak305: updated CPC data files
Expands rewind table from 4 to 10 entries
2021-08-13 07:43:12 -04:00
Solomon Peachy afb1245434 sony: Add USB ID for UP-CX1 (not expected to work) 2021-08-13 06:24:21 -04:00
Solomon Peachy 43e46b616d s2245: Rename an option flag for the print command
(No funtional change)
2021-08-11 20:00:45 -04:00
Solomon Peachy 364808f4a9 kodak8800: error -> string mapping 2021-08-05 22:17:47 -04:00
Solomon Peachy b8e8c41815 kodak8800: Support dumping the error logs
Still need to convert the error ids into human-readable strings (where possible)
2021-08-05 19:56:36 -04:00
Solomon Peachy 685b381d52 kodak8800: Fix gutenprint regression entries, had the wrong usb id 2021-08-05 08:59:52 -04:00
Solomon Peachy 711d544561 kodak8800: Major improvements! Can now print successfully!
* Job query, canceling
 * Printer status for idle/completion detection
 * Many fixes
 * Head temperature

Todo:

 * Report printer status in human readable
 * Better job queries
 * Decode sensor data & report (know how to report temperature)
 * 8x12 media handling/reporting
2021-08-04 21:50:32 -04:00
Solomon Peachy 20c43a4396 kodak8800: Add info/media/counter cmdline queries
* Fixed standard stats query
 * Still don't know how to identify printer status
2021-08-04 19:07:56 -04:00
Solomon Peachy b2f7e231a3 kodak8800: Fix some crash errors. Printer now properly queries stats. 2021-08-04 17:45:01 -04:00
Solomon Peachy ccec9973eb common: when debug output is requested, disable quiet mode 2021-08-04 17:37:28 -04:00
Solomon Peachy 316710ca63 Add backend for the kodak 8800/9810
* COMPLETELY UNTESTED *

To-Do:

 * Did I menton testing?
 * cmdline tools to query/dump:
   * media
   * counters
   * error log
   * fw versions
 * Query major status (eg idle, printing, etc)
 * Detect errors at runtime (eg cover open, ribbon not loaded, etc)
2021-08-04 17:18:01 -04:00
Solomon Peachy a1be393139 blacklist: Remove the Kodak 8800/9810 for now 2021-07-31 23:34:25 -04:00