kernel "usblp0: removed" ... endless loop

Forum rules
Before you post please read this

kernel "usblp0: removed" ... endless loop

Postby gurtz on Sat Jan 19, 2013 1:07 pm

Hi all,

I have been trying for weeks now to get my Brother MFC-8840D multi-function working via USB on a fresh install of Mint 13 (with backports). I have used the Brother Linux installer script referenced here (http://welcome.solutions.brother.com/bs ... tml#f00104) to install, and that seems to work fine. But I can't get ANYTHING to print.

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

Code: Select all
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):

Code: Select all
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.

I am really desperate for an answer on this. I have spent days searching and trying every possible option I could find, but no success so far. Please help a poor, sad printer owner.

Thanks,
Greg
gurtz
Level 1
Level 1
 
Posts: 21
Joined: Wed Jan 19, 2011 10:06 pm

Linux Mint is funded by ads and donations.
 

Re: kernel "usblp0: removed" ... endless loop

Postby gurtz on Sun Jan 20, 2013 5:14 pm

I hate to be a pain, but I would REALLY appreciate advice from anyone who might have even have the slightest clue about how to debug an issue like this. I am at a complete loss for how to proceed. Thanks!
gurtz
Level 1
Level 1
 
Posts: 21
Joined: Wed Jan 19, 2011 10:06 pm

Re: kernel "usblp0: removed" ... endless loop

Postby JanSepp on Sat Jan 26, 2013 7:33 am

I have got exactly the same problem on Linux Mint 14: fresh install this morning, connect MFC8840D, run setup script provided by Brother ... nothing happens.

tail -f /var/log/syslog:

Code: Select all
Jan 26 12:21:30 Dell-Dimension-E521 kernel: [ 1687.111359] usblp0: removed
Jan 26 12:21:41 Dell-Dimension-E521 kernel: [ 1698.112391] usblp 1-5:1.0: >usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 26 12:21:46 Dell-Dimension-E521 kernel: [ 1703.114931] usblp0: removed
Jan 26 12:21:57 Dell-Dimension-E521 kernel: [ 1714.120388] usblp 1-5:1.0: >usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 26 12:22:02 Dell-Dimension-E521 kernel: [ 1719.122958] usblp0: removed
Jan 26 12:22:13 Dell-Dimension-E521 kernel: [ 1730.128405] usblp 1-5:1.0: >usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 26 12:22:18 Dell-Dimension-E521 kernel: [ 1735.131172] usblp0: removed
Jan 26 12:22:29 Dell-Dimension-E521 kernel: [ 1746.137238] usblp 1-5:1.0: >usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160
Jan 26 12:22:34 Dell-Dimension-E521 kernel: [ 1751.139876] usblp0: removed
Jan 26 12:22:45 Dell-Dimension-E521 kernel: [ 1762.140430] usblp 1-5:1.0: >usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0160


And this goes on forever. I, too, am at my wits end!

Of course I rebooted the machine and the printer, booted the machine first and then added the printer, started the printer first and then booted the machine ... nothing doing.

Anyone can help? Not being able to print is a showstopper for me!

Kind regards,

Jan
Last edited by JanSepp on Sat Jan 26, 2013 8:38 am, edited 1 time in total.
JanSepp
Level 1
Level 1
 
Posts: 1
Joined: Sat Jan 26, 2013 7:08 am

Re: kernel "usblp0: removed" ... endless loop

Postby gurtz on Sat Jan 26, 2013 8:01 am

Sorry you're having the problem, too :-(

Just wanted to add some comments: I have tried Live CDs for a few other distros:
- Mint 9 and Ubuntu 10.04 both work beautifully (same hardware, same printer)
- Ubuntu 12.04 fails.
- Mageia fails.
- And, of course Mint 13 and Mint 14 fail (MATE and Cinnamon)
- 32b vs. 64b: doesn't seem to make a difference.

