067b:2305 canon bj-200 has stopped printing

Bug #938640 reported by Joe Aztec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Have recently revived my old Canon BJ-200 printer. Bought a USB to Parallel cable, configured the printer in CUPS, printed a couple of pages. Thought Ubuntu was fantastic to be so flexible to allow easy printing!!. Some days later tried to print again but cannot get printer to produce anything at all. Very frustrating after such a great start.

Here is the output from /var/log/messages when I unplug and reconnect the USB cable:

Feb 22 23:53:51 ianl-lenovo kernel: [ 3847.640470] usblp0: removed
Feb 22 23:53:57 ianl-lenovo kernel: [ 3852.837045] usb 3-1: new full speed USB device using uhci_hcd and address 2
Feb 22 23:53:57 ianl-lenovo kernel: [ 3853.124070] usb 3-1: new full speed USB device using uhci_hcd and address 3
Feb 22 23:53:57 ianl-lenovo kernel: [ 3853.350322] usb 3-1: configuration #1 chosen from 1 choice
Feb 22 23:53:57 ianl-lenovo kernel: [ 3853.356297] usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Feb 22 23:53:57 ianl-lenovo kernel: [ 3853.382099] usblp0: nonzero read bulk status received: -84

Here is the entry from lsusb:

Bus 003 Device 003: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: cups 1.4.3-1ubuntu1.5
ProcVersionSignature: Ubuntu 2.6.32-38.83-generic 2.6.32.52+drm33.21
Uname: Linux 2.6.32-38-generic i686
Architecture: i386
Date: Wed Feb 22 23:43:22 2012
Lpstat:
 device for -5400-Series: usb://Lexmark/5400%20Series
 device for Canon-BJ-200: parallel:/dev/usb/lp0
MachineType: LENOVO 0769BLG
Papersize: a4
PpdFiles:
 -5400-Series: Lexmark 5000 Foomatic/lx5000 (recommended)
 Canon-BJ-200: Canon BJ-200 Foomatic/bj200 (recommended)
ProcCmdLine: root=UUID=d10f6f0e-54a3-4189-b921-e2b796cada5a ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/ksh
SourcePackage: cups
dmi.bios.date: 06/11/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 68ET37WW
dmi.board.name: IEL10
dmi.board.vendor: LENOVO
dmi.board.version: REFERENCE
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnLENOVO:bvr68ET37WW:bd06/11/2008:svnLENOVO:pn0769BLG:pvr3000N200:rvnLENOVO:rnIEL10:rvrREFERENCE:cvnNoEnclosure:ct10:cvrN/A:
dmi.product.name: 0769BLG
dmi.product.version: 3000 N200
dmi.sys.vendor: LENOVO

Revision history for this message
Joe Aztec (aztecjoe) wrote :
Revision history for this message
Joe Aztec (aztecjoe) wrote :

Captured output from CUPS printer trouble shooter dialogue. till no printing happening.

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

Please follow the instructions in the section "USB printer" on https://wiki.ubuntu.com/DebuggingPrintingProblems.

Also run the commands (with printer connected and turned on):

modprobe usblp
usb_printerid /dev/usb/lp0
usb_printerid /dev/usb/lp1

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Joe Aztec (aztecjoe) wrote :

Have attached results (see attachment file 20120228.debug.report.txt). Appreciate your help.

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

