Discussion:
Brother 8840D: "usblp0: removed" endless loop
Gurtz
2013-01-29 01:21:37 UTC
Permalink
Hi all,

I have been trying for a month to get my Brother MFC-8840D multi-function working via USB on Mint 13 (which is based on Ubuntu 12.04). I have used the Brother Linux installer script referenced here to install, and that seems to work fine (as the printer shows in CUPS). But I can't get ANYTHING to print.

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#f00104

Referring to /var/log/syslog I see the following when I unplug the USB cable:

Jan 19 11:52:48 mymachine kernel: [ 2923.575145] usb 1-1.1: USB disconnect, device number 6
Jan 19 11:52:48 mymachine udev-configure-printer: remove /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1

Then, when I plug it back in I see the following (some blank lines added for readability):

Jan 19 11:53:01 mymachine kernel: [ 2936.747883] usb 1-1.1: new high-speed USB device number 7 using ehci_hcd
Jan 19 11:53:01 mymachine kernel: [ 2936.845658] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:01 mymachine mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1"
Jan 19 11:53:02 mymachine mtp-probe: bus: 1, device: 7 was not an MTP device
Jan 19 11:53:02 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0
Jan 19 11:53:02 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:02 mymachine udev-configure-printer: Device vendor/product is 04F9:0160
Jan 19 11:53:02 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:53:02 mymachine udev-configure-printer: failed to claim interface
Jan 19 11:53:02 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:02 mymachine udev-configure-printer: MFG:Brother MDL:MFC-8840D SERN:- serial:000B6J634405
Jan 19 11:53:03 mymachine kernel: [ 2938.501990] usblp0: removed
Jan 19 11:53:03 mymachine hp[3635]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Jan 19 11:53:03 mymachine python: io/hpmud/pp.c 627: unable to read device-id ret=-1
Jan 19 11:53:05 mymachine udev-configure-printer: no corresponding CUPS device found

Jan 19 11:53:14 mymachine kernel: [ 2949.475191] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:14 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:53:14 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:19 mymachine kernel: [ 2954.495744] usblp0: removed

Jan 19 11:53:30 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:53:30 mymachine kernel: [ 2965.470708] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:30 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:35 mymachine kernel: [ 2970.491391] usblp0: removed

Jan 19 11:53:46 mymachine kernel: [ 2981.466542] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:46 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:53:46 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:51 mymachine kernel: [ 2986.487069] usblp0: removed

Jan 19 11:54:02 mymachine kernel: [ 2997.462089] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:54:02 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:54:02 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:54:07 mymachine kernel: [ 3002.482723] usblp0: removed

Jan 19 11:54:18 mymachine udev-configure-printer: add /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Jan 19 11:54:18 mymachine kernel: [ 3013.457769] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:54:18 mymachine udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:54:23 mymachine kernel: [ 3018.478365] usblp0: removed

Notice the endless loop, 5 seconds apart of adding and removing the device. This just keeps going on and on and on.

Also, when I print a test page, CUPS initially shows "processing", but after a few seconds it says "Waiting for printer to become available". And nothing ever prints.

I have also tried Live CDs for a few other distros:
- Mint 9 works
- Ubuntu 10.04 work
- Fedora 18 works
- Mint 14 fails
- Ubuntu 12.04 fails (which makes sense, since Mint 13 is based on Ubuntu 12.04)
- Mageia fails
- and it doesn't seem to make a difference if it's 32b or 64b, as I have tried both variants.

So, I know the hardware works (both PC and printer). But something about certain distros (CUPS? kernel? something else?) is causing an issue for this printer.

I am REALLY DESPERATE (!!!) for an answer on this. I have spent full days searching and trying every possible option I could find, but no success so far. Please please please help a poor, sad printer owner.

