Tuesday, 8 November 2011

11.10 USB Printer Fail in Kernel

This is the kind of nonsense I thought we'd left behind around version 7.10. Did nobody regression test final 11.10 with some USB printers? There's whole printer families this kernel doesn't work with, now we're all back grubbing around (no pun intended) at command lines trying to get printers to work!!

We spend years evangelising about Linux only to get another Canonical ball-drop on hardware, setting back the cause yet again, just as we think we can get out of the ghetto of minority operating systems.


Everyone do your duty, get on Launchpad, raise those bugs and get this sorted. RC

[UPDATE: it appears to be my PAE kernel extensions and those on 64-bit having this problem. I just plugged the printer into the old Compaq Evo on 32-bit, meaning to run the Live-CD to print, got distracted and found it prints straight out of 11.10!]

Bug report: HP Laser Jet 1320 USB fails to print on 11.10

    Ubuntu
    “cups” package
    Bugs
    Bug #883093

Reported by Robin Catling a moment ago
Thank you! Bug #883093 created.
0 out of 4 heat flames
This bug affects you Edit
Affects     Status     Importance     Assigned to     Milestone     cups (Ubuntu)    
New   Undecided      Unassigned
   
Also affects project  Also affects distribution

Bug Description

HP Laser Jet 1320 on USB cable connection fails to print from 11.10. Printer previously working in all versions back to 7.04.

Removed and re-added printer. Removed, re-booted and re-added. Fails to print.
Removed default hplip, downloaded and installed hplip-3.11.10 from HP. Fails to print.
Printer is detected but 11.10 fails to pass any jobs across USB interface.
CUPS PDF output unaffected.
Printing via 11.04 Live CD works as normal!!

Output of each step of https://wiki.ubuntu.com/DebuggingPrintingProblems below:
##
lsmod | grep usb

tail -f /var/log/syslog

Oct 28 14:17:19 d6400 kernel: [16883.872060] usb 4-1: new full speed USB device number 3 using uhci_hcd
Oct 28 14:17:20 d6400 mtp-probe: checking bus 4, device 3: "/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1"
Oct 28 14:17:20 d6400 mtp-probe: bus: 4, device: 3 was not an MTP device
Oct 28 14:17:20 d6400 udev-configure-printer: add /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0
Oct 28 14:17:20 d6400 udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1d.2/usb4/4-1
Oct 28 14:17:20 d6400 udev-configure-printer: Device vendor/product is 03F0:1D17
Oct 28 14:17:20 d6400 udev-configure-printer: MFG:Hewlett-Packard MDL:hp LaserJet 1320 series SERN:- serial:00CNHW628HMQ
Oct 28 14:17:21 d6400 udev-configure-printer: no corresponding CUPS device found
Oct 28 14:17:21 d6400 kernel: [16885.272259] usb 4-1: usbfs: process 7543 (usb) did not claim interface 1 before use

##
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 03f0:1d17 Hewlett-Packard LaserJet 1320

##
ls -l /dev/usb/lp* /dev/bus/usb/*/*
ls: cannot access /dev/usb/lp*: No such file or directory
crw-rw-r-- 1 root root 189, 0 2011-10-26 23:02 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 128 2011-10-26 23:02 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 256 2011-10-26 23:02 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 384 2011-10-26 23:02 /dev/bus/usb/004/001
crw-rw-r--+ 1 root lp 189, 386 2011-10-28 14:17 /dev/bus/usb/004/003
crw-rw-r-- 1 root root 189, 512 2011-10-26 23:02 /dev/bus/usb/005/001

##

sudo usb_printerid /dev/usb/lp0

Error: No such file or directory: can't open '/dev/usb/lp0'
robin@d6400:~$ sudo usb_printerid /dev/usb/lp1
Error: No such file or directory: can't open '/dev/usb/lp1'

##

hp-info -i

HP Linux Imaging and Printing System (ver. 3.11.10)
Device Information Utility ver. 5.2

Using device: hp:/usb/hp_LaserJet_1320_series?serial=00CNHW628HMQ

hp:/usb/hp_LaserJet_1320_series?serial=00CNHW628HMQ

Device Parameters (dynamic data):
  Parameter Value(s)
  ---------------------------- ----------------------------------------------------------
   cups-printers ['hp_LaserJet_1320', 'hp_LaserJet_1320_NEW']
  cups-uri hp:/usb/hp_LaserJet_1320_series?serial=00CNHW628HMQ
  dev-file
  device-state 1
  device-uri hp:/usb/hp_LaserJet_1320_series?serial=00CNHW628HMQ
  deviceid MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCL,POSTSCRIPT,PC
##

hp-makeuri 004:003

HP Linux Imaging and Printing System (ver. 3.11.10)
Device URI Creation Utility ver. 5.0

CUPS URI: hp:/usb/hp_LaserJet_1320_series?serial=00CNHW628HMQ

Done.

##

lpinfo -v
network lpd
network ipp
network http
file cups-pdf:/