HP LJ 1200: CUPS sees it, no output, no obvious (to me) errors

Anonymous anonymous at easysw.com
Sun Nov 27 12:50:45 PST 2005


Been fussing with this for about three hours now, sigh.

Kernel 2.4.18
CUPS 1.1.23

HP LJ 1200, works fine by parallel port under BSD lpd; but it's going to have to be moved to a machine with no parallel port and with CUPS.  So I'm trying to verify that I can get it working under USB with CUPS once I move it over.

It's seen on the USB bus:  /proc/bus/usb/devices shows

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0317 Rev= 1.00
S:  Manufacturer=HewLett Packard
S:  Product=HP LaserJet 1200
S:  SerialNumber=00CNCY196040
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
:  If#= 0 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=03 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
I:  If#= 0 Alt= 2 #EPs= 1 Cls=07(print) Sub=01 Prot=01 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

while /var/log/syslog says

Nov 27 13:47:27 catfish kernel: hub.c: USB new device connect on bus2/1, assigned device number 7
Nov 27 13:47:27 catfish kernel: printer.c: usblp0: USB Bidirectional printer dev 7 if 0 alt 0

Adding a printer through the web admin interface for CUPS seems to work fine:  it sees the printer on the USB bus; I find the PostScript driver for the LJ1200; CUPS indicates it adds successfully.  I verify the PPD file is present in /etc/cups/ppd with the right printer name; the file says:

*ModelName: "HP LaserJet 1200"
*ShortNickName: "HP LaserJet 1200"
*NickName: "HP LaserJet 1200 Postscript (recommended)"
*Product: "(HP LaserJet 1200)"
*Manufacturer: "HP"
*PSVersion: "(2014.116) 0"

I then try to print a test page from the web interface and get a whole lot of nothing -- not even the flashing light on the front of the printer indicating that it's receiving data.  With the cupsd.conf Log Level set to Debug, I see this:

D [27/Nov/2005:14:17:58 -0500] AcceptClient: 5 from localhost:631.
D [27/Nov/2005:14:17:58 -0500] ReadClient: 5 GET /printers/hp_lj1200_ps?op=print-test-page HTTP/1.1
D [27/Nov/2005:14:17:58 -0500] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 29928
I [27/Nov/2005:14:17:58 -0500] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=29928)
D [27/Nov/2005:14:17:58 -0500] SendCommand: 5 file=8
D [27/Nov/2005:14:17:58 -0500] AcceptClient: 7 from localhost:631.
D [27/Nov/2005:14:17:58 -0500] ReadClient: 7 POST /printers/hp_lj1200_ps HTTP/1.1
D [27/Nov/2005:14:17:58 -0500] print_job: request file type is application/postscript.
D [27/Nov/2005:14:17:58 -0500] check_quotas: requesting-user-name = 'root'
D [27/Nov/2005:14:17:58 -0500] print_job: requesting-user-name = 'root'
D [27/Nov/2005:14:17:58 -0500] Adding default job-sheets values "none,none"...
I [27/Nov/2005:14:17:58 -0500] Adding start banner page "none" to job 16.
I [27/Nov/2005:14:17:58 -0500] Adding end banner page "none" to job 16.
I [27/Nov/2005:14:17:58 -0500] Job 16 queued on 'hp_lj1200_ps' by 'root'.
D [27/Nov/2005:14:17:58 -0500] Job 16 hold_until = 0
D [27/Nov/2005:14:17:58 -0500] StartJob(16, 0x8098808)
D [27/Nov/2005:14:17:58 -0500] StartJob() id = 16, file = 0/1
D [27/Nov/2005:14:17:58 -0500] job-sheets=none,none
D [27/Nov/2005:14:17:58 -0500] banner_page = 0
D [27/Nov/2005:14:17:58 -0500] StartJob: argv = "hp_lj1200_ps","16","root","Test Page","1","","/var/spool/cups/d00016-001"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[2]="USER=root"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[3]="CHARSET=iso-8859-1"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[4]="LANG=en_US"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[5]="TZ=US/Eastern"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[6]="PPD=/etc/cups/ppd/hp_lj1200_ps.ppd"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[10]="CONTENT_TYPE=application/postscript"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[11]="DEVICE_URI=usb://HP/LaserJet%201200"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[12]="PRINTER=hp_lj1200_ps"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"D [27/Nov/2005:14:17:58 -0500] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[15]="CUPS_SERVER=localhost"
D [27/Nov/2005:14:17:58 -0500] StartJob: envp[16]="IPP_PORT=631"
D [27/Nov/2005:14:17:58 -0500] StartJob: statusfds = [ 9 11 ]
D [27/Nov/2005:14:17:58 -0500] StartJob: filterfds[1] = [ 12 -1 ]
D [27/Nov/2005:14:17:58 -0500] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [27/Nov/2005:14:17:58 -0500] StartJob: filterfds[0] = [ 13 14 ]
D [27/Nov/2005:14:17:58 -0500] start_process("/usr/lib/cups/filter/pstops", 0xbffefd70, 0xbffef0e0, 12, 14, 11)
I [27/Nov/2005:14:17:58 -0500] Started filter /usr/lib/cups/filter/pstops (PID 29930) for job 16.
D [27/Nov/2005:14:17:58 -0500] StartJob: backend = "/usr/lib/cups/backend/usb"
D [27/Nov/2005:14:17:58 -0500] StartJob: filterfds[1] = [ -1 12 ]
D [27/Nov/2005:14:17:58 -0500] start_process("/usr/lib/cups/backend/usb", 0xbffefd70, 0xbffef0e0, 13, 12, 11)
I [27/Nov/2005:14:17:58 -0500] Started backend /usr/lib/cups/backend/usb (PID 29931) for job 16.
D [27/Nov/2005:14:17:58 -0500] ProcessIPPRequest: 7 status_code=0
D [27/Nov/2005:14:17:58 -0500] CloseClient: 7
D [27/Nov/2005:14:17:58 -0500] [Job 16] Page = 612x792; 12,12 to 600,780
D [27/Nov/2005:14:17:58 -0500] [Job 16] slowcollate=0, slowduplex=0, sloworder=0D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%BoundingBox: 0 0 612 792
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%Pages: 1
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%LanguageLevel: 1
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%DocumentData: Clean7Bit
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%DocumentSuppliedResources: procset testprint/1.1
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%DocumentNeededResources: font Helvetica Helvetica-Bold Times-Roman
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%Creator: Michael Sweet, Easy Software Products
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%CreationDate: May 11, 1999
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%Title: Test Page
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%EndComments
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%BeginProlog
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%BeginResource procset testprint 1.1 0
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%EndResource
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%EndProlog
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%Page: 1 1
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%Page: 1 1
D [27/Nov/2005:14:17:58 -0500] ReadClient: 5 GET /favicon.ico HTTP/1.1
D [27/Nov/2005:14:17:58 -0500] SendError: 5 code=404 (Not Found)
D [27/Nov/2005:14:17:58 -0500] CloseClient: 5
D [27/Nov/2005:14:17:58 -0500] [Job 16] pw = 587.8, pl = 767.8
D [27/Nov/2005:14:17:58 -0500] [Job 16] PageLeft = 12.0, PageRight = 599.8
D [27/Nov/2005:14:17:58 -0500] [Job 16] PageTop = 779.8, PageBottom = 12.0
D [27/Nov/2005:14:17:58 -0500] [Job 16] PageWidth = 612.0, PageLength = 792.0
D [27/Nov/2005:14:17:58 -0500] [Job 16] Printer using device file "/dev/usb/lp0"...
D [27/Nov/2005:14:17:58 -0500] [Job 16] LPGETSTATUS returned a port status of 18...
D [27/Nov/2005:14:17:58 -0500] [Job 16] 0 %%EOF
D [27/Nov/2005:14:17:58 -0500] [Job 16] Saw EOF!
D [27/Nov/2005:14:17:58 -0500] UpdateJob: job 16, file 0 is complete.
D [27/Nov/2005:14:17:58 -0500] CancelJob: id = 16
D [27/Nov/2005:14:17:58 -0500] StopJob: id = 16, force = 0
D [27/Nov/2005:14:17:58 -0500] StopJob: printer state is 3

The only things that look weird to me here is the "LPGETSTATUS returned a port status of 18" (a Google search turned up lots of hits, but nothing that seemed obviously relevant) and the HTTP 404 errors trying to find favicon.ico (which I figured was for the favicon feature of the browser, and irrelevant to printing the test page; the Debian packages don't include a favicon).

I've tried to follow the instructions on linuxprinting.org, and have looked at the Admin docs; but still, I'm sure there's something configuration-related I've done wrong.  But I have no idea what it is, so if anyone can provide some advice on how to get this working, I'd be grateful.

It should be easy, I would think; this is probably the most popular laser printer for Linux.  But I'm doing something wrong . . .






More information about the cups mailing list