Thanks,
Greg
upscope
2013-01-29 04:08:15 UTC
Permalink
Post by Gurtz
Hi all,
I have been trying for a month to get my Brother MFC-8840D
multi-function working via USB on Mint 13 (which is based on Ubuntu
12.04). I have used the Brother Linux installer script referenced here
to install, and that seems to work fine (as the printer shows in
CUPS). But I can't get ANYTHING to print.
http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#f00104
Post by Gurtz
Jan 19 11:52:48 mymachine kernel: [ 2923.575145] usb 1-1.1: USB
disconnect, device number 6 Jan 19 11:52:48 mymachine
udev-configure-printer: remove
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1
Jan 19 11:53:01 mymachine kernel: [ 2936.747883] usb 1-1.1: new
high-speed USB device number 7 using ehci_hcd Jan 19 11:53:01
mymachine kernel: [ 2936.845658] usblp0: USB Bidirectional printer dev
7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160 Jan 19 11:53:01 mymachine
"/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1" Jan 19 11:53:02
mymachine mtp-probe: bus: 1, device: 7 was not an MTP device Jan 19
11:53:02 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0 Jan 19
11:53:02 mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:53:02
mymachine udev-configure-printer: Device vendor/product is 04F9:0160
Jan 19 11:53:02 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:53:02 mymachine udev-configure-printer: failed to claim
interface Jan 19 11:53:02 mymachine udev-configure-printer: device
devpath is /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19
11:53:02 mymachine udev-configure-printer: MFG:Brother MDL:MFC-8840D
SERN:- serial:000B6J634405 Jan 19 11:53:03 mymachine kernel: [
io/hpmud/pp.c 627: unable to read device-id ret=-1 Jan 19 11:53:03
mymachine python: io/hpmud/pp.c 627: unable to read device-id ret=-1
Jan 19 11:53:05 mymachine udev-configure-printer: no corresponding CUPS device found
Jan 19 11:53:14 mymachine kernel: [ 2949.475191] usblp0: USB
Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:14 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:53:14 mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:53:19
mymachine kernel: [ 2954.495744] usblp0: removed
Jan 19 11:53:30 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:53:30 mymachine kernel: [ 2965.470708] usblp0: USB Bidirectional
printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160 Jan 19 11:53:30
mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:53:35
mymachine kernel: [ 2970.491391] usblp0: removed
Jan 19 11:53:46 mymachine kernel: [ 2981.466542] usblp0: USB
Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:53:46 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:53:46 mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:53:51
mymachine kernel: [ 2986.487069] usblp0: removed
Jan 19 11:54:02 mymachine kernel: [ 2997.462089] usblp0: USB
Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 19 11:54:02 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:54:02 mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:54:07
mymachine kernel: [ 3002.482723] usblp0: removed
Jan 19 11:54:18 mymachine udev-configure-printer: add
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0 Jan
19 11:54:18 mymachine kernel: [ 3013.457769] usblp0: USB Bidirectional
printer dev 7 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160 Jan 19 11:54:18
mymachine udev-configure-printer: device devpath is
/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1 Jan 19 11:54:23
mymachine kernel: [ 3018.478365] usblp0: removed
Notice the endless loop, 5 seconds apart of adding and removing the
device. This just keeps going on and on and on.
Also, when I print a test page, CUPS initially shows "processing", but
after a few seconds it says "Waiting for printer to become available".
And nothing ever prints.
- Mint 9 works
- Ubuntu 10.04 work
- Fedora 18 works
- Mint 14 fails
- Ubuntu 12.04 fails (which makes sense, since Mint 13 is based on
Ubuntu 12.04) - Mageia fails
- and it doesn't seem to make a difference if it's 32b or 64b, as I
have tried both variants.
So, I know the hardware works (both PC and printer). But something
about certain distros (CUPS? kernel? something else?) is causing an
issue for this printer.
I am REALLY DESPERATE (!!!) for an answer on this. I have spent full
days searching and trying every possible option I could find, but no
success so far. Please please please help a poor, sad printer owner.
Thanks,
Greg
I have a Brothers MFC-J6710DW and it works fine with the Cups driver and
cups wrapper from brothers. Does your printer need the cups wrapper? Did
you download it or just the ppd?

from CUPS Download page:
<snip>
MFC-8840D
Download Format Version Size Release Date
LPR driver rpm 1.1.2-1 31 KB 2006.Mar.31
cupswrapper driver rpm 1.0.2-1 14 KB 2006.Mar.31
LPR driver deb 1.1.2-1 29 KB 2006.Mar.31
cupswrapper driver deb 1.0.2-1 38 KB 2006.Mar.31
ppd file gz 2 5 KB 2005.Dec.16
Install Instruction : lpr driver | cupswrapper driver | ppd file |
</snip>

My printer uses different version of the wrapper and driver.

Maybe a good idea to check if you have everything your printer needs.

[CODE]
---------

http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-8840D

[/CODE]
----------

Hope this helps you.

Russ
--
openSUSE 12.2(Linux 3.4.11-2.16-desktop x86_64)|
KDE 4.9.5 "release 3"|Intel core2duo 2.5 MHZ,|8GB DDR3|GeForce
8400GS(NVIDIA-Linux-x86_64-304.60)
Johannes Meixner
2013-01-29 10:36:46 UTC
Permalink
Hello,
Post by Gurtz
Referring to /var/log/syslog I see the following
... udev-configure-printer ...
udev-configure-printer is a separated tool that is
meant to do full automated printer setup.
udev-configure-printer has nothing to do with CUPS
and/or with your software from Brother.

To get possible unwanted effects by udev-configure-printer
out of the way, remove the software package that provides
the udev-configure-printer functionality.
I don't know which software package that is for
your Linux distribution.
After you removed udev-configure-printer functionality,
re-setup your printer device as descibed by Brother.

If it then still does not work, ask first and foremost Brother
because it is their software.
Have you perhaps already contacted Brother because you got
the software from them and not from CUPS?
If yes, please tell what their reply was so that we know
about their point of view regarding this issue.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer
Jiri Popelka
2013-01-29 10:51:23 UTC
Permalink
Try these instructions
https://bugs.launchpad.net/cups/+bug/1038695/comments/2

especially
lpadmin -p <printer> -o usb-no-reattach-default=true
could be useful.

If it helps, post output of lsusb here.

--
Jiri

Loading...