Turboprint problems on Debian Sid ... again

Linux distribution specific questions
Post Reply
samoht
Posts: 6
Joined: Wed Sep 30, 2009 10:08 am

Turboprint problems on Debian Sid ... again

Post by samoht »

On my machine:
Debian Sid, fully upgraded

Code: Select all

# apt-cache policy cups turboprint
cups:
  Installiert:           1.5.3-1
  Installationskandidat: 1.5.3-1
  Versionstabelle:
 *** 1.5.3-1 0
        500 http://ftp.de.debian.org/debian/ testing/main amd64 Packages
        500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
turboprint:
  Installiert:           2.20-1
  Installationskandidat: 2.20-1
  Versionstabelle:
 *** 2.20-1 0
        100 /var/lib/dpkg/status
Still printing, but
- message "not connected"
- no ink status in control panel

- tpu backend not functional/accessible when configuring/modifying printer

Code: Select all

# /usr/lib/cups/backend/tpu
# /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=12
direct usb://HP/DESKJET%20970C?serial=ES9AP111KCJQ "HP DESKJET 970C" "HP DESKJET 970C" "MFG:HEWLETT-PACKARD;MDL:DESKJET 970C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 970C;SERN:ES9AP111KCJQ;VSTATUS:$HB0$NC0,ff,DN,IDLE,CUT,K0,C0,DP,NR,KP088,CP075;VP:0800,FL,B0;VJ:                    ;" ""
I assume, that is due to recent changes in Debian's cups package:
The "tpu" backend doesn't work because the "usblp" kernel module is missing ... again.
http://packages.debian.org/changelogs/p ... /changelog:

Code: Select all

cups (1.5.3-1) unstable; urgency=low

   [ Till Kamppeter ]
   * New upstream release
     ...
      - USB backend based on the maintained libusb 1.0.x with support for
        bi-directional communication
     ...
   * debian/patches/usb-backend-busy-loop-fix.patch: Correct loops to repeat
     claiming interfaces on USB devices when they are busy. Before, hitting busy
     state made the device opening function error out without comment
     (LP: #987485).
   * debian/patches/usb-backend-detach-usblp-earlier-crash-guards.patch: Protect
     against crashes by checking error codes of libusb functions (LP: #997040)
     and detach usblp kernel module in an earlier stage when opening a device
     (LP: #987485, LP: #997040).
   * debian/patches/usb-backend-initialize-usblp-attached-state.patch: Initialize
     usblp_attached field in printer data structure to assure that detaching
     and re-attaching the usblp kernel module is always done correctly
     (LP: #902535, LP: #959676, LP: #960666, LP: #987485,
     LP: #995111, LP: #997040, LP: #1000253, LP: #1001028).
     ...
   * debian/local/blacklist-cups-usblp.conf, debian/cups.postinst,
     debian/cups.install: Blacklist the "usblp" kernel module again. We have
     now a full-featured USB backend based on the maintained libusb 1.0.x
     and so we can acess printers always through the raw USB devices making
     the module deprecated. Detaching the kernel module for each access causes
     a lot of problems: LP: #902535, LP: #959676, LP: #960666, LP: #987485,
     LP: #995111, LP: #997040, LP: #1000253, LP: #1001028.
     ...
   [ Martin Pitt ]
   * debian/cups.{preinst,postinst,postrm}: Drop the removal of obsolete
     /etc/modprobe.d/blacklist-cups-usblp.conf conffile, as this file is
     reintroduced now.

 -- Martin Pitt <mpitt@debian.org>  Wed, 23 May 2012 14:31:36 +0200
After configuring the usb backend the connection and ink status are back in control panel.
Can you recommend this workaround?

Greetings
Tom
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Re: Turboprint problems on Debian Sid ... again

Post by zedonet »

Hello,

TurboPrint works either with the usblp module or via the libusb-1.x library (if usblp not present).
Which version of TurboPrint are you using? Older versions of TurboPrint cannot find the libusb-1.x libs on some new systems, e.g. Ubuntu 12.04 - TurboPrint 2.25 has updated lib paths.
Is libusb-1.x installed on your system?
samoht
Posts: 6
Joined: Wed Sep 30, 2009 10:08 am

Re: Turboprint problems on Debian Sid ... again

Post by samoht »

Hello zedonet,

thanks for clarification.
Here are the versions:

Code: Select all

# apt-cache policy turboprint libusb-1.0-0
turboprint:
  Installiert:           2.20-1
...
libusb-1.0-0:
  Installiert:           2:1.0.11-1
...
Is it necessary to upgrade turboprint or does exist a workaround?
Greetings
Tom
Post Reply