Package: libinklevel5
Version: 0.8.0-1.1+b1
Severity: serious
libinklevel requires /dev/usb/lp? or /dev/usblp? for USB printers.
Otherwise, it returns DEV_USB_LP_INACCESSIBLE:
case DEV_USB_LP_INACCESSIBLE:
printf("Could not access '/dev/usb/lp%d' or '/dev/usblp%d'.\n",
portnumber, portnumber);
break;
get_device_id() contains:
if (port == USB) {
sprintf(device_file1, "/dev/usb/lp%d", portnumber);
sprintf(device_file2, "/dev/usblp%d", portnumber);
fd = open(device_file1, O_RDONLY);
if (fd == -1) {
fd = open(device_file2, O_RDONLY);
}
if (fd == -1) {
return DEV_USB_LP_INACCESSIBLE;
}
}
Therefore, polling ink levels on USB printers fails if the usblp LKM is
not loaded:
$ ink -p usb
Could not access '/dev/usb/lp0' or '/dev/usblp0'.
Could not get ink level.
chealer@vinci:~$
Both ink and Qink fail with USB printers. qink just complains "Printer
error No printers detected on this system". Launching it as root won't
help. However, printing works...
usblp used to be loaded when a USB printer was plugged in. usblp is now
blacklisted by cups, since CUPS switched from usblp to libusb:
Drop usb-backend-both-usblp-and-libusb.dpatch. It's causing crashes, and
upstream does not want it either. Instead, add a blacklist file
debian/local/blacklist-cups-usblp.patch and install it into
/etc/modprobe.d/; that way, we don't require kernels to disable usblp, and
allow other spoolers than cups to work.
http://packages.debian.org/changelogs/pool/main/c/cups/current/changelog#version1.4.6-8
# cat /etc/modprobe.d/blacklist-cups-usblp.conf
# cups talks to the raw USB devices, so we need to blacklist usblp to
avoid
# grabbing them
blacklist usblp
root@vinci:/etc#
A workaround is to purge cups, or to manually load usblp.
This means that ink and Qink won't just work for the vast majority of
printers.
--- System information. ---
Architecture: i386
Kernel: Linux 3.0.0-2-amd64
Debian Release: wheezy/sid
990 testing security.debian.org
990 testing ftp.ca.debian.org
500 unstable ftp.ca.debian.org
1 experimental ftp.ca.debian.org
--- Package information. ---
Depends (Version) | Installed
============================-+-===========
libc6 (>= 2.3) | 2.13-21
libieee1284-3 | 0.2.11-10
Package's Recommends field is empty.
Package's Suggests field is empty.
--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org