So, I know the hardware works (both PC and printer). But something about the OS (whether it's kernel, CUPS, or whatever) is causing an issue for this printer.

Someone, please help!
gurtz
Level 1
Level 1
 
Posts: 21
Joined: Wed Jan 19, 2011 10:06 pm

Re: kernel "usblp0: removed" ... endless loop

Postby pdc_2 on Sat Jan 26, 2013 5:00 pm

if you google on

usblp0: removed


you find such things as this

https://bugs.launchpad.net/ubuntu/+sour ... bug/959676

and https://bugzilla.redhat.com/show_bug.cgi?id=873123

.......interesting the Fedora suggests

..........get the name of your printer <printer> from

lpstat -p


then paste the name into the command

lpadmin -p <printer> -o usb-unidir-default=true


"Now turn off and turn on your printer, then try to print several jobs. Does this solve the problem?

........they continue ...........

If not, run
lpadmin -p <printer> -R usb-unidir-default
and then
lpadmin -p <printer> -o usb-no-reattach-default=true

Again, turn off and turn on your printer, then try to print several jobs. Does this solve the problem?

If not, try
lpadmin -p <printer> -o usb-no-reattach-default=true
lpadmin -p <printer> -o usb-unidir-default=true
and turn off and turn on your printer, then try to print several jobs. Does this solve the problem?

Please tell what works for you. Thanks

If nothing works, reset all to defaults via
lpadmin -p <printer> -R usb-no-reattach-default
lpadmin -p <printer> -R usb-unidir-default
pdc_2
Level 6
Level 6
 
Posts: 1111
Joined: Mon May 11, 2009 1:21 am

[Solved] Re: kernel "usblp0: removed" ... endless loop

Postby gurtz on Sun Feb 24, 2013 3:58 pm

Hi all,

Just wanted to let anyone know, who may have interest, that my problems have been resolved. I was able to get my Brother MFC-8840D to print from Linux Mint 13 (Cinnamon). Here's a quick overview:

I was NOT able to get the drivers available on the Brother site to work. Neither was I able to get the install script available on the Brother site to work (http://welcome.solutions.brother.com/bs ... tml#f00104).

The only way I could get printing to work was to use the Foomatic Postscript-based drivers. Specifically, "Brother MFC-8840D BR-Script3".

One of the main issues, I believe, is with the GUI control panel available within Mint 13 Cinnamon (from Preferences | Printers). No matter how much I tried, I could not get it to detect the printer. However, I eventually found that if I ran the "system-config-printer" client from the terminal, *THAT* was able to detect and install the printer (BR-Script3 driver) with no problems. As far as I can tell, this client is NOT available from any of the menu options in Mint Cinnamon, so it took just about forever for me to stumble upon it.

To anyone else dealing with this problem, I would recommend:
Uninstall any Brother drivers you may have installed.
Make sure the following are installed (and possibly fully uninstall/re-install just to be sure everything is correct):
> cups
> cups-client
> cups-common
> cups-filters
> foomatic-db (or compressed version)
> foomatic-db-engine
> foomatic-filters
> openprinting-ppds
> printconf
> system-config-printer-common
> system-config-printer-gnome
> system-config-printer-udev

The above is probably not a complete list, and all may not be necessary, but it's probably a decent starting point.

Best of luck to anyone who may also have this issue. It has been a real pain, and I'm really happy to have it sorted out.

Regards,
Greg
gurtz
Level 1
Level 1
 
Posts: 21
Joined: Wed Jan 19, 2011 10:06 pm

Re: kernel "usblp0: removed" ... endless loop

Postby antcj on Tue Oct 22, 2013 4:37 pm

After recently upgrading my laptop and pc i did clen install of mint 14. In the process i also tried 13 but found it very sluggish so went to 14.

anyway, as i had time to spare i decided to nut out the mfc8840d printer/scanner working intermittanly.

so heres the solution, works on 13 and 14.

download the printer installer sofware and the ppd file that brother supplies. http://welcome.solutions.brother.com/bs ... 8&type2=-1
run the installer.
at a point it will ask for an ip address. give it . ( have mine static, via router)

the instructions carry on and finally asks to print a test page. dont ! (there will have been some errors at this point, ignore them)
The installer then does the scanner.
when its finally done go to printers/right cick the brother icon and select properties/and hit the change make and model.
cancel the search that start and install the ppd that you downloaded. Select the new settings, dont keep old settings.

when done make that printer default and you good to go with printing and scanning.
antcj
Level 2
Level 2
 
Posts: 52
Joined: Thu Jun 28, 2012 11:17 pm

Re: kernel "usblp0: removed" ... endless loop

Postby robsmint on Sun May 25, 2014 9:52 pm

lpadmin -p <printer> -o usb-unidir-default=true

This worked for me on a Canon MP140 which would stop printing after the first part of a one page print job. I used Canon-MP140-series as <printer> and it printed off fine.
Do I need to do this each session when I want to print or how can this setting be made permanent?
The usb lead plug/unplug trick also works.

Thanks.
robsmint
Level 1
Level 1
 
Posts: 26
Joined: Sun Aug 23, 2009 4:29 am
Location: Melbourne, Australia.

Linux Mint is funded by ads and donations.
 

Return to Printers & Scanners

Who is online

Users browsing this forum: No registered users and 6 guests