Xerox Phaser 6000B cups-deviced detection failure #4124

Closed
michaelrsweet opened this Issue Jun 13, 2012 · 7 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Jun 13, 2012

Version: 1.5.2
CUPS.org User: lxnay

Hi,
I just bought this cheapo Xerox Phaser 6000B, which is a Laser Color printer. Xerox is providing CUPS drivers for it and they work great.
Even though, cups-deviced fails to autodetect the USB device, due to this error:

D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/bluetooth (PID 19258)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/smb (PID 19259)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/beh (PID 19260)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/usb (PID 19261)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/serial (PID 19262)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/http (PID 19263)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/https (PID 19264)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/ipp (PID 19265)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/socket (PID 19266)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/ipps (PID 19267)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/lpd (PID 19268)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/snmp (PID 19269)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Started backend /usr/libexec/cups/backend/parallel (PID 19270)
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19258 (bluetooth) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "smb"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19259 (smb) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19270 (parallel) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "beh"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "ipp"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "https"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19264 (https) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "http"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19263 (http) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19260 (beh) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19265 (ipp) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "socket"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "ipps"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] Found device "lpd"...
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19266 (socket) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19267 (ipps) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19268 (lpd) exited with no errors.
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19262 (serial) exited with no errors.
E [13/Jun/2012:01:51:20 +0200] [cups-deviced] Bad line from "usb": direct usb://Xerox/Phaser%206000B?serial=3168745663 "Xerox Phaser 6000B" "Xerox Phaser 6000B" "MFG:Xerox;CMD:HBPL;MDL:Phaser 6000B;DES:Xerox Phaser 6000 Color Laser Printer,Letter/A4 size;CLS:PRINTER;STS:AAAWAQD/AP8AAAAAAAIAAWQDZANkA2QDAAAAAGQDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/
E [13/Jun/2012:01:51:20 +0200] [cups-deviced] Bad line from "usb": /w==;" ""
D [13/Jun/2012:01:51:20 +0200] [cups-deviced] PID 19261 (usb) exited with no errors.
D [13/Jun/2012:01:51:22 +0200] [cups-deviced] PID 19269 (snmp) exited with no errors.
D [13/Jun/2012:01:51:22 +0200] PID 19257 (/usr/libexec/cups/daemon/cups-deviced) exited with no errors.

Relevant line:
E [13/Jun/2012:01:51:20 +0200] [cups-deviced] Bad line from "usb": /w==;" ""

Manually configuring printers.conf works:

UUID urn:uuid:xxxxxxxxx Info Xerox Location MakeModel Xerox Phaser 6000B v1.0 DeviceURI usb://Xerox/Phaser%206000B?serial=XXXXXXXX State Idle StateTime 1339545181 Type 8392908 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer
Collaborator

michaelrsweet commented Jun 20, 2012

CUPS.org User: mike

Please attach the output from running the following commands:

/usr/lib/cups/backend/usb
cups-config --version
Collaborator

michaelrsweet commented Jun 20, 2012

CUPS.org User: lxnay

Version is 1.5.2.
Regarding the first command, I have no "/usr/lib/cups/backend/usb", can you elaborate a bit more what kind of info you need? Downstream Gentoo here.

Regards.

Collaborator

michaelrsweet commented Jun 20, 2012

CUPS.org User: mike

Might be in /usr/lib64/cups/backend/usb...

I want to see what the USB backend is actually reporting. We added a fix in 1.5.1/2 to prevent newlines from creeping into the output of the USB backend, but it sounds like your version is missing that code?

Can you try 1.5.3?

Collaborator

michaelrsweet commented Jun 20, 2012

CUPS.org User: lxnay

DEBUG: list_devices
DEBUG: libusb_get_device_list=7
direct usb://Xerox/Phaser%206000B?serial=3168745663 "Xerox Phaser 6000B" "Xerox Phaser 6000B" "MFG:Xerox;CMD:HBPL;MDL:Phaser 6000B;DES:Xerox Phaser 6000 Color Laser Printer,Letter/A4 size;CLS:PRINTER;STS:AAAWAQD/AP8AAAAAAAIAAWQDZANkA2QDA /w==;" ""AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/

I will try 1.5.3 asap

Collaborator

michaelrsweet commented Jun 21, 2012

CUPS.org User: lxnay

Still getting the same issue with cups-1.5.3:

==> /var/log/cups/error_log <==
E [21/Jun/2012:10:32:17 +0200] [cups-deviced] Bad line from "usb": direct usb://Xerox/Phaser%206000B?serial=3168745663 "Xerox Phaser 6000B" "Xerox Phaser 6000B" "MFG:Xerox;CMD:HBPL;MDL:Phaser 6000B;DES:Xerox Phaser 6000 Color Laser Printer,Letter/A4 size;CLS:PRINTER;STS:AAARBAD/AP8AAAAAAAIAAWQDZANkA2QDAAAAAGQDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/
E [21/Jun/2012:10:32:17 +0200] [cups-deviced] Bad line from "usb": /w==;" ""

Collaborator

michaelrsweet commented Sep 15, 2012

CUPS.org User: mike

Fixed in Subversion repository.

Collaborator

michaelrsweet commented Sep 15, 2012

"str4124.patch":

Index: cups/backend.c

--- cups/backend.c (revision 10596)
+++ cups/backend.c (working copy)
@@ -136,7 +136,7 @@
if (*s == '' || *s == '"')
putchar('');

  •  if (*s == '\n')
    
  •  if (((_s & 255) < ' ' && *s != '\t') || *s == 0x7f)
     putchar(' ');
    
    else
    putchar(_s);

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment