[cups] troubles with usb printer (hp1300) / gentoo linux / cups 1.7.0

Fabio Coatti fabio.coatti at gmail.com
Sun Dec 29 04:18:58 PST 2013

I'm having a very hard time trying to make an hp1300 working (usb
cups is unable to find printer, however
 running /usr/libexec/cups/backend/usb the printer is shown:

DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 67 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=20
DEBUG2: Printer found with device ID:
LaserJet 1300;CLS:PRINTER;DES:Hewlett-Packard LaserJet
1300;MEM:72MB;COMMENT:RES=1200x1; Device URI:
direct usb://HP/LaserJet%201300?serial=00CNCD481547 "HP LaserJet 1300" "HP
LaserJet 1300"
LaserJet 1300;CLS:PRINTER;DES:Hewlett-Packard LaserJet
1300;MEM:72MB;COMMENT:RES=1200x1;" ""

A printer is found also running

direct hp:/usb/hp_LaserJet_1300?serial=00CNCD481547 "HP LaserJet 1300" "HP
LaserJet 1300 USB 00CNCD481547 HPLIP" "MFG:Hewlett-Packard;MDL:hp LaserJet
1300;CLS:PRINTER;DES:hp LaserJet 1300;SN:00CNCD481547;"

hplip device manager is able to find and install the printer (that is shown
also in cups web interface then)

Interesting message in error_log:

D [29/Dec/2013:13:13:59 +0100] [Job 44] PageTop = 829.4, PageBottom = 12.0
D [29/Dec/2013:13:13:59 +0100] [Job 44] PageWidth = 595.0, PageLength =
D [29/Dec/2013:13:13:59 +0100] [Job 44] STATE: +connecting-to-device
D [29/Dec/2013:13:13:59 +0100] cupsdMarkDirty(---J-)
D [29/Dec/2013:13:13:59 +0100] cupsdSetBusyState: newbusy="Dirty files",
busy="Printing jobs and dirty files"
D [29/Dec/2013:13:13:59 +0100] Discarding unused printer-state-changed
D [29/Dec/2013:13:13:59 +0100] [Job 44] prnt/backend/hp.c 745: ERROR: open
device failed stat=12: hp:/usb/hp_LaserJet_1300?serial=00CNCD481547
D [29/Dec/2013:13:13:59 +0100] [Job 44] PID 19238
(/usr/libexec/cups/backend/hp) stopped with status 1.
D [29/Dec/2013:13:13:59 +0100] [Job 44] Wrote 1 pages...
D [29/Dec/2013:13:13:59 +0100] [Job 44] PID 19237
(/usr/libexec/cups/filter/pstops) exited with no errors.
I [29/Dec/2013:13:13:59 +0100] [Job 44] Backend returned status 1 (failed)
D [29/Dec/2013:13:13:59 +0100] Discarding unused job-state-changed event...
I [29/Dec/2013:13:13:59 +0100] [Job 44] Printer stopped due to backend
errors; please consult the error_log file for details.

I'm using libusb access (libusbx), not usblp kernel module.

Linux kernel 3.12.6
cups 1.7.0
hplip 3.13.11
libusbx 1.0.17

The printer works just fine when connected to a mac

I've tried reinstallation, verified configuration and so on. Network
(remote) printers works just fine on the same machine, so it seems a usb

Please let me know if you have any hint, many thanks.


More information about the cups mailing list