Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB printer and new cups
Date: Thu, 20 May 2010 08:23:19
Message-Id: 201005201522.52535.wonko@wonkology.org
In Reply to: Re: [gentoo-user] USB printer and new cups by Mick
1 Mick wrote:
2
3 > On Sunday 16 May 2010 02:56:23 Alex Schuster wrote:
4
5 > > But my main problem is another one: How do I tell CUPS which device
6 > > my printer is? I tried usb:/dev/usb/lp0 (found this notation when
7 > > googling 'usb printer device uri'), but nothing happens when I try
8 > > to print.
9 >
10 > This is the cups driver (in kernel) which ought to pick up your usb
11 > printer and use it without problems. However, according to your logs
12 > ... there seems to be a clash:
13 >
14 > > There is a message in syslog that is being repeated hundreds of
15 > > times: May 15 22:25:55 [kernel] usb 1-2: usbfs: interface 0 claimed
16 > > by usblp while 'usb' sets config #1
17
18 And I just found this:
19
20 May 15 22:17:40 [kernel] usb 1-2: new high speed USB device using ehci_hcd
21 and address 3
22 May 15 22:17:41 [kernel] usblp0: USB Bidirectional printer dev 3 if 0 alt
23 0 proto 2 vid 0x04A9 pid 0x10A5
24 May 15 22:17:41 [kernel] usbcore: registered new interface driver usblp
25 May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 717,
26 in main_ h = HalLpAdmin()
27 May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 686,
28 in __init___ self.addPrinter()
29 May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 700,
30 in addPrinter_ printer.add()
31 May 15 22:17:46 [hal_lpadmin] File "/usr/libexec/hal_lpadmin", line 541,
32 in add_ location=os.uname ()[1])
33 May 15 22:17:46 [hal_lpadmin] IPPError: (1280, 'server-error-internal-
34 error')
35
36 > So, what happens if you build usblp as a module and you modprobe -rv
37 > ubslp? Does cups pick up your printer now?
38
39 I was too busy to try this. And I don't have the printer here right now.
40 But I will try this soon, so thanks.
41
42 > > And now it gets really crazy: In the printer overview I see not only
43 > > the 'iP5200' I just created, but also a 'iP52002' that has the
44 > > device URI 'usb://Canon/iP5200'. What did create this?!
45 > >
46 > > But printing to that does not work either.
47 >
48 > I suspect that this was created by the gutenprint driver that you
49 > installed. I believe that if you resolve the usblp error first then
50 > you'll know if gutenprint is necessary or if it will work. Some
51 > manual tweaking of the ppd file may also be needed to print in higher
52 > resolutions, but let's get it to print first.
53 >
54 > Stop press!
55 >
56 > I just checked again your first post: You are using cups 1.4 which
57 > accesses raw usb devices! Definitely remove usblp (or blacklist it
58 > and reboot if you don't want to recompile your kernel, or can't
59 > modprobe -r) and see if the cups back end picks up your printer on its
60 > own.
61
62 Thanks Mick! I will try again soon, this time on another Gentoo machine,
63 where the printer finally belongs. I just wanted to try it out and to
64 check the printing results. Well, this did not work at all, but at least I
65 know now that it should be supported, while before I was under the
66 impression I had to use a similar driver, and hope for good results.
67
68 Wonko

Replies

Subject Author
Re: [gentoo-user] USB printer and new cups Daniel da Veiga <danieldaveiga@×××××.com>