cvs commit: patches/gimp-print gimp-print-4.2.6-inklevel.patch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sat May 8 00:03:35 PDT 2004


tushar      04/05/08 01:03:35

  Added:       gimp-print gimp-print-4.2.6-inklevel.patch
  Log:
  Added: gimp-print-4.2.6-inklevel.patch
  
  Revision  Changes    Path
  1.1                  patches/gimp-print/gimp-print-4.2.6-inklevel.patch
  
  Index: gimp-print-4.2.6-inklevel.patch
  ===================================================================
  Submitted By: Alexander E. Patrakov
  Date: 2004-05-08
  Initial Package Version: 4.2.6
  Upstream Status: a copy of this patch has been sent upstream
  Origin: xwLinux, mtink
  Description: This patch allows escputil to get ink levels
  for Epson Stylus C84 and similar printers. The correct
  command is:
  
  escputil -i -u -r /dev/usb/lp0
  
  --- gimp-print/src/escputil/escputil.c	2004-05-08 12:16:47.897480536 +0600
  +++ gimp-print/src/escputil/escputil.c	2004-05-08 12:18:46.400465344 +0600
  @@ -639,7 +639,10 @@
         exit(1);
       }
     initialize_print_cmd();
  -  do_remote_cmd("ST", 2, 0, 1);
  +  if (isnew)
  +    do_remote_cmd("IQ", 1, 1);
  +  else
  +    do_remote_cmd("ST", 2, 0, 1);
     add_resets(2);
     if (write(fd, printer_cmd, bufpos) < bufpos)
       {
  
  
  



More information about the patches mailing list