[cups.general] Printer ejects only a blank page

Matthias Apitz guru at unixarea.de
Wed Oct 12 07:06:46 PDT 2011


Matthias Apitz wrote:

> Enable LogLevel=debug in cupsd.conf, restart cupsd and create one such
> job; try to understand in the error_log what's going wrong;

Triggered by your post I was curious how these GTk+ clients are creating the job; 
I'm using Evo as MUA and watched what the proc was doing when bringing up with 
Ctrl-p the print menue; I fired up:

$ truss -f -o tr -p PID

and I in the file 'tr' you see among a lot of other lines:

 2943: connect(44,{ AF_INET6 [::e3e1:a5a9:d067:1a28:9b22:508]:0 },28) = 0 (0x0)
 2943: gettimeofday({1318427483.984921 },0x0)    = 0 (0x0)
 2943: write(5,"A",1)                            = 1 (0x1)
 2943: poll({4/POLLIN 3/POLLIN 13/POLLIN|POLLPRI 10/POLLIN 43/POLLIN 46/POLLIN 44/POLLOUT},7,48) = 2 (0x2)
 2943: read(4,"A",1)                             = 1 (0x1)
 2943: gettimeofday({1318427483.984939 },0x0)    = 0 (0x0)
 2943: fstat(42,{ mode=-rw------- ,inode=95874,size=81502,blksize=16384 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: clock_gettime(13,{1318427483.000000000 }) = 0 (0x0)
 2943: sendto(44,"POST /printers/pdf HTTP/1.1\r\nC"...,126,0x0,NULL,0x0) = 126 (0x7e)

i.e. at the end, after choosing the printer, Evo connects to CUPS and 
sends over the prepared file in Postscript:

 2943: sendto(44,"%!PS-Adobe-3.0\n%%Creator: cairo"...,8192,0x0,NULL,0x0) = 8192 (0x2000)
 2943: gettimeofday({1318427483.990468 },0x0)    = 0 (0x0)
 2943: poll({44/POLLIN},1,0)                     = 0 (0x0)

HIH

        matthias





More information about the cups mailing list