[PATCH] Get ink levels for Epson Stylus C84

Alexander E. Patrakov patrakov at ums.usu.ru
Fri May 7 23:54:08 PDT 2004


Neither gimp-print 4.2.6 nor 5.0.0-alpha2 currently can get ink level 
for Epson Stylus C84. This is because they send the wrong command.

After studying the open-source part of xwLinux (this package _can_ get 
the ink levels), I found the difference. They send the "IQ" remote1 
command instead of "ST" for newer printers. The mtink package does the same.

The attached patch incorporates this change into gimp-print. It applies 
to both versions.

I am pretty sure that the condition in the patch is correct because in 
the xwLinux package, the remote1 command is glued together with the 
sequence  (containing "@EJL 1284.4") that takes the printer out of 
packet mode.

As for other commands, there is no need to put such "if (isnew)" 
statements around them. At least in the xwLinux source, the rest of 
commands are identical for older and newer printers except for 
prepending the "exit_packet_mode" sequence.

-- 
Alexander E. Patrakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimp-print-4.2.6-inklevel.patch
Type: text/x-patch
Size: 742 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/patches/attachments/20040508/4defbf5d/attachment.bin>


More information about the patches mailing list