osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: backend/usb.c - 8255 flags - msg#00023

List: printing.cups.bugs

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

Michael Sweet wrote:

> G. Bugiel wrote:
>> Hi,
>> I have HP960 on usb. I've noticed that ioctl (LPGETSTATUS) returns 0x18
>> in ready state of my printer (cups reports "media tray empty"). Watching
>> kernel (2.4.24) drivers/char/lp.c lp_check_status we can see that
>> LP_POUTPA is active high. In cups/backend/usb.c we have:
>>
>> if (ioctl(fd, LPGETSTATUS, &status) == 0)
>> {
>> if (!(status & LP_POUTPA))
>> fputs("WARNING: Media tray empty!\n", stderr);
>>
>> So negation is not needed.
>>
>> Thanks for great work :)
>
> OK, can you file a STR at:
>
> http://www.cups.org/str.php
>
> and please make note of the version of CUPS you have - the status
> code has undergone some changes recently so I don't know if this
> still applies...
>
> Thanks!
>

Don't really know what either of you just said, but I'm getting the same
"media tray empty" message with my Lexmark x125.

Is there a fix.


--
Tyson
the linux noobie


Thread at a glance:

Previous Message by Date:

Re: "Media Tray Empty"

Mike Sweet wrote: > Anonymous wrote: >> I'm trying to get a HP 3550 Deskjet woring over usb. >> >> dmesg say:>> >> hub.c: USB new device connect on bus1/1, assigned device number 3 >> usb.c: ignoring set_interface for dev 3, iface 0, alt 0 >> printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 >> >> so the Printer is there ... >> >> I downloaded the PPD File and installed the Printer, but he does'nt print >> !? > > We'll need to know the version of CUPS you are using along with > any messages that are showing up in the error_log file for your > job. > > The "media tray empty" message does not stop printing, so the problem > likely is in the HPIJS or Ghostscript install. > I'm getting the same message in Cups 1.1 on Mandrake 9.2 I managed to find the error log by luck. This is the output from the last print job attempt. I [13/Mar/2004:13:17:38 -0600] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=2447) I [13/Mar/2004:13:17:59 -0600] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=2456) I [13/Mar/2004:13:18:02 -0600] Started "/usr/lib/cups/cgi-bin/classes.cgi" (pid=2457) I [13/Mar/2004:13:28:20 -0600] Adding start banner page "none" to job 14. I [13/Mar/2004:13:28:20 -0600] Adding end banner page "none" to job 14. I [13/Mar/2004:13:28:20 -0600] Job 14 queued on 'x125' by 'tyson'. I [13/Mar/2004:13:28:20 -0600] Started filter /usr/lib/cups/filter/pstops (PID 2472) for job 14. I [13/Mar/2004:13:28:20 -0600] Started filter /usr/lib/cups/filter/foomatic-rip (PID 2473) for job 14. I [13/Mar/2004:13:28:20 -0600] Started backend /usr/lib/cups/backend/usb (PID 2474) for job 14. W [13/Mar/2004:13:28:20 -0600] [Job 14] Media tray empty! E [13/Mar/2004:13:28:21 -0600] PID 2473 stopped with status 1! I [13/Mar/2004:13:28:21 -0600] Hint: Try setting the LogLevel to "debug" to find out more. The printer is a Lexmark X125. I got the cups PPD file from www.linuxprinting.org and followed the cups quick start and this is as far as I get. The printer is found on /dev/usb/lp0 by harddrake. Cups admin sees it and says its available and ready. All print jobs are shown as aborted. Also how do I turn on the debug level for the logs? Tyson -- the linux Nobie

Next Message by Date:

New cupsd in Mac OS X Version 10.3.3

I've got my laptop set to BrowsePoll our CUPS server here, and it's worked pretty well. Sometimes takes a while to pick up all the printers (our BrowseInterval's a little big maybe, and it seems to only get half the printers at once, so it takes two), but it's OK. Upgraded to 10.3.3, which updated CUPS, and now it doesn't seem to ever pick up the printers on its own. My guess is that since the name of the CUPS server doesn't resolve when cupsd starts (and it never will since we need to authenticate before AirPort will work), it doesn't ever get it. Used to. If I HUP cupsd, it'll get them, but next time I join the network (under a different IP) it seems lost again. Am I just impatient, or did something change? Is this an Apple patch that didn't make it into the new version? Guess I could compile my own cupsd and see if it works better, but students are going to use the stock Apple one obviously. (Getting them to change cupsd.conf is going to be hard enough.) Seems to be OK on machines with fixed IPs that are always on the network, but my PowerBook isn't working. Any ideas? I'll keep an eye on it and see if I can diagnose it better. ab

Previous Message by Thread:

Laserjet 4200 doesn't print PS

I've stumbled into the following odd situation. I have a Samba/Cups server with about 10 printers configured.The server serves Adobe postscript drivers to all Win clients. The newest printer is a Laserjet 4200. All printers work fine from NT/W2K/Xp except the LJ 4200. That works fine from the cups server as well as numerous other *BSD systems with cups enabled. But when I configure the LJ4200 as network printer on an W2K or XP system and print the test page, I get a nice thick printout of the raw postscript file. In the logs I can see the chain of filters used and have compared to the log entries for printing to a LJ 4100. For the LJ 4200 it is texttops->pstops->backend/socket. But for the LJ4100 from any client it's pstops->pstoraster->rastortohp->backend/socket. In configuring the LJ 4200 in cups, I used the HP supplied PPD. Is that maybe the problem? The printout starts with 4 lines like this @PJL SET RESOLUTION = 600 @PJL SET BITSPERPIXES = 2 @PJL SET ECONMODE = OFF @PJL ENTER LANGUAGE = POSTSCRIPT after which the postscript lines start (#!PS-Adobe-3.0......) and ends with -12345-pGA8PuGqszo@xxxxxxxxxxxxxxxx EOJ Are they typical? I havn't seen them before on other text printouts. Maybe I can strip them off with a pre-filter? Any suggestions/wisdom from the trenches?

Next Message by Thread:

New cupsd in Mac OS X Version 10.3.3

I've got my laptop set to BrowsePoll our CUPS server here, and it's worked pretty well. Sometimes takes a while to pick up all the printers (our BrowseInterval's a little big maybe, and it seems to only get half the printers at once, so it takes two), but it's OK. Upgraded to 10.3.3, which updated CUPS, and now it doesn't seem to ever pick up the printers on its own. My guess is that since the name of the CUPS server doesn't resolve when cupsd starts (and it never will since we need to authenticate before AirPort will work), it doesn't ever get it. Used to. If I HUP cupsd, it'll get them, but next time I join the network (under a different IP) it seems lost again. Am I just impatient, or did something change? Is this an Apple patch that didn't make it into the new version? Guess I could compile my own cupsd and see if it works better, but students are going to use the stock Apple one obviously. (Getting them to change cupsd.conf is going to be hard enough.) Seems to be OK on machines with fixed IPs that are always on the network, but my PowerBook isn't working. Any ideas? I'll keep an eye on it and see if I can diagnose it better. ab
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!