Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220943 - cups-1.3.7-r1 doesn't find/detects connected and present (e.g. sysfs/lsusb) usb printers
Summary: cups-1.3.7-r1 doesn't find/detects connected and present (e.g. sysfs/lsusb) u...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 14:43 UTC by Florian Manschwetus
Modified: 2012-01-15 17:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Manschwetus 2008-05-08 14:43:17 UTC
Today i tried to print directly from my notebook to printer so i pushed in the cable and send the printjob to the printer e configured month ago but nothing happens, the webinterface says the job is in queue and active.
I have no idea what is going on. I can't reinstall the printer because i can't select usb printer. The cups log doesn't show some special.

Reproducible: Always
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2008-06-26 14:16:46 UTC
Please tell us what printer and driver you use, attach the output of an emerge --info and also the output of:
# ls -l /dev/usb/lp0
/dev/usb/lp0 has to be owned by root:lp, if it's not you have to find out which udev rule sets the wrong permissions.
Comment 2 Dragos Delcea 2008-08-07 07:56:57 UTC
I have the same problem as the user below. After about 3 months gap I did an update, only to find out that the printer isn't working afterwords: HP PhotoSmart C3180 (I'm using hplip).
The first suspect was a faulty hplip (it has happened before), but after updating to latest unstable (2.8.6b) and doing a lot of remove/readd queue, it still doesn't work, so I now turned to cups/OS. User is member of "lp" group, /dev/usb/lp0 has the right permissions, but the job simply sits in the queue and cups gives me no error (i see only INFO messages in error log; the only thing that I can see in the (system) log is:
---
Aug  7 10:29:08 localhost Photosmart_C3100_series?serial=CN78AC80WN04P9: prnt/backend/hp.c 675: INFO: open device failed; will retry in 30 seconds...
Aug  7 10:29:38 localhost Photosmart_C3100_series?serial=CN78AC80WN04P9: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Aug  7 10:29:38 localhost Photosmart_C3100_series?serial=CN78AC80WN04P9: io/hpmud/musb.c 603: invalid product id string ret=-1
Aug  7 10:29:38 localhost Photosmart_C3100_series?serial=CN78AC80WN04P9: io/hpmud/musb.c 1058: unable to open hp:/usb/Photosmart_C3100_series?serial=CN78AC80WN04P9
---
the funny part is that when that happens, /dev/usb/ directory dissapears (along with the lp0 char dev that was there). I have this line in kernel log buffer: "usblp0: removed" that hints at missing /dev/usb/lp0. I have to "rmmod usblp"; "modprobe usblp" to make the /dev/usb/lp0 node come back, but upon trying to access the printer in order to print the job cups/hplip makes it go away again

below is a emerge --info from the affected box:

zeus ~ # emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Pentium III (Katmai)
Timestamp of tree: Tue, 05 Aug 2008 18:34:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo"
LC_ALL="ro_RO.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="ro en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa berkdb bonobo bzip2 cdr crypt cups dbus dri gdbm gtk hal imagemagick imlib ithreads jpeg kde kdehiddenvisibility lcms lm_sensors mime mmap mmx mmx2 mng ncurses nls nptl opengl pam python scanner sse ssl threads unicode usb x86 xml xprint zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm asym copy alaw dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ro en" USERLAND="GNU" VIDEO_CARDS="mga vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

As I had a pretty big gap in updating, the last update brought me new kernel, udev, cups (I was on 1.2.something before) and hplip.
Comment 3 Carlos Cordoba 2008-10-23 16:46:11 UTC
I've been fighting with a problem like this for hours. It seems like the culprit is 70-hpmud.rules from hplip. It needs to be higher (e.g 71-hpmud.rules) and everything will go well.

Please fix this extremely annoying and hard to debug problem

Thanks
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-06-01 22:36:28 UTC
@Florian Manschwetus: Sorry we cannot do anything about your problem since your report misses a lot required information.

@Carlos Cordoba: Is this still a problem with current cups?
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2012-01-15 17:50:13 UTC
No response, and in addition cups-1.3 is now gone.