Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21678 - usb and cups problems
Summary: usb and cups problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-25 14:23 UTC by Voltron Rex
Modified: 2003-07-15 08:14 UTC (History)
0 users

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 Voltron Rex 2003-05-25 14:23:10 UTC
Greetings,

I've having some problems similar to those in Bug 12976. There wasn't an obvious
resolution in that bug...

I'm having trouble getting my usb printer recognized. The printer works on the
same workstation when running under SuSE. I have compiled the kernel with
usb-uchi and printer as modules. From dmesg I see:
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver

Under SuSE dmesg would say all sorts of info about the printer: that it's an HP
usb blah blah, and so on. I don't see any messages in dmesg or /var/log/messages
relating to the usb hub discovering a new device.

I used the cups web interface to configure the printer and, like in Bug 12976,
the device points to /dev/usblp0. There is no such device. Following the advice
from that bug, I ln -s /dev/usb/lp0 /dev/usblp0. Cups acts like this is OK, but
nothing will print. 

Using the instructions from the printing howto at gentoo.org, I run echo "hello
bob" > /dev/usb/lp0; -bash: /dev/usb/lp0: Permission denied

I really don't know what to do at this point. I hope you can help me out. Thanks!

Here's emerge info:
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-ck6 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt encode gif jpeg gnome libg++ mikmod mmx mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
gtkhtml alsa gdbm slang readline arts tetex aalib bonobo svga tcltk java guile
ruby mysql X sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde
motif opengl gphoto2 cdr cups 3dfx acpi dga dvd emacs flash gtk2 kerberos
mozilla pda plotutils samba sse usb xml -gpm -berkdb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -m3dnow
-mmmx -msse"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ffast-math -m3dnow
-mmmx -msse"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 maiar 2003-05-28 04:03:12 UTC
I had the same problem, but after looking around at some Linux USB sites, I decided 
to try enabling usb-ohci in addition to my usb-uhci. And problem solved. 
Comment 2 Voltron Rex 2003-05-31 09:49:11 UTC
Greetings again,

I've gotten my problem fixed. Loading usb-ohci, as maiar@hfx suggested, failed because I don't have one of those sorts of usb hubs. 

What's ultimately fixed the problem is to use gentoo-sources-r5 for my kernel. 
The dmesg now reports it sees the HP printer. Is there something wrong with the usb.c in the ck-6 kernel?

Also I've downloaded the newest hpijs (1.4.1) and installed it--it comes with foomatic-rip and the PPD uses this. I didn't do the foomatic-configuration from the gentoo printing guide. At first I followed the guide but it didn't work. Then I deleted that queue and added a new printer only in cups--after installing the new hpijs. 

Now that it all works, you can close this bug. Thanks.
Comment 3 Thomas Raschbacher gentoo-dev 2003-06-19 04:03:54 UTC
will have a look .. sorry for the delay there was a problem with the mail alias so i didn't get the Bugzilla mails
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-07-15 08:14:10 UTC
everything working...