Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12976 - CUPS and USB printers
Summary: CUPS and USB printers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 11035
  Show dependency tree
 
Reported: 2002-12-31 07:53 UTC by Joseph Carter
Modified: 2003-04-04 01:25 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 Joseph Carter 2002-12-31 07:53:55 UTC
When you select a USB printer via the CUPS web interface, it sets the thing up
to print to /dev/usblp0, which doesn't exist and isn't created by devfs.

Given that Gentoo does not use legacy /dev, it would probably be best to change
this in CUPS so that it uses the proper /dev/usb/lp# rather than add the legacy
symlink to devfsd.
Comment 1 Thomas Raschbacher gentoo-dev 2002-12-31 12:29:10 UTC
sounds strange .. it works here ( i only got an usb printer myself ...)
cups-1.1.18 ?
which gimp-print(-cups) ??
Comment 2 Nate Hill 2002-12-31 22:12:41 UTC
Right, I can confirm this; it happens on my box. However, I just made a smylink
dev/usblp0->/dev/usb/lp0 which works fine - this is probably a low priority; the
ebuild can either change this in cups or can set up it's own symlinks. I've
mainly been having problems with authentication (I get Forbidden errors
everywhere w/ the http front-end).
Comment 3 Thomas Raschbacher gentoo-dev 2003-01-01 04:50:36 UTC
nate: your frontend-problem is because of the default cups config (change the
ServerName in cupsd.conf and try again :)

both: please send me more details about your config
Comment 4 Joseph Carter 2003-01-05 12:46:37 UTC
This bug was seen on my notebook, which uses a USB printer at school, I don't
have a USB printer here at home yet.  In fact, at the moment I don't have any
printer config, so I'll fake it to reproduce the problem:


galen ~ # emrge rsync
galen ~ # emerge net-print/cups
         :
 net-print/cups
    selected: none
   protected: 1.1.18
     omitted: none

galen ~ # rc-update add cupsd default
 * cupsd added to runlevel default...
 * Caching service dependencies...                                        [ ok ]
 * rc-update complete.
galen ~ # /etc/init.d/cupsd start
 * Starting cupsd...

No configuration at all at this point.

Now, go to http://localhost:631, click on admin tasks, login
Click add printer under Printers heading
Fill in name: usbprinter, click continue
Select device: USB printer #1, click continue
HP, continue
HP new deskjet series CUPS v1.1 (en), continue
usbprinter has been added successfully..

Now...

galen ~ # cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.1.18
# Written by cupsd on Sun Jan  5 16:37:58 2003
<DefaultPrinter usbprinter>
DeviceURI usb:/dev/usblp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

This should have "DeviceURI usb:/dev/usb/lp0".  As Nate says, it's possible to
simply add a symlink to devfsd.conf, but the correct solution is to fix CUPS
since /dev/usb/thing is the recommended way to handle USB device nodes even on
non-devfs systems.
Comment 5 Thomas Raschbacher gentoo-dev 2003-01-06 13:57:15 UTC
weird .. it works here..
anyway i'll check on friday or saturday when i get home again 
Comment 6 Thomas Raschbacher gentoo-dev 2003-01-21 08:35:32 UTC
ok .. after a new install (of my sys)
i get that too ..
/me checks
Comment 7 Thomas Raschbacher gentoo-dev 2003-01-21 08:43:17 UTC
found the bug!
there's a missing dep for hotplug ..
i'll add now and commit it..
Comment 8 Thomas Raschbacher gentoo-dev 2003-01-21 08:59:51 UTC
u using 'x86' or '~x86' ?
if 'x86' please emerge hotplug and tell me if it works then ... (i need to know
if it works with stable x86 before i can commit it ..)
Comment 9 Thomas Raschbacher gentoo-dev 2003-01-21 09:59:32 UTC
ok fixed .. should work ..
commiting now ..

P.S.: maybe u got to add usb-uhci and printer to your modules.autoload cuz
hotplug seems to have problems with it..
Comment 10 lone_iguana 2003-02-21 13:37:05 UTC
Well adding the dependency for hotplug may have 'fixed it' but it isn't really a good solution. I  
don't have usb on my computer and I don't want to be installing hotplug. Maybe you could make  
it only depend on hotplug if you have 'usb' set in your USE flags  
 
-note- I tried to reopen this bug but it wouldn't let me 
Comment 11 Thomas Raschbacher gentoo-dev 2003-02-25 09:21:53 UTC
it is ... in ~x86 .. i'll mark it as stable for x86
Comment 12 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:20:22 UTC
db fix
Comment 13 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:25:16 UTC
db fix