xerox usb printer not recognized in Ubuntu 9.10

Bug #519690 reported by Seletech
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: cups

This bug report follows the question #99192 that seems without answer.

We are trying to connect a Xerox Phaser 6140 via usb to our Ubuntu Karmic 9.10 x86_64 linux box
(Linux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux).
The cups version is: 1.4.1-5ubuntu2.1

The same printer works fine when connected via lan, but we need it working via usb ...
The same hardware works fine when booted as Windows XP.
I tried to apply the solution suggested by Garvinrick4 to the question #81362 (Brother HL-2140 USB printer not recognized in printer set up in Ubuntu 9.10 alpha 4), but it seems to give worse results, so I returned to the original state.
I suppose (may be I'm wrong) that the Garvin fixing has been already included in the current Karmic
Here is what I can see:

When we insert the usb connector, the /var/log/message records:

Jan 29 17:32:45 spvi-client3 kernel: [ 7152.187481] usb 2-1.7: new high speed USB device using ehci_hcd and address 5
Jan 29 17:32:45 spvi-client3 kernel: [ 7152.300670] usb 2-1.7: configuration #1 chosen from 1 choice
Jan 29 17:32:45 spvi-client3 kernel: [ 7152.301861] usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0924 pid 0x3D65
Jan 29 17:32:46 spvi-client3 kernel: [ 7153.331326] usb 2-1.7: usbfs: interface 0 claimed by usblp while 'usb' sets config #1

the command lsusb reports:
...
Bus 002 Device 005: ID 0924:3d65 Xerox
....

the command "lsmod | grep usb" gives:

usblp 15136 0
usbhid 43968 0

while in /var/log/cups/error_log we have:

E [29/Jan/2010:17:32:46 +0100] [cups-deviced] Bad line from "usb": direct usb://Xerox/Phaser%206140N "Xerox Phaser 6140N" "Xerox Phaser 6140N" "MFG:Xerox;CMD:PJL,RASTER,DOWNLOAD,PCLXL,PCL,HBPL,POSTSCRIPT;MDL:Phaser 6140N;DES:Xerox Phaser 6140N;CLS:PRINTER;STS:AAAQBAD/AP8AAAAAAAgAA2QDZANkA2QDZANkA2QDQBoAAAAAsIYAAAAAAAAAAAAA4AAAEAAAAAAQ
E [29/Jan/2010:17:32:46 +0100] [cups-deviced] Bad line from "usb": DA==;" ""
W [29/Jan/2010:17:32:46 +0100] [CGI] Unhandled message: interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect

reported twice.
I suppose that this means that cups can see that the new device has been attached and that it is able to try to understand how to handle it.
Looking at the error strings, I have seen that the bad lines were missing of their closing quote ".
Thus, I tried a substitute for the usb backend (/usr/lib/cups/backend/usb) that filtered the output of the real usb backend appending the missing closing quote.
This way, the execution of /usr/lib/cups/backend/usb gives the following output:

direct usb://Xerox/Phaser%206140N "Xerox Phaser 6140N" "Xerox Phaser 6140N" "MFG:Xerox;CMD:PJL,RASTER,DOWNLOAD,PCLXL,PCL,HBPL,POSTSCRIPT;MDL:Phaser 6140N;DES:Xerox Phaser 6140N;CLS:PRINTER;STS:AAAQBAD/AP8AAAAAAAgAA2QDZANkA2QDZANkA2QDQBoAAAAAsIYAAAAAAAAAAAAA4AAAEAAAAAAQ"
DA==;" """

Anyway, with this patch the problem is not solved, because in the error_log is still reported the following error:

W [29/Jan/2010:17:40:60 +0100] [CGI] Unhandled message: interface=org.freedesktop.DBus.Introspectable, path=/, member=Introspect

I haven't been able to understand what is the reason for this error, thus I returned to the original usb backend.

The result to the command "lpinfo -vv" is always the same (no matter if with the patch or not):
           direct scsi
           file cups-pdf:/
           network ipp
           network http
           network smb
           network beh
           direct hp
           network socket
           network lpd
           direct hpfax
          network dnssd://Xerox%20Phaser%206140N%20(c3%3A07%3Aa5)._printer._tcp.local/
          network dnssd://Xerox%20Phaser%206140N%20(c3%3A07%3Aa5)._ipp._tcp.local/
          network dnssd://Xerox%20Phaser%206140N%20(c3%3A07%3Aa5)._pdl-datastream._tcp.local/
          network lp

where you can see that the networked interface is well recognized while the "direct usb" is completely missing.

I the other log file (/var/log/cups/access_log) each "lpinfo -v" request records:

localhost - - [29/Jan/2010:17:59:17 +0100] "POST / HTTP/1.1" 401 75 CUPS-Get-Devices successful-ok
localhost - root [29/Jan/2010:17:59:17 +0100] "POST / HTTP/1.1" 200 2554 CUPS-Get-Devices -

Well.... Is there someone that can help me?
Thank you.
                    Savino

Revision history for this message
Paul Loughman (snowhog) wrote :

I reported basically, the same 'bug' on the KDE Bug Tracking System (https://bugs.kde.org/show_bug.cgi?id=214932). My Panasonic KX-P4410 printer, connected to one of my laptops USB ports in Kubuntu Karmic Koala 9.10 simply isn't recognized by CUPS, so I can't configure it. This same printer, same laptop, same USB port, in Kubuntu Jaunty 9.04 works just fine.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you run the follwoing command:

sudo /usr/lib/cups/backend/usb >out 2>err

and attach the files "out" and "err" to this bug report. Please attach the files separately, without compressing them.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul Loughman (snowhog) wrote :

No need to attach the outputs - running the command results in:

paul@myotherbrain:~$ sudo /usr/lib/cups/backend/usb >out 2>err
Segmentation fault

However, the two files were created, but the out file is zero bytes:

paul@myotherbrain:~$ dir
total 68
drwxr-xr-x 2 paul paul 4096 2010-03-06 20:59 Desktop
drwxr-xr-x 4 paul paul 4096 2010-04-11 13:04 Documents
drwxr-xr-x 2 paul paul 4096 2010-04-10 07:48 Downloads
-rw-r--r-- 1 paul paul 79 2010-04-11 13:05 err
drwxr-xr-x 2 paul paul 4096 2010-03-31 19:05 GimpTesting
drwxr-xr-x 5 paul paul 4096 2010-02-10 21:04 KDMThemes
drwxr-xr-x 4 paul paul 4096 2010-02-10 21:22 KSplashThemes
drwxr-xr-x 3 paul paul 4096 2010-04-09 17:22 Music
-rw-r--r-- 1 paul paul 0 2010-04-11 13:05 out
drwxr-xr-x 4 paul paul 4096 2010-04-04 18:09 Pictures
drwxr-xr-x 2 paul paul 4096 2009-12-31 18:29 Public
drwxr-xr-x 2 paul paul 4096 2010-03-28 07:14 snap
drwxr-xr-x 2 paul paul 4096 2010-04-04 16:52 Snapshots
drwxr-xr-x 2 paul paul 4096 2009-12-31 18:29 Templates
drwxr-xr-x 2 paul paul 4096 2010-03-31 14:46 Vault
drwxr-xr-x 2 paul paul 4096 2009-12-31 18:29 Videos
drwxr-xr-x 2 paul paul 4096 2010-02-23 21:05 Wallpapers
drwxr-xr-x 2 paul paul 4096 2010-04-07 17:45 WinXPpro

The contents of err:

paul@myotherbrain:~$ cat err
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=12

Revision history for this message
Thomas Novin (thomasn80) wrote :
Revision history for this message
Thomas Novin (thomasn80) wrote :
Changed in cups (Ubuntu):
status: Incomplete → Confirmed
status: Confirmed → New
Revision history for this message
Thomas Novin (thomasn80) wrote :

I have also bug #563357 which is about problem printing images with this printer (printer connected via network)

Revision history for this message
Thomas Novin (thomasn80) wrote :

Apr 15 07:32:36 mistik udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-4
Apr 15 07:32:36 mistik udev-configure-printer: Device vendor/product is 0924:3D65
Apr 15 07:32:36 mistik udev-configure-printer: failed to claim interface
Apr 15 07:32:36 mistik udev-configure-printer: invalid or missing IEEE 1284 Device ID
Apr 15 07:32:36 mistik udev-configure-printer: add /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/usb/lp0
Apr 15 07:32:36 mistik udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.7/usb1/1-4
Apr 15 07:32:36 mistik udev-configure-printer: MFG:Xerox MDL:Phaser 6140N SERN:- serial:VVA115051

Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Loughman (snowhog) wrote :

Just to confirm, this problem/bug remains in Kubuntu Lucid Lynx 10.04 32-bit which I installed this morning - a fresh installation from LiveCD burned last night. It is really a PITA not to have a functioning USB printer.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Seletech, your problem is also described by bug 468701. A fix is proposed there.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Paul L, and everyone else, please run the following commands in a terminal window:

sudo /usr/lib/cups/backend/usb
sudo usb_printerid /dev/usb/lp0
sudo usb_printerid /dev/usb/lp1
lsusb
ls -l /dev/usb/lp* /dev/bus/usb/*/*

Post the output here.

Changed in cups (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The segmentation fault observed by Paul L is also observed in bug 468701, but no fix for this one is proposed there. So please post the output of the commands shown in my previous comment.

Marking as duplicate ...

Revision history for this message
Thomas Novin (thomasn80) wrote :

Output requested in comment #10:

thnov@mistik:~$ sudo /usr/lib/cups/backend/usb
[sudo] password for thnov:
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=5
DEBUG: usb_find_devices=11
direct usb://Xerox/Phaser%206140DN "Xerox Phaser 6140DN" "Xerox Phaser 6140DN" "MFG:Xerox;CMD:PJL,RASTER,DOWNLOAD,PCLXL,PCL,HBPL,POSTSCRIPT;MDL:Phaser 6140DN;DES:Xerox Phaser 6140DN;CLS:PRINTER;STS:AAAQBAD/AP8AAAAAAAgAA2QDZANkA2QDZANkA2QDQBoAAAAAsIIAAAAAAAAAAAAA4AAAEQAAAAAQ
DA==;" ""
thnov@mistik:~$ sudo usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Xerox;CMD:PJL,RASTER,DOWNLOAD,PCLXL,PCL,HBPL,POSTSCRIPT;MDL:Phaser 6140DN;DES:Xerox Phaser 6140DN;CLS:PRINTER;STS:AAAQBAD/AP8AAAAAAAgAA2QDZANkA2QDZANkA2QDQBoAAAAAsIIAAAAAAAAAAAAA4AAAEQAAAAAQ
DA==;
thnov@mistik:~$ sudo usb_printerid /dev/usb/lp1
Error: No such file or directory: can't open '/dev/usb/lp1'
thnov@mistik:~$ lsusb
Bus 005 Device 002: ID 046d:c00b Logitech, Inc. MouseMan Wheel
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0fce:d028 Sony Ericsson Mobile Communications AB
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0471:060c Philips
Bus 002 Device 002: ID 04a5:7008 Acer Peripherals Inc. (now BenQ Corp.)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 0924:3d65 Xerox
Bus 001 Device 004: ID 2040:7070 Hauppauge Nova-T Stick 3
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
thnov@mistik:~$ ls -l /dev/usb/lp* /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 2010-05-03 08:46 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 3 2010-05-03 08:46 /dev/bus/usb/001/004
crw-rw-r-- 1 root lp 189, 6 2010-05-03 20:05 /dev/bus/usb/001/007
crw-rw-r-- 1 root root 189, 128 2010-05-03 08:46 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 129 2010-05-03 08:46 /dev/bus/usb/002/002
crw-rw-r-- 1 root root 189, 130 2010-05-03 08:46 /dev/bus/usb/002/003
crw-rw-r-- 1 root root 189, 256 2010-05-03 08:46 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 257 2010-05-03 08:46 /dev/bus/usb/003/002
crw-rw-r-- 1 root root 189, 384 2010-05-03 08:46 /dev/bus/usb/004/001
crw-rw-r-- 1 root root 189, 512 2010-05-03 08:46 /dev/bus/usb/005/001
crw-rw-r-- 1 root root 189, 513 2010-05-03 08:46 /dev/bus/usb/005/002
crw-rw---- 1 root lp 180, 0 2010-05-03 20:05 /dev/usb/lp0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.