usblp Kernel module needs to be removed and /dev/bus/usb/*/* made accessible for USB printers to work with CUPS 1.4.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Karmic |
Fix Released
|
High
|
Unassigned | ||
udev (Ubuntu) |
Fix Released
|
Wishlist
|
Martin Pitt | ||
Karmic |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: cups
As of updates this morning, my local USB connected Epson Stylus C66 is no longer found by Ubuntu Karmic Alpha. It worked before, and the driver was still installed, but even when plugged in:
$ lsusb
...
Bus 008 Device 003: ID 04b8:0005 Seiko Epson Corp. Stylus D88+
...
I was told that the printer is offline or disconnected. I deleted the printer from System>
To reproduce, just plug in the local printer, turn it on, then try to add a new printer in System>
ProblemType: Bug
Architecture: amd64
CupsErrorLog:
E [27/Aug/
E [27/Aug/
E [27/Aug/
E [27/Aug/
E [27/Aug/
Date: Thu Aug 27 08:57:16 2009
DistroRelease: Ubuntu 9.10
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: Acer Aspire 6930G
NonfreeKernelMo
Package: cups 1.4.0~svn8773-1
Papersize: letter
PccardctlIdent:
PccardctlStatus:
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cups
Uname: Linux 2.6.31-7-generic x86_64
dmi.bios.date: 09/25/2008
dmi.bios.vendor: Acer
dmi.bios.version: v0.3204
dmi.board.name: Makalu
dmi.board.vendor: Acer
dmi.board.version: Not Applicable
dmi.chassis.type: 1
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnAcer:
dmi.product.name: Aspire 6930G
dmi.product.
dmi.sys.vendor: Acer
NoahY (noahy) wrote : | #1 |
- troubleshoot.txt Edit (436 bytes, text/plain)
- BootDmesg.txt Edit (52.7 KiB, text/plain; charset="utf-8")
- CurrentDmesg.txt Edit (7.7 KiB, text/plain; charset="utf-8")
- Dependencies.txt Edit (2.5 KiB, text/plain; charset="utf-8")
- Locale.txt Edit (317 bytes, text/plain; charset="utf-8")
- Lspci.txt Edit (12.5 KiB, text/plain; charset="utf-8")
- Lsusb.txt Edit (766 bytes, text/plain; charset="utf-8")
- PrintingPackages.txt Edit (713 bytes, text/plain; charset="utf-8")
- ProcCpuinfo.txt Edit (1.5 KiB, text/plain; charset="utf-8")
- ProcInterrupts.txt Edit (1.3 KiB, text/plain; charset="utf-8")
- ProcModules.txt Edit (3.5 KiB, text/plain; charset="utf-8")
- UdevDb.txt Edit (98.4 KiB, text/plain; charset="utf-8")
- UdevLog.txt Edit (196.1 KiB, text/plain; charset="utf-8")
NoahY (noahy) wrote : | #2 |
NoahY (noahy) wrote : | #3 |
Here's what I get when I plug the printer in:
$ dmesg
...
[ 5441.420591] usb 8-2: new full speed USB device using uhci_hcd and address 3
[ 5441.598336] usb 8-2: configuration #1 chosen from 1 choice
[ 5441.607247] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
[ 5442.782444] type=1503 audit(125141931
NoahY (noahy) wrote : | #4 |
Here's more from the debug log after plugging the printer in:
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:28:33 my-desktop udev-configure-
Aug 27 17:32:32 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Aug 27 17:32:35 my-desktop udev-configure-
Till Kamppeter (till-kamppeter) wrote : | #5 |
This is due to the changes of the new CUPS 1.4.0 in Karmic. The problem is caused by a new USB CUPS backend. For this backend the "usblp" kernel module must be unloaded.
Edit /etc//etc/
blacklist usblp
and then run the command
sudo rmmod usblp
Now CUPS should see your USB printers again.
Changed in cups (Ubuntu): | |
status: | New → Confirmed |
summary: |
- Local printer not found (epson stylus c66) + usblp Kernel module needs to be removed for USB printers to work with + CUPS 1.4.x |
summary: |
- usblp Kernel module needs to be removed for USB printers to work with - CUPS 1.4.x + usblp Kernel module needs to be removed and /dev/bus/usb/*/* made + accessible for USB printers to work with CUPS 1.4.x |
Till Kamppeter (till-kamppeter) wrote : | #6 |
In addition to removing the kernel module, the CUPS "usb" backend needs full access to the /dev/bus/usb/*/* files to get fully functional. The settings in /etc/apparmor.
Currently, I get audit messages like that in /var/log/syslog:
Aug 28 13:49:51 till-laptop kernel: [330386.770396] type=1502 audit(125146019
Aug 28 13:49:51 till-laptop kernel: [330386.770437] type=1502 audit(125146019
Aug 28 13:49:51 till-laptop kernel: [330386.770489] type=1502 audit(125146019
Aug 28 13:49:51 till-laptop kernel: [330386.770510] type=1502 audit(125146019
Aug 28 13:49:51 till-laptop kernel: [330386.770567] type=1502 audit(125146019
Changed in cups (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
NoahY (noahy) wrote : | #7 |
@Till - Thanks! Not that it works yet, but at least someone who knows what's going on has taken interest :)
Confirmed, after rmmod, I get a new message after the old ones:
type=1503 audit(125147305
NoahY (noahy) wrote : | #8 |
Oh wait, no, that message was there before... I don't see a difference, then.
Till Kamppeter (till-kamppeter) wrote : | #9 |
As long as the AppArmor configuration for CUPS is not fixed yet, please run the command line
sudo aa-complain cupsd
and USB printing should work again.
As soon as a fixed CUPS package is there, return to the default mode via
sudo aa-enforce cupsd
NoahY (noahy) wrote : | #10 |
Thanks, I must be doing something wrong... now I get all the messages you printed out above:
[ 2014.320739] type=1502 audit(125147449
[ 2014.320789] type=1502 audit(125147449
[ 2014.320849] type=1502 audit(125147449
[ 2014.320873] type=1502 audit(125147449
[ 2014.320965] type=1502 audit(125147449
[ 2014.321076] type=1502 audit(125147449
[ 2014.321101] type=1502 audit(125147449
[ 2014.321165] type=1502 audit(125147449
[ 2014.321217] type=1502 audit(125147449
[ 2014.321252] type=1502 audit(125147449
ilna (a-gaydenko) wrote : | #11 |
Have removed usblp module, also removed cupsd from apparmor, restarted cups - still a printer isn't visible by cups.
Which additional info must I supply?
NoahY (noahy) wrote : | #12 |
same here... still no printer.
Till Kamppeter (till-kamppeter) wrote : | #13 |
Can you all post the output of the following commands:
/usr/lib/
ls -l /dev/bus/usb/*/*
lsusb
lsusb -vvv
ilna (a-gaydenko) wrote : | #14 |
NoahY (noahy) wrote : | #15 |
NoahY (noahy) wrote : | #16 |
Hmm... this looks interesting:
$ /usr/lib/
DEBUG: list_devices
DEBUG: usb_find_busses=8
DEBUG: usb_find_devices=12
DEBUG: Failed to set configuration 1 for 04b8:0005
DEBUG: Failed to claim interface 0 for 04b8:0005: Operation not permitted
$ sudo /usr/lib/
DEBUG: list_devices
DEBUG: usb_find_busses=8
DEBUG: usb_find_devices=12
Till Kamppeter (till-kamppeter) wrote : | #17 |
We need also to introduce a UDEV rule which makes the /dev/bus/usb/*/* files being owned by the "lp" group for all printers (not only HP). Currently this is only set for HP printers by /lib/udev/
ilna (a-gaydenko) wrote : | #18 |
At my case I have not found any differences with and without 'sudo'.
Changed in udev (Ubuntu): | |
importance: | Undecided → High |
Changed in cups (Ubuntu): | |
importance: | Undecided → High |
Changed in udev (Ubuntu): | |
status: | New → Confirmed |
ilna (a-gaydenko) wrote : | #19 |
Till,
At my case, as I can understand, USB backend does see the printer (and can not find it).
Till Kamppeter (till-kamppeter) wrote : | #20 |
Can you do the following test:
Run
lsusb
and look for the line of your printer. The printer has a Bus and a Device number. Now run
sudo chgrp lp /dev/bus/usb/<bus number>/<device number>
sudo chmod 664 /dev/bus/usb/<bus number>/<device number>
with <bus number> and <device number> being padded with zeros to be always of 3 digits (8 -> 008, 11 -> 011, ...).
Example:
till@till-
Bus 002 Device 029: ID 03f0:1c02 Hewlett-Packard PhotoSmart A710 series
till@till-
till@till-
Then try to add a print queue and print to it. Does it work?
Note: Do not turn off or unplug the printer during this procedure, otherwise you will have to do all steps again (device number changes then).
NoahY (noahy) wrote : | #21 |
I don't know if it helps, but I was able to find and add the printer using foomatic-gui; I had to use an optional ppd from gimp-print project to do so, and the result was a non-functioning visible printer in System>
Any workaround while we're waiting for updates?
NoahY (noahy) wrote : | #22 |
Ah, sorry, I posted before seeing post 20. Yay... it works here! Test page printed successfully.
Till Kamppeter (till-kamppeter) wrote : | #23 |
Truthiswithin, Thanks.
Now we know what to do:
1. Remove/blacklist "usblp" kernel module (for example by adding a file /etc/modprobe.
2. Add udev rules to make the /dev/bus/usb/*/* files corresponding to printers have the permissions 664 and group ownership "lp".
3. Change AppArmor configuration to let the "usb" CUPS backend (or CUPS in general) have read and write access to the /dev/bus/usb/*/* files.
With all this done USB printers will work out-of-the-box again.
Changed in udev (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in cups (Ubuntu): | |
status: | Confirmed → Triaged |
ilna (a-gaydenko) wrote : | #24 |
For me owner/rights manipulations didn't help. For this ones
$ lsusb | grep Kyocera
Bus 005 Device 002: ID 0482:0015 Kyocera Corp.
$ sudo ls -l /dev/bus/
crw-r--r-- 1 root lp 189, 513 2009-08-28 22:56 /dev/bus/
restarted CUPS admin still don't find a printer (while USB backend see it).
NoahY (noahy) wrote : | #25 |
@ilna, did you issue all of the following commands?
$ sudo rmmod usblp
$ sudo aa-complain cupsd
$ sudo chgrp lp /dev/bus/usb/<bus number>/<device number>
$ sudo chmod 664 /dev/bus/usb/<bus number>/<device number>
and then add the printer manually through System>
ilna (a-gaydenko) wrote : | #26 |
Till,
$ sudo lsmod | grep usb
usbhid 44000 0
$ sudo aa-status
apparmor module is loaded.
11 profiles are loaded.
...
1 processes are in complain mode.
/usr/sbin/cupsd (13621)
$ lsusb | grep Kyocera
Bus 005 Device 002: ID 0482:0015 Kyocera Corp.
$ sudo ls -l /dev/bus/
crw-r--r-- 1 root lp 189, 513 2009-08-28 22:56 /dev/bus/
This is a state just at the current moment (typing now). As far as I use Kubuntu, I can not use GNOME print config frontend. KDE'd systemsettings/
ilna (a-gaydenko) wrote : | #27 |
Sorry, typo. "as well as CUPS web admin backend" muts be read as "as well as CUPS web admin frontend"
Florent Mertens (givre) wrote : Re: [Bug 420015] Re: usblp Kernel module needs to be removed and /dev/bus/usb/*/* made accessible for USB printers to work with CUPS 1.4.x | #29 |
Le vendredi 28 août 2009 à 19:31 +0000, ilna a écrit :
> Till,
>
> $ sudo lsmod | grep usb
> usbhid 44000 0
>
> $ sudo aa-status
> apparmor module is loaded.
> 11 profiles are loaded.
> ...
> 1 processes are in complain mode.
> /usr/sbin/cupsd (13621)
>
> $ lsusb | grep Kyocera
> Bus 005 Device 002: ID 0482:0015 Kyocera Corp.
>
> $ sudo ls -l /dev/bus/
> crw-r--r-- 1 root lp 189, 513 2009-08-28 22:56 /dev/bus/
/dev/bus/
Did you do :
sudo chmod 664 /dev/bus/usb/<bus number>/<device number>
>
> This is a state just at the current moment (typing now). As far as I use
> Kubuntu, I can not use GNOME print config frontend. KDE'd
> systemsettings/
> as CUPS web admin backend (have tried again just now, after typing and
> copy/paste above console output).
>
ilna (a-gaydenko) wrote : | #30 |
Ugh.. My fault, sorry... With 664 the printer was found.
Till, thanks!
ilna (a-gaydenko) wrote : | #31 |
... was found, but after printing a test page I have noticed there is an 'usb' process belonging to user 'lp', and this process eats 100% of one CPU core (almost all is 'system'). Have stopped cups server, killed 'usb' process (doesn't react on sigterm), started CUPS again, queued a job with few pages - again, eating CPU without terminating after those pages were printed (at least they were printed :-)).
Must I file a new bug? Or - is it better to report new bug after official resolution of this one?
Till Kamppeter (till-kamppeter) wrote : | #33 |
Please report a new bug for the hanging USB backend. Please put a link to this bug here. You cam also post an upstream bug about this, on http://
ilna (a-gaydenko) wrote : | #34 |
ilna (a-gaydenko) wrote : | #35 |
... but failed to register in cups.org. Will anybody more lucky find a minute to file an appropriate upstream bug with regard to this one? https:/
Thorsten (kdefan) wrote : | #36 |
I've been having the same problem with a USB-connected Samsung ML-1740 on Kubuntu Karmic w/all recent updates.
Blacklisting usblp and "chgrp lp /dev/bus/
Please advise if you need additional help debugging.
tlois (tlois3) wrote : | #37 |
Since update to karmic a couple of days ago my brother hl2140 is doing the same thing- shows in lsusb, but as idle and not waking up when try to print test page. it worked before update. my hpf4440 is still working. plugged the brother into my other ubuntu 9.04 laptop and it worked fine, so not the printer.
tried above, but did not help.
Eric B (ebischoff) wrote : | #38 |
Same here. My printer was working fine before I upgraded to karmic, then stopped working after the distribution update.
First, the printer was not seen by CUPS. Solved it by:
- blacklisting usblp kernel module
- changing group of /dev/bus/
- not letting apparmor supervise cupsd operation
as adviced here.
So I was able to add my printer into cups. But printing a test page does not work. The print job shows up in print queue, but never ends. In the list of processes I see :
lp 9520 0.0 0.0 48596 1832 ? S 17:07 0:00 usb://EPSON/
It does not matter whether in 2.6.28 or 2.6.31 kernel.
I hope that helps.
ilna (a-gaydenko) wrote : | #39 |
Eric,
I have noticed after those owner/rights manipulations and detecting a printer last one stays in suspended state. Try to resume it in CUPS web admin frontend.
Eric B (ebischoff) wrote : | #40 |
I don't know if this helps, but here is the output of strace
poll([{fd=0, events=POLLIN}, {fd=4, events=POLLIN}], 2, -1) = 1 ([{fd=0, revents=POLLHUP}])
(... repeated in infinite loop)
and here is output of lsof :
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
usb 9846 lp 4u unix 0xffff88007e521b80 0t0 42632 socket
so the "hanging" usb process keeps polling a UNIX domain socket in vain.
ilna (a-gaydenko) wrote : | #41 |
There is dedicated bug for usb hanging:
Eric B (ebischoff) wrote : | #42 |
ilna : killing the print job and resuming the printer does not help. Only killing the process named "usb://EPSON something" helps. The print job disappears from the print queue cleanly then.
It really looks like CUPS does not close some socket it is writing on after printing, so the usb process does not terminate, and prevents further printing.
I have a workaround that helps me work normally :
=======
#! /bin/bash
/bin/kill -9 $(/bin/ps aux | /bin/grep usb:// | /bin/grep -v grep | /usr/bin/awk '{print $2}')
=======
and I am running this every minute from a crontab.
This is a DANGEROUS AND UGLY hack, not a real solution. Use it at your own risks.
Eric B (ebischoff) wrote : | #43 |
I agree the "usb hanging" bug is a different bug from the "printer not seen by cups" problem described by this issue.
I would say the bug described here is basically solved by the three-step method explained above.
Therefore I suggest we continue the discussion at https:/
Thanks ilha for having opened a separate bug report.
GuyR (guy-rouger) wrote : | #44 |
Hello all,
Same problem with EpsonRX425, I had to do it through lpadmin:
lpadmin -p RX425 -P /etc/cups/
assuming that I put the pdd file from a backup and followed the advice of the command
FileDevice dans « /etc/cups/
I add FileDevice=yes
:/etc/cups$ cd /etc/modprobe.d
:/etc/modprobe.d$ sudo gedit blacklist.conf (do not blacklist usblp)
:/etc/modprobe.d$ sudo rmmod usblp
:/etc/modprobe.d$ sudo service cups restart
* Restarting Common Unix Printing System: cupsd [ OK ]
:/etc/modprobe.d$ lpstat
RX425-1 guy 153600 jeu. 27 août 2009 12:02:35
service cups status
Status of Common Unix Printing System: cupsd is running.
Then my printer is seeing in cups http://
sorry for my bad english, I am french
Richard Garvin (garvinrick4) wrote : | #45 |
Brother HL-2140
9.10 Karmic Koala
Printer did not see USB device since Alpha 4 download
Used item #25 and saw USB device and installed driver and printed.
Beautiful fix and Thank You. Truthiswithin
Brian Harkness (maestro-bwh) wrote : | #46 |
konica-minolta pagepro 1350
Generally works with the min12xxw driver.
following the steps leads to my printer being seen, but it will only fire off 1 test page:
Must be the usb hanging issue after the first one is solved?
Oddly, even after a hard boot, the printer still will not print one more thing.
Martin Pitt (pitti) wrote : | #47 |
Till,
I'm not sure how reliable it is to create udev rules which provide access for lp to raw USB devices. Shouldn't we rather install /usr/lib/
I'll do that, unless you have an objection.
Changed in udev (Ubuntu): | |
status: | Triaged → Invalid |
tags: | added: regression-potential |
Martin Pitt (pitti) wrote : | #48 |
All tree fixes committed to cups bzr now.
Changed in cups (Ubuntu Karmic): | |
status: | Triaged → Fix Committed |
Martin Pitt (pitti) wrote : | #49 |
OK, so it would be nice if /dev/bus/usb/* would be owned by group lp, then we could have the backend run as user lp again, instead of root. Could folks please try whether this rule makes the printer device owned by root:lp ?
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterface
(add it to e. g. /etc/udev/
Changed in udev (Ubuntu Karmic): | |
importance: | High → Wishlist |
status: | Invalid → Triaged |
Martin Pitt (pitti) wrote : | #50 |
In fact, it needs to run later than 50-udev-
And it should look like this:
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}
Launchpad Janitor (janitor) wrote : | #51 |
This bug was fixed in the package cups - 1.4.0-2
---------------
cups (1.4.0-2) experimental; urgency=low
* Add debian/
CUPS uses libusb directly now. (LP: #420015, part 1)
* debian/
(LP: #420015, part 2)
* debian/rules: Make the usb backend run as root, since /dev/bus/usb/* are
root:root, and cups does not use the usblp kernel module any more.
(LP: #420015, part 3)
* disable-
-- Martin Pitt <email address hidden> Mon, 31 Aug 2009 17:34:48 +0200
Changed in cups (Ubuntu Karmic): | |
status: | Fix Committed → Fix Released |
NoahY (noahy) wrote : | #52 |
The deb package failed to build... I tried adding the rule and restarting cups; no change.
Martin Pitt (pitti) wrote : | #53 |
Sorry, the previous rule can't work, since we need the device, not the interface. Please try this instead:
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}
Till Kamppeter (till-kamppeter) wrote : | #54 |
This rule works perfectly for me with the HP DesignJet 130nr. Note that this model is not supported by HPLIP and so no HPLIP udev rules apply.
Martin Pitt (pitti) wrote : | #55 |
This was confirmed to work. I'll discuss that with Kay first, and apply to udev upstream as appropriate.
Changed in udev (Ubuntu Karmic): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | Triaged → In Progress |
Martin Pitt (pitti) wrote : | #56 |
Not a karmic blocker, closing release task and using floating task.
Changed in udev (Ubuntu Karmic): | |
status: | In Progress → Won't Fix |
assignee: | Martin Pitt (pitti) → nobody |
NeverMind (agathe-durieux) wrote : | #57 |
Fixed for my Brother MFC-620CN
Thank !
NoahY (noahy) wrote : | #58 |
So why doesn't it work for me yet? Fully updated, still no printer, unless I use the workaround.
NoahY (noahy) wrote : | #59 |
oh, wait, I've got a bigger problem... now lsusb gives no output unless I sudo lsusb... here's dmesg when I insert the printer:
[ 1082.568088] usb 8-2: new full speed USB device using uhci_hcd and address 4
[ 1082.742064] usb 8-2: configuration #1 chosen from 1 choice
[ 1082.751968] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
[ 1083.993956] type=1503 audit(125182447
NoahY (noahy) wrote : | #60 |
Once I run
sudo chgrp lp /dev/bus/
sudo chmod 664 /dev/bus/
then lsusb gives the following output:
Bus 008 Device 004: ID 04b8:0005 Seiko Epson Corp. Stylus D88+
whereas sudo lsusb gives:
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 004: ID 04b8:0005 Seiko Epson Corp. Stylus D88+
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. Mass Stroage Device
Bus 001 Device 003: ID 064e:a103 Suyin Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
(which is what lsusb used to give...)
ilna (a-gaydenko) wrote : | #61 |
For me the problem isn't resolve (cups 1.4.03 is installed now) - now even after chgrp/chmod new printer can not be found:
$ sudo lsusb | grep Kyo
Bus 005 Device 002: ID 0482:0015 Kyocera Corp.
$ sudo ls -l /dev/bus/
crw-rw-r-- 1 root lp 189, 513 2009-09-01 22:11 /dev/bus/
$ sudo lsmod | grep usb
usbhid 44000 0
$ sudo /etc/init.d/cups restart
* Restarting Common Unix Printing System: cupsd
... and now "Find New Printers" in CUPS admin - "No printers found".
Dan Andreșan (danyer) wrote : | #62 |
@ilna, cups runs as root now, so no need to make the printer owned by lp group, I guess.
For me, it kind of works but not quite: the printer it is not detected.
If I replace /etc/cups/
I did not try to print.
You might want to try my /etc/cups/
For people thinking this bug is fixed: remove the printer and try to detect it again. It is not detected here.
root@shuttle:
# Printer configuration file for CUPS v1.4.0
# Written by cupsd on 2009-09-02 10:05
<Printer FS-1030D-2>
Info Kyocera FS-1030D
Location shuttle
MakeModel Kyocera FS-1030D
DeviceURI usb://Kyocera/
State Idle
StateTime 1251696880
Type 8425556
Filter application/
Filter application/
Filter application/
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
Till Kamppeter (till-kamppeter) wrote : | #63 |
I did another test and it seems that in CUPS 1.4.0-3 the USB backend still conflicts with AppArmor. Please run
sudo aa-complain cupsd
for the time being. Please report here whether USB printing works for you then, for us to know whether the other changes are working correctly.
Changed in cups (Ubuntu Karmic): | |
status: | Fix Released → Triaged |
Till Kamppeter (till-kamppeter) wrote : | #64 |
Please add the line
/dev/bus/usb/ r,
to the /usr/sbin/cupsd section of /etc/apparmor.
After that restart AppArmor with
sudo /etc/init.
and return CUPS into enforce mode:
sudo aa-enforce cupsd
USB printing should now work correctly.
I have committed this fix to the Debian BZR repository of CUPS. Will be part of the next CUPS package.
Changed in udev (Ubuntu): | |
status: | In Progress → Fix Committed |
status: | Fix Committed → Triaged |
Changed in cups (Ubuntu Karmic): | |
status: | Triaged → Fix Committed |
Changed in udev (Ubuntu): | |
status: | Triaged → In Progress |
ilna (a-gaydenko) wrote : | #65 |
Thanks. With the new line in /etc/apparmor.
Yet, when printing a job, nothing is printed.
Only a 100% CPU process "usb" owned by "root" is active.
ilna (a-gaydenko) wrote : | #67 |
ilf ,
See bug 420797.
Launchpad Janitor (janitor) wrote : | #68 |
This bug was fixed in the package cups - 1.4.0-3.1
---------------
cups (1.4.0-3.1) karmic; urgency=low
Urgent bzr head upload to karmic to unbreak printing for Alpha-5.
[ Till Kamppeter ]
* debian/
patch so that the usb backend really terminates after a job (LP: #420797).
* debian/
the /dev/bus/usb/ directory, given with the "/" in the end. This should
finally fix LP: #420015.
[ Martin Pitt ]
* debian/control: Drop the transitional cupsys packages.
* printer-
Stéphane Graber!
* debian/rules: Drop autoconf call on build again, we have a proper upstream
release.
-- Martin Pitt <email address hidden> Wed, 02 Sep 2009 17:01:51 +0200
Changed in cups (Ubuntu Karmic): | |
status: | Fix Committed → Fix Released |
NoahY (noahy) wrote : | #69 |
not fixed here... added the string to apparmor, restart apparmor, now even the workaround doesn't work... and why can't I see my usb devices by just running lsusb all of a sudden? now I need to be root to see them. Anyway, here's dmesg:
[ 879.056259] usb 8-2: new full speed USB device using uhci_hcd and address 5
[ 879.234868] usb 8-2: configuration #1 chosen from 1 choice
[ 880.463416] type=1503 audit(125190439
And the Admin>Printing says the printer is "unplugged or turned off"
NoahY (noahy) wrote : | #70 |
okay, I had to delete the old instance of the printer, then let it find the printer again. And I added the apparmor line to the wrong place... silly me. Now I can verify that adding the line to apparmor makes everything okay in this bug. The only thing left for me is the usb process at 100%, which I see is fixed in the latest cups.
NoahY (noahy) wrote : | #71 |
Installed cups 1.4.0-3.1
Deleted the old printer
Set sudo aa-enforce cupsd
Plugged printer in
Printer found
Print test page
Printed successfully
No residual usb service eating CPU
Looks like everything is fixed from this end. Thanks people, your work is appreciated :)
Roland Hughes (original-seasoned-geek) wrote : | #72 |
The only real fix is to switch to either Parallel or Network printers. This
USB stuff is a looooooong way from being sorted out. Just wait until they try
to get the USB KVM switches working again. They worked with all prior
versions, but are a paperweight now.
On Wednesday 02 September 2009 10:16:52 am Truthiswithin wrote:
> not fixed here... added the string to apparmor, restart apparmor, now
> even the workaround doesn't work... and why can't I see my usb devices
> by just running lsusb all of a sudden? now I need to be root to see
> them. Anyway, here's dmesg:
>
> [ 879.056259] usb 8-2: new full speed USB device using uhci_hcd and
> address 5 [ 879.234868] usb 8-2: configuration #1 chosen from 1 choice
> [ 880.463416] type=1503 audit(125190439
> pid=5409 parent=5405 profile=
> denied_mask="r::" fsuid=0 ouid=0 name="/
>
> And the Admin>Printing says the printer is "unplugged or turned off"
>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593 (cell)
http://
http://
http://
NoahY (noahy) wrote : | #73 |
parallel port on a notebook? or what, buy a network adapter for my usb printer? Haven't a clue what KVM is, but my printer is working fine now.
Martin Pitt (pitti) wrote : | #74 |
- updated /lib/udev/rules.d/50-udev-default.rules Edit (5.0 KiB, text/plain)
Till, I confirmed that with Kay, I'm good to add the new rule. However, I did another typo.
Can you please remove the local rules file you did for this, and replace /lib/udev/
Till Kamppeter (till-kamppeter) wrote : | #75 |
Pitti, I have checked it now and it works (I have also set the permissions of the usb backend back to 755). We can go this way.
Martin Pitt (pitti) wrote : | #76 |
Changed in udev (Ubuntu): | |
status: | In Progress → Fix Committed |
JPSanchez (pediatracancun) wrote : | #77 |
I just installed Karmic AMD64. Initially my Samsung ML-2240 printer was detected and installed. After updating Karmic, I wasn't unable to start the printer. Although it was detected using lsusb, the printer configuration didn' t find any USB printer.
After reading, and trying, and more reading and trying, finally using your suggestion # 5, I succeeded in installing it.
Samsung ML-2240 is not included in the drivers list, so I installed it as an ML-2250 and configured it like Samsung ML-2250 Foomatic/gd
Hope this helps to other users.
Best regards,
Juan Pedro Sanchez.
Till Kamppeter (till-kamppeter) wrote : | #78 |
Problem was probably that the simple update of your system did not unload the "usblp" kernel module.
For a missing entry in the list of printer models, please report a bug on foomatic-db (or directly upstream at http://
Jeffrey Baker (jwbaker) wrote : | #79 |
Is this really fixed? My 1.4.0-5 cupsd still doesn't see my Epson printer, exactly the same symptoms as the original reporter. I checked and usblp is not loaded.
Launchpad Janitor (janitor) wrote : | #80 |
This bug was fixed in the package udev - 147~-1
---------------
udev (147~-1) karmic; urgency=low
FFE LP: #427356.
* Update to GIT HEAD (pre 147 release):
- worker signal mask corrected. LP: #407428.
- database format change to avoid path length issues. LP: #377121.
- multiple devices may not claim the same /dev names, except with
symlinks
- NAME="%k" produces a warning
- symlinks to udevadm no longer resolve to the original command
- rules updates. LP: #281335, LP: #407940, #420015, #426647.
* Build-depend on gawk, since build fails with mawk.
* Replace init scripts with Upstart jobs.
* debian/control:
- Add missing ${misc:Depends}
- Bump build-dependency on debhelper for Upstart-aware dh_installinit
-- Scott James Remnant <email address hidden> Tue, 15 Sep 2009 03:22:11 +0100
Changed in udev (Ubuntu Karmic): | |
status: | Won't Fix → Fix Released |
Colin Mills (cm006a5077) wrote : | #81 |
I have been trying unsuccessfully to install a Canon MP210 usb printer/scanner in Ubuntu Karmic (64 bit). I have tried the fixes listed above, but without success. All I get is an error message "There was an error during the CUPS operation: 'client-
lsusb gives:-
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04a9:1721 Canon, Inc. MP210 ser
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 1058:0402 Western Digital Technologies, Inc.
Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Previously, I was using Ubuntu Jaunty (64 bit) detected the usb printer/scanner and I was able to select the Canon MP220 driver which worked faultlessly. So its back to Ubuntu Jaunty for me!
Till Kamppeter (till-kamppeter) wrote : | #82 |
Colin, can you attach your /etc/cups/
Roland Hughes (original-seasoned-geek) wrote : | #83 |
Sounds like he has already bailed on the release.
On Monday 28 September 2009 03:53:43 pm Till Kamppeter wrote:
> Colin, can you attach your /etc/cups/
> re-create your print queue, and after that post your
> /etc/cups/
>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593 (cell)
http://
http://
http://
Colin Mills (cm006a5077) wrote : | #84 |
No, I haven't bailed out yet!
Some more background information. If I run from the installation cd in live mode, I can turn on the printer, and the printer icon appears on the desktop, i can click on to it, it opens the printer selection screen, I select the Canon MP220 Printer/Scanner and it installs perfectly ok.
When I repeat the procedure with the installed latest version of Ubuntu Karmic (64 bit) nothing happens, there is no icon, nothing!!! I go to 'System-
I select 'Other' and enter "hal://
Any help in suggesting the way forward would be appreciated.
Colin Mills (cm006a5077) wrote : | #85 |
I noticed an error in my previous post. It should have read ' .... and the printer icon appears on the panel' not the desktop.
Sorry!
Steven Harms (sharms) wrote : | #86 |
This is not resolved yet.
My system:
usblp not loaded -- had to run:
chgrp lp /dev/bus/
chmod 664 /dev/bus/
then it works.
Changed in cups (Ubuntu Karmic): | |
status: | Fix Released → Confirmed |
Roland Hughes (original-seasoned-geek) wrote : | #87 |
I resolved this issue by hooking up a parallel cable. It was the only way.
On Monday 28 September 2009 07:56:42 pm Steven Harms wrote:
> This is not resolved yet.
>
> My system:
>
> usblp not loaded -- had to run:
> chgrp lp /dev/bus/
> chmod 664 /dev/bus/
>
> then it works.
>
> ** Changed in: cups (Ubuntu Karmic)
> Status: Fix Released => Confirmed
>
--
Roland Hughes, President
Logikal Solutions
(630)-205-1593 (cell)
http://
http://
http://
Jeffrey Baker (jwbaker) wrote : | #88 |
I also re-re-re-confirm that this is still just as busted as ever.
Till Kamppeter (till-kamppeter) wrote : | #89 |
Everyone with problems please run the following shell commands:
ls -l /dev/bus/usb/*/*
lsusb
/usr/lib/
/usr/lib/
lpinfo -v
lpstat -v
lsusb -vvv
and post all the output here. Thanks.
Note also that there is no "hal" CUPS backend any more. If your printer's URI starts with "hal:" please remove your print queue and create a new one. If you still cannot print after that, run the commands and post the output.
GuyR (guy-rouger) wrote : | #90 |
Hello all,
Below my status:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 04b8:080f Seiko Epson Corp. Stylus Photo RX425 scanner
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I declare my printer as it:
sudo lpadmin -p RX425 -P /etc/cups/
sudo chgrp lp /dev/bus/
sudo chmod 664 /dev/bus/
At this step no more errors in CUPS error logfile but no output at the printer side!
Finally I created a new printer through CUPS http://
then deleted the old one (RX425)
Set the new one as partaged, enabled and default one
And all is working now!
I still do not understood why, but it is ok for me as I am not an expert
lpstat -t
le programmateur s’exécute
destination système par défaut : EPSON_Stylus_
périphérique pour EPSON_Stylus_
EPSON_Stylus_
l’imprimante EPSON_Stylus_
Finished page 1...
Colin Mills (cm006a5077) wrote : | #91 |
As requested, I have runthe commands
ls -l /dev/bus/usb/*/*
lsusb
/usr/lib/
/usr/lib/
lpinfo -v
lpstat -v
lsusb -vvv
and these are the output. Still can't get my printer recognised.
colin@colin-
crw-rw-r-- 1 root root 189, 0 2009-09-29 08:46 /dev/bus/
crw-rw-r-- 1 root root 189, 2 2009-09-29 08:46 /dev/bus/
crw-rw-r-- 1 root root 189, 3 2009-09-29 08:56 /dev/bus/
crw-rw-r-- 1 root root 189, 128 2009-09-29 08:46 /dev/bus/
crw-rw-r--+ 1 root root 189, 129 2009-09-29 09:08 /dev/bus/
crw-rw-r-- 1 root root 189, 256 2009-09-29 08:46 /dev/bus/
crw-rw-r-- 1 root root 189, 257 2009-09-29 08:46 /dev/bus/
crw-rw-r-- 1 root root 189, 384 2009-09-29 08:46 /dev/bus/
colin@colin-
Bus 002 Device 002: ID 04a9:1721 Canon, Inc. MP210 ser
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 1058:0402 Western Digital Technologies, Inc.
Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
colin@colin-
bash: /usr/lib/
colin@colin-
bash: /usr/lib/
colin@colin-
network http
serial serial:
network beh
network smb
network ipp
network lpd
direct scsi
network socket
direct parallel:/dev/lp0
direct hp
direct hpfax
colin@colin-
device for Canon-PIXMA-MP220: http://
colin@colin-
Bus 002 Device 002: ID 04a9:1721 Canon, Inc. MP210 ser
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x04a9 Canon, Inc.
idProduct 0x1721 MP210 ser
bcdDevice 1.05
iManufacturer 1 Canon
iProduct 2 MP210 series
iSerial 3 33D935
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 3
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
bDe...
Jeffrey Baker (jwbaker) wrote : | #92 |
crw-rw-r-- 1 root root 189, 0 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 1 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 3 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 4 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 128 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 256 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 384 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 385 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 512 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 640 2009-09-28 13:51 /dev/bus/
crw-rw-r--+ 1 root root 189, 641 2009-09-29 09:34 /dev/bus/
crw-rw-r-- 1 root root 189, 768 2009-09-28 13:51 /dev/bus/
crw-rw-r-- 1 root root 189, 896 2009-09-28 13:51 /dev/bus/
Bus 006 Device 002: ID 04b8:0808 Seiko Epson Corp. Stylus CX5200
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 005: ID 046d:c51a Logitech, Inc. MX Revolution/G7 Cordless Mouse
Bus 001 Device 004: ID 0424:2504 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
network beh
network smb
network ipp
direct scsi
network http
network socket
network lpd
direct hp
serial serial:
direct hpfax
Bus 006 Device 002: ID 04b8:0808 Seiko Epson Corp. Stylus CX5200
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x04b8 Seiko Epson Corp.
idProduct 0x0808 Stylus CX5200
bcdDevice 1.00
iManufacturer 1 EPSON
iProduct 2 USB MFP
iSerial 3 HS0290402250123170
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 55
bNumInterfaces 2
bConfigurat
iConfiguration 4 USB MFP
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
Jeffrey Baker (jwbaker) wrote : | #93 |
I noted that the printer has an ACL so here's the output of getfacl:
# file: dev/bus/usb/006/002
# owner: root
# group: root
user::rw-
user:jwb:rw-
group::rw-
mask::rw-
other::r--
Martin Pitt (pitti) wrote : | #94 |
Seems not all USB printers are covered by the udev rule, so I revert the recent change in cups and have the usb backend run as root again for now.
Fix committed to cups bzr, will upload after karmic beta.
Changed in cups (Ubuntu Karmic): | |
status: | Confirmed → Fix Committed |
Danny Wood (danwood76) wrote : | #95 |
Im sorry but this is not fixed.
To make my printer work I have to run this each boot:
"sudo aa-enforce cupsd"
Some of the commands gave useless or no info but the ones that might be useful:
My printer wasn't visible with the lsusb commands like it used to be and these were run after the above command was run.
----
lpinfo -v
serial serial:
serial serial:
direct scsi
network lpd
network ipp
network beh
network socket
network http
network smb
direct hp
direct hpfax
direct usb://Samsung/
----
device for Samsung-ML-1210: usb://Samsung/
----
Launchpad Janitor (janitor) wrote : | #96 |
This bug was fixed in the package cups - 1.4.1-4
---------------
cups (1.4.1-4) unstable; urgency=low
[ Till Kamppeter ]
* debian/
backend supporting both printer access via libusb and via the usblp kernel
module. Make it also printing via libusb if the URI for the queue was
generated via usblp and vice versa. This should solve most USB printing
problems which occured on the transition to CUPS 1.4.x (LP: #420015,
LP: #436495; Closes: #546558, #545288, #545453).
[ Martin Pitt ]
* debian/rules: Make the USB backend run as root again, udev rules do not
cover all printers. (LP: #420015)
* Drop debian/
from above this is not necessary any more.
cups (1.4.1-3) unstable; urgency=low
* Add disable-
segfaults with it. (Closes: #548246)
-- Martin Pitt <email address hidden> Wed, 30 Sep 2009 15:17:53 +0200
Changed in cups (Ubuntu Karmic): | |
status: | Fix Committed → Fix Released |
Changed in cups (Ubuntu Karmic): | |
assignee: | Martin Pitt (pitti) → nobody |
Colin Mills (cm006a5077) wrote : | #97 |
I downloaded the latest beta Ubuntu live cd and tried to install my Canon MP210 scanner, but as I reported earlier, the distribution fails to detect my printer. Any idea when this problem is likely to be resolved?
Martin Beltov (mbeltov) wrote : | #98 |
Same for me. I need to run manual commands in order for cups to "see" the usb printer
Fraser Murray (fraserm) wrote : | #99 |
The fixed version is scheduled for build in 45 minutes.
Colin Mills (cm006a5077) wrote : | #100 |
I have just downloaded the latest Ubuntu Karmic updates and my MP210 printer now works!!!! I just wanted to say a big thank you for all the developers involved.
Jeffrey Baker (jwbaker) wrote : | #101 |
This also fixed my Epson Stylus CX5400.
Ruslan Tabolin (ruslan-tabolin) wrote : | #102 |
I have downloaded the latest updates, but hp 1020 don't work yet. cups do not see my printer.
ruslan@ruslan:~$ ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root root 189, 0 2009-10-04 23:25 /dev/bus/
crw-rw-r--+ 1 root lp 189, 1 2009-10-04 23:28 /dev/bus/
crw-rw-r-- 1 root root 189, 128 2009-10-04 23:25 /dev/bus/
crw-rw-r-- 1 root root 189, 256 2009-10-04 23:25 /dev/bus/
ruslan@ruslan:~$ lsusb
Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
/usr/lib/
/usr/lib/
cat: /usr/lib/
ruslan@ruslan:~$ lpinfo -v
network smb
network beh
serial serial:
serial serial:
network http
direct scsi
direct parallel:/dev/lp0
network ipp
network socket
network lpd
ruslan@ruslan:~$ lsusb -vvv
Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x2b17 LaserJet 1020
bcdDevice 1.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurat
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
can't get device qualifier: Connection timed out
can't get debug descriptor: Connection timed out
Device Status: 0x0001
Self Powered
Bus 001 Device 001: ID 1d6b:0002 Linux F...
Till Kamppeter (till-kamppeter) wrote : | #103 |
Can everyone with problems please run the following shell commands:
lsmod | grep usblp
ls -l /dev/usb/lp*
ls -l /dev/bus/usb/*/*
lsusb
/usr/lib/
/usr/lib/
lpinfo -v
lpstat -v
lsusb -vvv
Ruslan Tabolin (ruslan-tabolin) wrote : | #104 |
Hello again.
Today I turned on computer and updated ubuntu. I don't know that is the reason, but now printer is working very good. And I am happy. Thank you.
databubble (phil-linttell) wrote : | #105 |
- Output from requested commands Edit (30.8 KiB, text/plain)
My printer still isn't working. I reported this in https:/
The following is a snippet from dmesg where I turn the printer off, and then on...
[71725.855070] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb' sets config #1
[72207.592101] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb' sets config #1
[72231.720873] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb' sets config #1
[72566.124804] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb' sets config #1
[72584.698424] usb 1-2: usbfs: interface 0 claimed by usb-storage while 'usb' sets config #1
[72660.539781] usb 1-2: USB disconnect, address 7
[72668.121306] usb 1-2: new high speed USB device using ehci_hcd and address 8
[72668.273324] usb 1-2: configuration #1 chosen from 1 choice
[72668.280149] scsi12 : SCSI emulation for USB Mass Storage devices
[72668.282795] usb-storage: device found at 8
[72668.282800] usb-storage: waiting for device to settle before scanning
[72673.281613] usb-storage: device scan complete
[72673.285603] scsi 12:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
[72673.286954] sd 12:0:0:0: Attached scsi generic sg4 type 0
[72673.298289] sd 12:0:0:0: [sdd] Attached SCSI removable disk
It doesn't seem to be recognized as a printer at all. However, it did work under jaunty and in early alphas of karmic.
Also, I note that the udev rule changes mentioned in #74 are not included in udev - 174~-5. To verify, I tried making the changes to usb and printer by hand, and then did a "apt-get install --reinstall udev" and my changes were wiped out. To get the device permissions below, I had to change the group ownership by hand.
Till Kamppeter (till-kamppeter) wrote : | #106 |
pitti, it seems that the new udev rule for libusb-accessed USB printers got lost again. You introduced it with udev 147~-1 (comment #80) and in the current version (174~-5) it seems to have disappeared again. Can you check?
Changed in udev (Ubuntu Karmic): | |
status: | Fix Released → Triaged |
milestone: | none → ubuntu-9.10 |
Martin Pitt (pitti) wrote : | #107 |
They are still in /lib/udev/
# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to
# the ones from the old usblp kernel module
SUBSYSTEM=="usb", ENV{DEVTYPE}
SUBSYSTEM=="usb", ENV{DEVTYPE}
Changed in udev (Ubuntu Karmic): | |
status: | Triaged → Fix Released |
My HP LaserJet 1000 still doesn't print.
I am not sure if the reason is still related to this. But since it works on my Jaunty box, I am adding this here hoping to get it fixed for the Karmic release.
After all these usblp changes, when blacklisting usblp the firmware isn't uploaded to the printer correctly, because foo2zjs needs the printer device in /dev/usb, provided by usblp: https:/
usblp is not blacklisted any more, so this works now.
However, the printer still does not print, telling me in /var/log/
I really hope this can be fixed for Karmic, I need my printer. Thanks
Dušan Miletić (karl3) wrote : | #109 |
the same thing with canon lbp2900 - still not detected
- lsusbvvv.txt Edit (13.3 KiB, text/plain)
Ok. I have the same bug. My printer is Brother HL-2140. Not able to be "seen". All my other usb-hardware works fine. My cups-version is 1.4.1-5ubuntu2. I'm on ubuntu 9.10, kernel 2.6.31-14-generic. Usb connected directly to a computer not through a hub (connection, cable, usb-port and printer verified to work in windows). Also printer worked under 9.04.
Here are my outputs:
lars@lars-
usblp 15136 0
lars@lars-
crw-rw---- 1 root lp 180, 0 2009-11-04 19:53 /dev/usb/lp0
lars@lars-
crw-rw-r-- 1 root vboxusers 189, 0 2009-11-04 20:05 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 1 2009-11-04 20:05 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 2 2009-11-04 20:05 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 4 2009-11-04 20:05 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 128 2009-11-04 20:05 /dev/bus/
crw-rw---- 1 root lp 189, 130 2009-11-04 19:53 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 256 2009-11-04 20:05 /dev/bus/
lars@lars-
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0499:1011 Yamaha Corp. P-250
Bus 001 Device 003: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 002: ID 0bc2:3101 Seagate RSS LLC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
lars@lars-
bash: /usr/lib/
lars@lars-
lpinfo: Connection refused
lars@lars-
lpstat: Connection refused
May something interesting happened when I did sudo aa-enforce cupsd because before that turning on my printer and tailing dmesg would give me:
[ 711.292551] usb 2-3: new full speed USB device using ohci_hcd and address 2
[ 711.528665] usb 2-3: configuration #1 chosen from 1 choice
[ 711.612618] usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0033
[ 711.612639] usbcore: registered new interface driver usblp
After said command dmesg returns the following:
[ 2850.049704] type=1505 audit(125736076
[ 2850.049942] type=1505 audit(125736076
[ 2869.722555] usb 2-3: new full speed USB device using ohci_hcd and address 3
[ 2869.961662] usb 2-3: configuration #1 chosen from 1 choice
[ 2869.976057] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0033
So now at least were talking cups.
I just found out that if I run 9.10 64bit from the LiveCD I installed from, there's no problem. The printer just show up and is even recognized as soon as I turn it on.
Sorry. Just solved my problem.
To get a faster boot with a dual-core machine I made a change in /etc/init.d/rc where i changed concurrency=none to concurrency=shell.
Setting it back to concurrency=none solved this problem and another problem I had with Grub.
Changed in cups (Ubuntu): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Paul Cullum (paul-cullum) wrote : | #113 |
I'm fully updated with the latest patches but could group permissions seem to be assigned to vboxusers...
$ ls -l /dev/bus/usb/*/*
crw-rw-r-- 1 root vboxusers 189, 0 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 128 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 256 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 384 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 512 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 513 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 640 2009-11-13 10:34 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 646 2009-11-18 13:39 /dev/bus/
crw-rw-r-- 1 root vboxusers 189, 768 2009-11-13 10:34 /dev/bus/
Paul Loughman (snowhog) wrote : | #114 |
System: Kernel 2.6.31-17-generic i686 (32 bit) Distro Ubuntu 9.10 karmic
CUPS: 1.4.1 (Installed Version: 1.4.1-5ubuntu2.1)
modinfo usblp:
filename: /lib/modules/
license: GPL
description: USB Printer Device Class driver
author: Michael Gee, Pavel Machek, Vojtech Pavlik, Randy Dunlap, Pete Zaitcev, David Paschal
srcversion: 2E3BEEBC12905CC
alias: usb:v04B8p0202d
alias: usb:v*p*
alias: usb:v*p*
alias: usb:v*p*
alias: usb:v*p*
alias: usb:v*p*
alias: usb:v*p*
depends:
vermagic: 2.6.31-17-generic SMP mod_unload modversions 586
parm: proto_bias:
tail -f /var/log/messages:
Jan 24 15:35:15 myotherbrain kernel: [ 1209.912127] usb 2-2: USB disconnect, address 2
Jan 24 15:35:15 myotherbrain kernel: [ 1209.912443] usblp0: removed
Jan 24 15:35:21 myotherbrain kernel: [ 1216.612055] usb 2-2: new full speed USB device using uhci_hcd and address 3
Jan 24 15:35:22 myotherbrain kernel: [ 1216.799305] usb 2-2: configuration #1 chosen from 1 choice
Jan 24 15:35:22 myotherbrain kernel: [ 1216.847494] usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x1309 pid 0xF002
foomatic-gui, under Add > Choose printer connection shows a selectable entry for:
USB Printer #1 Unknown
Selecting it and clicking Forward allows me to enter Printer Identification data. Clicking Forward I am allowed to select the printer make and model - Panasonic KX-P4410 - and presented with three printer drivers:
gutenprint-
gutenprint-ijs.5.2
ljet2p (recommended)
Selecting ljet2p (recommended) and clicking Forward and Apply results in the printer being 'added' but it fails to print. It isn't permitting the selection of the CUPS+ drivers, which in my Jaunty 9.04 installation, works flawlessly.
What can I provide that might aid in getting this bug fixed?
Paul Loughman (snowhog) wrote : | #115 |
Also, CUPS does not see this USB printer either.
Paul Loughman (snowhog) wrote : | #116 |
giorgos on 2009-11-10
Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
My udev version is:
apt-cache show udev | grep Version
Version: 147~-6.1
Version: 147~-6
My USB printer does not work in Kubuntu Karmic:
Kernel 2.6.31-17-generic i686 (32 bit) Distro Ubuntu 9.10 karmic
KDE version;
4.3.5
Please tell me how to fix this. If as giorgos says, it has been fixed and released, why doesn't my USP printer work in Karmic?
Yuan Chao (yuanchao) wrote : | #117 |
I have a USB to Printer port cable to connect my old HP DJ890C. It can only be seen by lsusb if run by root:
Bus 004 Device 005: ID 04b4:4100 Cypress Semiconductor Corp.
For Fedora 7 or 11 (ever tried), when plugged in, 'usblp' will be loaded and '/dev/usb/lp0' will be setup. However, for Ubuntu 810, 904 or 910, usblp won't be loaded and CUPS can't see it. The kernel message show the following error:
[ 2564.232074] usb 4-2: new full speed USB device using ohci_hcd and address 4
[ 2564.439134] usb 4-2: config 1 has an invalid descriptor of length 26, skipping remainder of the config
[ 2564.439150] usb 4-2: config 1 interface 0 has no altsetting 0
[ 2564.463318] usb 4-2: configuration #1 chosen from 1 choice
[ 2564.467521] usb 4-2: can't set config #1, error -32
If I manually loads usblp, after issuing 'lpinfo -v', the device file will be setup and I can use the printer if manually set the URI. (usblp can't see it w/o lpinfo; CUPS can't probe it anyway)
[ 2643.521134] usblp0: USB Bidirectional printer dev 4 if 0 alt 2 proto 2 vid 0x04B4 pid 0x4100
I'm wondering if this is simply a new device should be set in udev rules, or udev rule is still broken here?
Atti (atti84it) wrote : | #118 |
On Lucid Lynx 10.04 after updates I was having the same problem. My dmesg had the line:
[ 279.196192] usb 4-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
and "usblp" module was still loaded.
I solved everything by blacklisting the usblp module, but not chmodding the /dev/bus... files.
I used these commands (as root):
echo "blacklist usblp" > /etc/modprobe.
rmmod usblp
/etc/init.d/cups restart
update-initramfs -u
should we file a new bug?
We should indeed check if this is still a problem.
In my dmesg on 10.04 with a HP LaserJet 2200DN on cable plug-in:
[295072.380908] usblp1: USB Bidirectional printer dev 8 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0217
[295073.503061] usb 4-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[295073.504937] usb[22618]: segfault at 0 ip 001cbdbb sp bf9b3e94 error 4 in libc-2.
[295073.506473] type=1503 audit(127884115
I guess the last line is related to another problem, but usblp gets still loaded when I attach the USB printer cable unless blacklisted and segfaults in libc aren't that cool, either. They stop appearing when I blacklist usblp.
The line
[295073.503061] usb 4-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
does also appear on other 10.04 laptops I tested, but printing works fine there.
pinzia (pinzia) wrote : | #120 |
I have similar problem on lucid lynx 64bit
[ 34.200259] usb 8-2: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[ 34.200288] usb 8-1: usbfs: interface 1 claimed by usblp while 'usb' sets config #1
$ lpstat -a
ML-1710 accetta richieste da gio 15 lug 2010 15:54:52 CEST
ML-2010 accetta richieste da ven 18 giu 2010 16:32:28 CEST
Stampanti accetta richieste da sab 05 giu 2010 18:11:38 CEST
Changed in cups (Ubuntu): | |
status: | Fix Released → New |
tags: |
added: regression-release removed: regression-potential |
Changed in cups (Ubuntu): | |
status: | New → Fix Released |
I wonder if this is the same as:
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=514244