Bug#347522: [Pkg-cups-devel] Bug#347522: cupsys: USB printer is not working anymore

Kenshi Muto kmuto at debian.org
Sun Jul 2 10:15:27 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At Wed, 11 Jan 2006 07:26:36 -0200,
Felipe Almeida Lessa wrote:
> Package: cupsys
> Version: 1.1.99.b1.r4885-1
> Severity: important

> After an upgrade (I don't remember which one, as I haven't printed
> anything for a long time), CUPS stopped working. I thought the printer
> was broken, but it's working fine on Windows.
> 
> CUPS keeps printing the below in error_log until I cancel the job:
> D [11/Jan/2006:07:12:03 -0200] [Job 254] Printer using device file
> "/dev/usb/lp0"...
> D [11/Jan/2006:07:12:03 -0200] [Job 254] LPGETSTATUS returned a port
> status of 10...
> W [11/Jan/2006:07:12:03 -0200] [Job 254] Printer fault!

Hello submitters of this bug#347522, could you replace
/usr/lib/cups/backend-available/usb by one of
http://kmuto.jp/tmp/usb.tar.gz and see error_log with debug
option when you send a print data?
Because I added "DEBIAN (kmuto)" to debug line, You can find it easily.
It reports status number, error number and message of ioctl.

Details:

1. As you know, usb backend from CUPS 1.2 checks printer status before
   sending data. This is done by using ioctl(LPGETSTATUS) API.
2. I noticed usb-unix.c had a wrong logic. When ioctl is failed by some
   reasons (fatal or not), usb backend always report "Printer fault!".
   I believe it is fixed by modified backend I mentioned above.
3. For Felipe and Jose, status=10(HEX) means printer looks off-line.
   Can you see any more messages in dmesg or syslog?
4. For Norbert, status=0 means success, so I think your problem can be
   solved.
   Although lkml thread is bit old story and CUPS has already fixed this
   issue, I got a hint and knowledge from this. Thanks a lot.

Thanks,
- -- 
Kenshi Muto
kmuto at debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkSnnLsACgkQQKW+7XLQPLH3WwCcD8zFrkSsLCYE3tDNEK9RMPny
FhsAn3i/zhXrmKgT/stDypT1Z9OxdwBB
=8gNx
-----END PGP SIGNATURE-----




More information about the Pkg-cups-devel mailing list