kernel "usblp0: removed" ... endless loop

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
gurtz
Level 1
Level 1
Posts: 49
Joined: Wed Jan 19, 2011 10:06 pm

kernel "usblp0: removed" ... endless loop

Post by gurtz »

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
Last edited by SMG on Thu Jun 30, 2022 3:04 pm, edited 1 time in total.
Reason: Locking old topic.
gurtz
Level 1
Level 1
Posts: 49
Joined: Wed Jan 19, 2011 10:06 pm

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

Post by gurtz »

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!
JanSepp

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

Post by JanSepp »

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.
gurtz
Level 1
Level 1
Posts: 49
Joined: Wed Jan 19, 2011 10:06 pm

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

Post by gurtz »

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!
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

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

Post by pdc_2 »

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
gurtz
Level 1
Level 1
Posts: 49
Joined: Wed Jan 19, 2011 10:06 pm

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

Post by gurtz »

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
antcj
Level 3
Level 3
Posts: 148
Joined: Thu Jun 28, 2012 11:17 pm

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

Post by antcj »

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/bsc/public/as/nz/en/dlf/download_index.html?reg=as&c=nz&lang=en&prod=mfc8840d_all&dlid=&flang=English&os=128&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.
robsmint

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

Post by robsmint »

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.
antcj
Level 3
Level 3
Posts: 148
Joined: Thu Jun 28, 2012 11:17 pm

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

Post by antcj »

Small update for anyone interested.
Am now on mint 17, mate. had the brother 8840d up and running , still very sluggish to print. But i lived with it.
Then my router packed its bags, so all my statics were gone.
Long story short , 8840d would not print. (backup router)

So bear in mind the info given previously, as to install is possibly still valid.? Maybe someone can shed some light .
here?

Anyway i tried numerous "add printer" configurations to no avail.
On a whim i tried windows printer via samba /hit the browse button/opened all the workgroup drop downs and hey presto theres the printer. followed my nose from there.

and it works. No more waiting 15 min for a printout. no more statics needed.
Hope this helps someone.
commiades

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

Post by commiades »

My Brother printer works on Mint 17.1 KDE, but it is sluggish, and I often get pages that come back with a print error. I was intrigued by the idea of using SAMBA, but does it need to be on a network; I looked at the configuration menu and the Browse button for SAMBA is greyed out. If it worked without delay it would be a great bonus. I may try plugging it into the router, but that would involve moving office furniture!
antcj
Level 3
Level 3
Posts: 148
Joined: Thu Jun 28, 2012 11:17 pm

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

Post by antcj »

cant say re not using the network. Ive always run on a network with that printer. I was considering dumping the printer til i came right with samba. also very easy to setup.
ohasse
Level 1
Level 1
Posts: 1
Joined: Thu Jun 30, 2022 2:34 pm

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

Post by ohasse »

I know this thread is very old, but at least for internet history I will post what worked for me:
in /etc/modprobe.d/ in blacklist.conf add a new row:

Code: Select all

blacklist usblp
then reboot and printer finally started working!
Locked

Return to “Printers & Scanners”