We have worked on the problem of USB->Parallel adapters not providing a valid device ID and therefore not recognized by CUPS in the recent months. The upcoming Precise (12.04, due end of April) and Oneiric with my PPA (https://launchpad.net/~till-kamppeter/+archive/ppa) contain this work. You should try them at least as live boot (Precise as daily live CD or end of next week as beta1).

Quick workaround for your system:

Try to add a line

usblp

to your /etc/modules file. This should load the usblp kernel module (which provides /dev/usb/lp0) on boot.

To test immediately without rebooting, run

sudo modprobe usblp

and try to print.

Revision history for this message
Joe Aztec (aztecjoe) wrote :

tried the quick workaround. Have added line usblp to /etc/modules and rebooted (just to be sure ;-). I get the following warning in /var/log/messages when plug in cable:

ianl:/home/ianl> tail -f /var/log/messages
Mar 1 08:25:40 ianl-lenovo kernel: [ 1181.552076] usb 7-1: new full speed USB device using uhci_hcd and address 2
Mar 1 08:25:40 ianl-lenovo kernel: [ 1181.820076] usb 7-1: new full speed USB device using uhci_hcd and address 3
Mar 1 08:25:41 ianl-lenovo kernel: [ 1182.116052] usb 7-1: new full speed USB device using uhci_hcd and address 4
Mar 1 08:25:41 ianl-lenovo kernel: [ 1182.276079] usb 7-1: new full speed USB device using uhci_hcd and address 5
Mar 1 08:26:01 ianl-lenovo kernel: [ 1202.728070] usb 7-1: new full speed USB device using uhci_hcd and address 6
Mar 1 08:26:01 ianl-lenovo kernel: [ 1202.980051] usb 7-1: new full speed USB device using uhci_hcd and address 7
Mar 1 08:26:02 ianl-lenovo kernel: [ 1203.276068] usb 7-1: new full speed USB device using uhci_hcd and address 8
Mar 1 08:26:02 ianl-lenovo kernel: [ 1203.411315] usb 7-1: configuration #1 chosen from 1 choice
Mar 1 08:26:02 ianl-lenovo kernel: [ 1203.417249] usblp0: USB Bidirectional printer dev 8 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Mar 1 08:26:02 ianl-lenovo kernel: [ 1203.459098] usblp0: nonzero read bulk status received: -84

Is the "nonzero read bulk status " message a issue?

ianl:/home/ianl> lsusb | grep Parallel
Bus 007 Device 008: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

ianl:/home/ianl> ls -la /dev/usb/lp0 /dev/usblp0
lrwxrwxrwx 1 root root 7 2012-03-01 08:26 /dev/usblp0 -> usb/lp0
crw-rw---- 1 root lp 180, 0 2012-03-01 08:26 /dev/usb/lp0

Are the permissions correct?

When I attempt to print using:
ianl:/home/ianl> echo fred | lp
request id is Canon-BJ-200-93 (0 file(s))

A new line is added to messages log:
Mar 1 08:36:57 ianl-lenovo kernel: [ 1858.948155] usblp0: nonzero write bulk status received: -71

and nothing is printed :-(

If you still suggest using your PPA which packages are required to test this issue (there are 11 updates)?

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

The permissions and ownerships of /dev/usb/lp0 are correct. Permissions and ownerships of symlinks have no meaning, always the permissions and ownerships of the physical file count.

It seems that there is a problem with printing through the usblp kernel module. This would be a kernel problem.

Please check whether the PPA solves the problem. Please update all the 11 files you get offered. My PPA carries only printing-related packages and for Oneiric I have only uploaded cups and cups-filters AFAIR. The packages are all the binary packages of the source packages cups and cups-filters.

After installing the PPA unplug the adapter cable from the computer's USB and plug it back in again while the printer is connected to the parallel end and turned on. Do you get a print queue auto-created now or at least system-config-printer popping up and asking you for manual make/model selection? Does the command

sudo /usr/lib/cups/backend/usb

detect a USB printer, your adapter cable, an unknown USB printer, ...? This is your BJ-200. If no working print queue gets auto-generated, open system-config-printer, click "Add", choose the local USB printer entry (BJ-200, your adapter cable, or Unknown) and manually choose manufacturer and model if needed.

Revision history for this message
Joe Aztec (aztecjoe) wrote :

Installed all 11 files offered (rebooted). Unplugged the cable. Replugged with no effect - nothing popped up and print jobs did not complete. Deleted entry in System-Admin-Printing-localhost and replugged cable. Again nothing popped up and no queue auto generated. Attempted to Add printer but nothing detected by New Printer option so I am left with manually entering URI of parallel:/dev/usb/lp0 and then choosing make and model. Again no luck printing anything.

ianl:/home/ianl> sudo /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=7
DEBUG: usb_find_devices=13
Memory fault

The memory fault did not appear the first couple of times I ran utility. Tried to configure the Printer though the Browser interface (http://localhost:631/admin/) but no USB printer detected:
Local Printers: SCSI Printer
                               HP Printer (HPLIP)
                               HP Fax (HPLIP)

Revision history for this message
Joe Aztec (aztecjoe) wrote :

Just tested after another reboot and found the following output:
ianl:/home/ianl> lsusb|grep -i paral
Bus 003 Device 008: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

ianl:/home/ianl> sudo usb_printerid /dev/usb/lp0
Error: Input/output error: GET_DEVICE_ID on '/dev/usb/lp0'

ianl:/home/ianl> sudo /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=7
DEBUG: usb_find_devices=13
Memory fault

Add New printer does not detect any USB type printer, so again add UPI parallel:/dev/usb/lp0 but still no printing happening. Not sure what to do next - do I get another USB to Parallel cable? Is it a cable issue - do you think?

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

Can you run

sudo /usr/lib/cups/backend/usb

with the USB->Parallel adapter disconnected from your computer?

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

Can you also run

sudo strace /usr/lib/cups/backend/usb > log.txt 2>&1

with the USB->Parallel adapter connected and the printer turned on?

Revision history for this message
Joe Aztec (aztecjoe) wrote :

Here is output with USB>Parallel disconnected:

> sudo /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=7
DEBUG: usb_find_devices=12

log.txt attached

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

Did you really use the /usr/lib/cups/backend/usb version which has given the "Memory fault"?

Please run Oneiric with all updates from my PPA. There run

sudo /usr/lib/cups/backend/usb

once with the printer connected and turned on and once with the USB->Parallel adapter disconnected from the computer.

In which situation do you get a "Memory fault"?

In this situation run

sudo strace /usr/lib/cups/backend/usb > log.txt 2>&1

Post all screen output and attach log.txt.

Revision history for this message
Joe Aztec (aztecjoe) wrote :

Not sure if I had applied your PPA updates when I got the "Memory fault".

I am running Lucid and I have applied all updates from your PPA.

Here is the before and after connecting USB->Parallel adapter.

Before:
ianl:/home/ianl> ls -l /usr/lib/cups/backend/usb
-r-xr--r-- 2 root root 38180 2011-09-13 00:41 /usr/lib/cups/backend/usb
ianl:/home/ianl> sudo /usr/lib/cups/backend/usb
[sudo] password for ianl:
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=7
DEBUG: usb_find_devices=12

After:
ianl:/home/ianl> sudo /usr/lib/cups/backend/usb
DEBUG: list_devices_libusb
DEBUG: usb_find_busses=7
DEBUG: usb_find_devices=13
ianl:/home/ianl>

I have a Live CD of Oneiric (11.10). Can I apply your PPA changes while running the Lice CD version?

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

Note that my fixes for USB->Parallel adapters are ONLY available in Oneiric+PPA and Precise.

So you have to boot Oneiric and apply all Oneiric updates from my PPA, this works in the live session. Then try the things which I asked you for in previous comments: Plug the adapter to the computer's USB with the printer turned on and connected to the parallel end, see whether you get a print queue automatically, system-config-printer popping up for manual model selection, or whether you can create a queue with system-config-printer. Run

sudo /usr/lib/cups/backend/usb

and see if it shows an entry for your printer, if it crashes, run it again with the adapter disconnected. Run

sudo strace /usr/lib/cups/backend/usb > log.txt 2>&1

and attach log.txt if the usb backend in your Oneiric session crashes.

Revision history for this message
Joe Aztec (aztecjoe) wrote :

I have a netbook running Oneiric, applied all Oneiric updates from your PPA.

Plugged USB adapter with printer on. No auto-detect so I manually configured printer but still no joy :-(

ianl@20gb-901:~$ sudo /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=9
direct usb://Unknown/Printer "Unknown" "Unknown" "" ""

Here is the syslog when unplug adapter at 14:40:47 and plug in at 14:41:00 :

Mar 2 14:40:47 20gb-901 kernel: [ 1007.792772] usblp0: removed
Mar 2 14:40:47 20gb-901 udev-configure-printer: remove /devices/pci0000:00/0000:00:1d.1/usb3/3-2
Mar 2 14:41:00 20gb-901 kernel: [ 1020.680225] usb 2-2: new full speed USB device number 2 using uhci_hcd
Mar 2 14:41:01 20gb-901 mtp-probe: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2"
Mar 2 14:41:01 20gb-901 kernel: [ 1020.883540] usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Mar 2 14:41:01 20gb-901 mtp-probe: bus: 2, device: 2 was not an MTP device
Mar 2 14:41:01 20gb-901 kernel: [ 1021.029314] usb 2-2: usbfs: USBDEVFS_CONTROL failed cmd mtp-probe rqt 128 rq 6 len 1024 ret -71
Mar 2 14:41:01 20gb-901 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
Mar 2 14:41:01 20gb-901 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-2
Mar 2 14:41:01 20gb-901 udev-configure-printer: Device vendor/product is 067B:2305
Mar 2 14:41:01 20gb-901 udev-configure-printer: failed to claim interface
Mar 2 14:41:01 20gb-901 udev-configure-printer: failed to claim interface
Mar 2 14:41:01 20gb-901 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0
Mar 2 14:41:01 20gb-901 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-2
Mar 2 14:43:53 20gb-901 kernel: [ 1193.587001] usblp0: removed
Mar 2 14:43:53 20gb-901 kernel: [ 1193.597743] usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
Mar 2 14:43:53 20gb-901 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0
Mar 2 14:43:53 20gb-901 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-2

Nothing crashed so did not do trace.

Here is output after unplug adapter:

ianl@20gb-901:~$ sudo /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=8

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

Continuing in the Oneiric live session with all PPA updates installed.

Can you run the commands (printer connected and turned on, second command only if you are using A4-sized paper):

lpadmin -p test -E -v usb://Unknown/Printer -m foomatic-db-compressed-ppds:0/ppd/foomatic-ppd/Canon-BJ-200-bj200.ppd
lpadmin -p test -o PageSize=A4

Can you print on the printer "test" now?

If you cannot print, follow the instructions in "CUPS error_log" on https://wiki.ubuntu.com/DebuggingPrintingProblems.

Start system-config-printer, click the "Add" button. Under the detected local printers there should be an "Unknown" printer. Choose this and choose "Canon" and "BJ-200" on the following screens. Complete the wizard and try to print. Does this work?

If you still cannot print, follow the instructions in "CUPS error_log" on https://wiki.ubuntu.com/DebuggingPrintingProblems again.

Download the live CD of Ubuntu Precise (12.04 LTS) beta 1 which got published today and boot this CD. You do not need to add a PPA, but do all updates by running the commands

sudo apt-get update
sudo apt-get upgrade

Then repeat my instructions of this comment.

Revision history for this message
Joe Aztec (aztecjoe) wrote :

Apologies for delay in replying. I have been cycle touring in Tasmania. Thanks for your assistance to date. I have purchased a $40 laser printer (Brother HL-2132) which works adequately under Linux CUPS (better under WinXP). Do you think it worthwhile to continue bug testing after I have upgraded to 12.04 LTS?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cups (Ubuntu) because there has been no activity for 60 days.]

Changed in cups (Ubuntu):
status: Incomplete → Expired
penalvch (penalvch)
summary: - canon bj-200 has stopped printing
+ 067b:2305 canon bj-200 has stopped printing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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