diff options
author | James Bottomley <JBottomley@Odin.com> | 2015-08-13 15:39:16 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2020-12-06 11:37:10 -0800 |
commit | ac44a4a89e1a6be8ec527746b141026fbd33e0bf (patch) | |
tree | 3010f677fb241e1fff415729d1ded543bd0c027a | |
parent | 4653a2018d75cc715757d20d5c1eda54a3db836f (diff) | |
download | ricoh-sp100-ac44a4a89e1a6be8ec527746b141026fbd33e0bf.tar.gz |
sp204: add hack to make cartridges last longer
simply tell the printer there are 10x fewer dots per page.
Signed-off-by: James Bottomley <JBottomley@Odin.com>
-rwxr-xr-x | pstoricohddst-gdi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi index 1e10679..71d0f8d 100755 --- a/pstoricohddst-gdi +++ b/pstoricohddst-gdi @@ -40,6 +40,12 @@ function output_page() { # /1 causes bc to round to the nearest integer because scale=0 ## dots=$(echo "(${x[0]}*${x[1]}*(1-${x[2]}))/1"|bc) + ## + # FIX: toner cartridge runs out way too fast with this dots + # calculation above and once it decides it's empty, you + # can't force it to print. So set dots to an artificially + # low number + dots=$(echo "$dots/10"|bc) # Flushing page header cat <<EOF |