cups usblp hangs with Sharp AR5316e printer

Bug #1418987 reported by Damien Ulrich
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

hi all,
Base informations :

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

# uname -a
Linux school 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# dpkg -l cups* | grep ii | awk '{ print $2"\t"$3 }'
cups 1.7.2-0ubuntu1.2
cups-browsed 1.0.52-0ubuntu1.2
cups-client 1.7.2-0ubuntu1.2
cups-common 1.7.2-0ubuntu1.2
cups-core-drivers 1.7.2-0ubuntu1.2
cups-daemon 1.7.2-0ubuntu1.2
cups-filters 1.0.52-0ubuntu1.2
cups-filters-core-drivers 1.0.52-0ubuntu1.2
cups-pdf 2.6.1-9
cups-pk-helper 0.2.5-0ubuntu1
cups-ppdc 1.7.2-0ubuntu1.2
cups-server-common 1.7.2-0ubuntu1.2

# lsusb | grep Sharp
Bus 007 Device 032: ID 04dd:9135 Sharp Corp.

# cat /etc/udev/rules.d/10-usbprinter.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", ATTR{idProduct}=="9135", MODE:="0660", GROUP:="lp"

# modinfo usblp | grep srcversion
srcversion: BD8A318D5C286F1E78768B9

Everytime I try to use usb port on /dev/usb/lp0
with usb_printerid or /usr/lib/cups/backend/usb
The usb connections starts hanging, with in dmesg :

[ 4733.189816] usblp0: removed
[ 4733.195557] usblp: can't set desired altsetting 0 on interface 0
[ 4733.232192] usb 7-1: USB disconnect, device number 30
[ 4733.600097] usb 7-1: new full-speed USB device number 31 using uhci_hcd
[ 4733.809564] usb 7-1: New USB device found, idVendor=04dd, idProduct=9135
[ 4733.809571] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4733.809576] usb 7-1: Product: AR-5316E
[ 4733.809580] usb 7-1: Manufacturer: SHARP
[ 4733.809584] usb 7-1: SerialNumber: 0502080312093024
[ 4733.845699] usblp 7-1:1.0: usblp0: USB Bidirectional printer dev 31 if 0 alt 0 proto 2 vid 0x04DD pid 0x9135
[ 4734.899038] usblp0: removed

but obtaining "Unknow printer"

so I tried with this script to go further without identification :

# cat /usr/lib/cups/backend/usblp0
#! /bin/bash
# Have debug info in /var/log/cups/error_log:
set -x
# Output "device discovery" information on stdout:
if test "$#" = "0"
then echo 'direct usblp0:/dev/usb/lp0 "Unknown" "any USB printer"'
     exit 0
fi
# Have the input at fd0 (stdin) in any case:
if test -n "$6"
then exec <"$6"
fi
# Infinite retries to access the device file:
until cat /dev/null >/dev/usb/lp0
do echo 'INFO: cannot access /dev/usb/lp0 - retry in 30 seconds' 1>&2
   sleep 30
done
echo 'INFO: sending data to /dev/usb/lp0' 1>&2
# Forward the data from stdin to the device file:
if cat - >/dev/usb/lp0
then echo 'INFO:' 1>&2
     exit 0
else echo 'ERROR: failed to send data to /dev/usb/lp0' 1>&2
     exit 1
fi

Configured with the "Sharp AR-M207 PS Foomatic/Postscript "
been told by a Sharp technician that it could be a similar "driver" for it

but no chance, trying to print directly on /dev/usb/lp0 gives no page...

I also tried to blacklist the usblp module, but have seen no effect

I write a bug here, because I think it could be similar to bug #997040
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/997040

PS: It's for a school : need help to free people

description: updated
description: updated
description: updated
Revision history for this message
Damien Ulrich (s4mdf0o1-7) wrote :

Hi
Well it doesn't seem to hang anymore under debian jessie
I guess I will not find a way to make it work while it seems that there's no driver for this printer
sorry for the noise

Changed in cups (Ubuntu):
status: New → Invalid
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.