Page 1 of 1

no bidirectional connection to the printer on debian testing

Posted: Tue Dec 27, 2011 9:02 am
by totomey
Hi,

I have a debian testing machine and a canon ip4000 printer. A couple of days ago turboprint stopped working. I.e., it didn't print. I played around with the settings in the turboprint control center and managed to get it printing again by changing the port from tpu://... to usb://Canon/IP4000?serial=B3E5E7. However, turboprint still permanently shows the printer as "Printer not connected or switched off". Also, when I edit the printer in the turboprint control center there no longer is any tpu port I could choose.
I have tried running the turboprint daemon as root but that hasn't helped.

Could this be related to this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649408 that I also see on my maching or is it something else?

Thorsten

Re: no bidirectional connection to the printer on debian tes

Posted: Mon Jan 02, 2012 3:29 pm
by zedonet
Hello,

thank you for the error report! The bugreport that you mentioned looks a bit different and is probably not related.

Can you please try the following:

From a "Terminal" window, execute

sudo /usr/lib/cups/backend/tpu
( 64bit system: )
sudo /usr/lib64/cups/backend/tpu

and post the output or error message (printer must be attached and switched on).

Re: no bidirectional connection to the printer on debian tes

Posted: Sun Jan 15, 2012 8:54 pm
by totomey
Hi,

sorry for the late reply. I didn't realize that I wouldn't get an automatic email cc on your reply. Anyway, I tried the tpu command and it doesn't give any output at all. The printer is attached and switched on and I can print. However, turboprint still thinks it's not connected. Also (if that is in any way helpful), the Turboprint daemon is running.

thanks for your quick response and regards

Thorsten Meyer

Re: no bidirectional connection to the printer on debian tes

Posted: Sun Feb 12, 2012 9:21 am
by totomey
Hi,

I updated to turboprint 2.24-1 and I solved the gnome-keyring problem I described in my original post (by removing gnome-keyring) but turboprint still thinks my printer is not connected even if it can print to it.

Thorsten

Re: no bidirectional connection to the printer on debian tes

Posted: Sun Feb 12, 2012 2:37 pm
by chalten07
Hello,

I confirm the issue on an debian sid with PIXMA IP4000 ..
Impossible to print => printer appears as "printer unplugged or not connected"
URI is also not tpu:// but usb://

I am on a 64 bits system but /usr/lib64/cups/backend/tpu does not exist !!

If I launch /usr/lib/cups/backend/tpu, I have only a blank output ...

Re: no bidirectional connection to the printer on debian tes

Posted: Mon Feb 13, 2012 10:42 am
by zedonet
Hello,

the reason for the problem has recently been found:

TurboPrint communicates with the printer either via the "lpusb" kernel modul or via "libusb" library.

On the current unstable version of Debian (SID / testing / Aptosid), "lpusb" is missing and "libusb" is only present as version 0.1, which means

- The TurboPrint printer status daemon cannot connect to the printer, TurboPrint Monitor shows the message "printer unplugged or not connected".

- You can print if you use the "usb" printer backend that comes with Debian, but not if you use TurboPrint's "tpu" printer backend.

A solution is to install the package "libusb-1.0".

Re: no bidirectional connection to the printer on debian tes

Posted: Tue Feb 14, 2012 6:57 pm
by chalten07
Hello zedonet,

Thanks for feedback but here on my sid 64 bits, situation concerning libusb is the following :

[root @ master ] aptitude search libusb
p libusb++-0.1-4c2 - userspace C++ USB programming library
p libusb++-dev - userspace C++ USB programming library development files
i libusb-0.1-4 - Bibliothèque de programmation de l'USB en espace utilisateur
i A libusb-1.0-0 - Bibliothèque de programmation de l'USB en espace utilisateur
p libusb-1.0-0-dev - userspace USB programming library development files
p libusb-dev - userspace USB programming library development files
p libusb-java - Java wrapper for libusb
p libusb-java-dbg - debug information for libusb java wrapper
p libusb-java-doc - javadoc documentation for libusb-java
p libusb-java-lib - C part of Java wrapper for libusb
p libusb-ocaml - OCaml bindings to libusb-1.0 (runtime)
v libusb-ocaml-bub08 -
p libusb-ocaml-dev - OCaml bindings to libusb-1.0
v libusb-ocaml-dev-bub08 -
p libusb-ruby - libusb binding for the Ruby language
p libusb-ruby1.8 - libusb binding for Ruby
p libusb-ruby1.9.1 - libusb binding for Ruby
p libusbhid-common - Common files for the USB HID devices FreeBSD library
p libusbip-dev - USB device sharing system over IP network (development files)
p libusbip0 - USB device sharing system over IP network (shared library)
p libusbmuxd-dev - USB multiplexor daemon for iPhone and iPod Touch devices - devel
i A libusbmuxd1 - USB multiplexor daemon for iPhone and iPod Touch devices - library
p libusbmuxd1-dbg - USB multiplexor daemon for iPhone and iPod Touch devices - debug
p libusbprog-dev - Development files for libusbprog
p libusbprog0 - Library for programming the USBprog hardware
p libusbtc08-1 - Hardware interface library for PicoTech USB TC08 Thermocouple sensor
p libusbtc08-dev

So I have libusb-1.0-0 and lib-0.1-4 ...

Do I need to do something to make "aware" TurboPrint of libusb-1.0-0 ?

Reinstallation ??

Thanks for feedback

Re: no bidirectional connection to the printer on debian tes

Posted: Tue Feb 14, 2012 7:10 pm
by chalten07
It's seems that I have found the solution by googling one of your old support post :D :D

Module "usblp" was not loaded => so modprobe usblp and now I have tpu:// instead of usb://

Thanks for support

Re: no bidirectional connection to the printer on debian tes

Posted: Wed Feb 15, 2012 9:21 am
by zedonet
Thanks for the information! After "modprobe usblp" the printer must be disconnected and reconnected so that it is recognized.

Do you know how to make sure that usblp is loaded automatically after a reboot?

Re: no bidirectional connection to the printer on debian tes

Posted: Wed Feb 15, 2012 11:27 am
by chalten07
Hello Zedonet,

Not sure if it"s the debian way but I have added a line with usblp in /etc/modules ...
It should do the job :D